Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsThe IMX415 is an 8 MP Sony sensor with good low-light performance, sold by Waveshare as a Raspberry Pi camera with autofocus. Raspberry Pi OS supports it through a device tree overlay, after which the normal rpicam tools work. rpicam-still has a built-in timelapse mode, and ffmpeg joins the photos into a video afterwards.
Tick anything you already have and the total updates.
Waveshare IMX415 8MP autofocus camera for Raspberry Pi
Follow the colours: red is power, dark grey is ground, blue is a signal.
The Pi kit's USB-C supply; long timelapses need steady power.
timelapse.sh#!/bin/bash
# 4 hours, one photo every 30 seconds, 3840x2160
mkdir -p ~/lapse && cd ~/lapse
rpicam-still --width 3840 --height 2160 --timeout 14400000 --timelapse 30000 \
--autofocus-mode manual --lens-position 0.0 -o img%04d.jpg
# join into a 24 fps 4K video
ffmpeg -framerate 24 -i img%04d.jpg -c:v libx264 -pix_fmt yuv420p lapse_4k.mp4
Check the overlay line and that camera_auto_detect is 0; reseat the ribbon.
Lock focus with manual mode; 0.0 is infinity for clouds, larger values for close plants.
8 MP JPEGs are about 3-5 MB each; use a large card or a USB drive.
Yes, use the matching overlay for the camera port you plug into.
The IMX415 is good in low light; add --shutter for long exposures.
Number of photos divided by the frame rate, e.g. 480 / 24 = 20 seconds.
3 parts: Waveshare IMX415 8MP AF MIPI Camera for Raspberry Pi 5/4/3/Zero, Raspberry Pi 4 Model B 2GB RAM Single Board Computer and Official Raspberry Pi 32GB A2 Class Micro SD Card. On this page you can tick the parts you already have and add only the rest to your cart.
No. This page has the complete, tested code (timelapse.sh).
About ₹11,027 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Enabling a camera with a device tree overlay; Timelapse timing maths; Making a video from photos.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.