PYTHON
Build an embedded temperature sensor
Les Pounder is feeling the chill this winter, but just how cold is it in his workshop and should he invest in a woolly hat, complete with pom-pom?
OUR EXPERT
Les Pounder is associate editor at Tom’s Hardware and a freelance maker for hire. He blogs about his adventures and projects at
bigl.es.
YOU NEED
Any Pi Latest Raspberry Pi OS Pimoroni Display HAT Mini Adafruit AHT20 Sensor Stemma QT wire Get the code: https:// github.com/ lesp/LXF- Display-HAT- Mini-Temp- Checker/ archive/ refs/heads/ main.zip
W hile reviewing the Pimoroni Display HAT Mini (see page 43) we created a quick project to demonstrate how easy this screen is to work with, and how useful the QW/ST connector is. The project uses an AHT20 temperature sensor to collect data, which is then displayed on Display HAT Mini’s screen to create a mini temperature monitor station.
With the Raspberry Pi powered off, connect the Display HAT Mini to the GPIO and use the included standoffs to secure the screen to the Pi. Take care pushing it onto the GPIO – the screen is fragile. Now is also the time to connect the AHT20 sensor to the QW/ ST connector on the HAT. Connect your keyboard, mouse etc and then power up your Pi to the desktop.