A real-time temperature monitoring project for Raspberry Pi Pico with Pimoroni's Pico Display. This script reads from the onboard temperature sensor, displays readings graphically on the Pico Display, and uses color-coded LED indicators based on temperature thresholds.
- Real-time temperature tracking and display
- Color-coded graph bars (green, red, blue)
- LED notification system
- Console debug output
- Adjustable accuracy and threshold settings
- Raspberry Pi Pico
- Pimoroni Pico Display
- MicroPython and required libraries:
machine
utime
picodisplay
- Copy the
temp-mon.py
script to your Pico. - Run the script with MicroPython.
- Watch the display light up with your ambient temperature readings in real time!
You can tweak the following variables in the script:
t_hot = 25 # Temperature threshold for 'hot' (in Celsius)
t_cold = 18 # Temperature threshold for 'cold'
t_adjust = 1.5 # Manual sensor calibration value
- π΄ Red bar: Hot (above
t_hot
) - π΅ Blue bar: Cold (below
t_cold
) - π’ Green bar: Normal range
The script prints sensor readings, temperature values, and loop count to the console for troubleshooting and performance tracking.
SilentWoof
Original script: temp-mon.py