Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsSony's IMX462 'starlight' sensor is very sensitive, especially to near-infrared light, so it sees far more at night than a normal Pi camera. The Waveshare module has an IR-cut filter that the camera swaps in by day for true colours and out at night to use IR light. With rpicam-vid and a long exposure, the Pi records clips with a time stamp.
Respect privacy: point it at your own property only.
Tick anything you already have and the total updates.
Waveshare IMX462 2 MP IR-cut starlight camera
Follow the colours: red is power, dark grey is ground, blue is a signal.
Official Pi supply; mount it under a roof.
night.sh#!/bin/sh
mkdir -p ~/night && cd ~/night
while true; do
rpicam-vid -n -t 600000 --width 1920 --height 1080 --framerate 10 \
--shutter 90000 --gain 12 --denoise cdn_hq -o "night_$(date +%Y%m%d_%H%M).h264"
done
The IR-cut filter is not switching in; check Waveshare's notes on the IR-cut control.
Lower the gain and lengthen the shutter, or add an IR lamp.
The overlay line is missing or wrong for your OS version.
No camera does; it needs a little light or an IR lamp.
Fewer, bigger pixels collect more light, which matters more at night than resolution.
Yes, stream with MediaMTX or view it in a home camera app over RTSP.
4 parts: Waveshare IMX462 2MP IR-CUT Starlight Camera for Raspberry Pi, Raspberry Pi 4 Model B 2GB RAM Single Board Computer, Official Raspberry Pi 32GB A2 Class Micro SD Card and Official Raspberry Pi 4 USB-C Power Supply – 15.3W. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (night.sh).
About ₹12,536 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Low light sensors and near-infrared; What an IR-cut filter does; Recording video with rpicam-vid.
Respect privacy: point it at your own property only.
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.