Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsThe Raspberry Pi 5 has a PCIe connector, so an M.2 NVMe SSD on a HAT gives it storage many times faster than a microSD card. With the official active cooler and 27 W supply it runs around the clock. You will boot from the SSD, set up SSH and a file share, and optionally power it over Ethernet and manage it with an IP KVM.
Shut down with sudo poweroff before unplugging so the SSD is not corrupted.
Tick anything you already have and the total updates.
Holds an M.2 NVMe SSD on the PCIe ribbon
5 V 5 A supply: enough for the Pi, the SSD and USB devices
Case for a Pi 5 without the HAT; with the HAT use an open frame
Only for first setup with a monitor
Optional: power over the Ethernet cable from a PoE switch
Optional: see the screen and type on the Pi from a browser, even when it will not boot
setup.sh#!/bin/bash
# Run on the Pi after first boot from the SSD
sudo apt update && sudo apt full-upgrade -y
lsblk # the SSD shows as nvme0n1
vcgencmd measure_temp # under 70 C at idle with the active cooler
sudo apt install -y samba
sudo mkdir -p /srv/share && sudo chown $USER /srv/share
printf '[share]\n path = /srv/share\n read only = no\n valid users = %s\n' "$USER" | sudo tee -a /etc/samba/smb.conf
sudo smbpasswd -a "$USER"
sudo systemctl restart smbd
Check the ribbon orientation and that it is fully seated, update the EEPROM with sudo rpi-eeprom-update -a, and try another SSD; a few models are not compatible.
Use the 27 W supply; phone chargers often cannot give 5 A at 5 V.
Check the cooler fan spins and the fan lead is plugged in.
It can be enabled in config.txt (dtparam=pciex1_gen=3) but is not officially supported; test it for stability.
Most small Pi 5 cases have no room for a HAT; use an open-frame mount or a case made for NVMe HATs.
Stack only boards made to share the GPIO and PCIe space; check the HAT makers' compatibility notes.
8 parts: Raspberry Pi 5 with 4GB RAM, Waveshare PCIe to M.2 NVMe HAT for Raspberry Pi 5, Official Raspberry Pi 5 Active Cooler, Official 27W USB-C PD Power Supply for Raspberry Pi 5 – IN Plug, Black ABS Striped Case for Raspberry Pi 5, Micro HDMI Male to HDMI Female Adapter for Raspberry Pi, Waveshare PoE HAT (G) for Raspberry Pi 5, 5V 5A Output and Luckfox PicoKVM Lite IP KVM Remote Management Tool. 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 3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (setup.sh).
About ₹23,868 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
PCIe and NVMe on the Pi 5; Changing the boot order in the EEPROM; Headless setup with SSH; Cooling and power budgets.
Shut down with sudo poweroff before unplugging so the SSD is not corrupted.
Ideas that reuse this build: Build a garden watering timer on a Pi relay HAT. They are listed under Take it further on this page.
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.
Learning project. Check every circuit and the datasheet of each part before you power it up.