TWEETY
Send temperature sensor data to Twitter
Les Pounder can’t make it to outer space, but he can broadcast the temperature while he’s sat at his earthbound command desk.
OUR EXPERT
Les Pounder is associate rditor at Tom’s Hardware and a freelance maker for hire. He blogs about his adventures and projects at bigl.es.
YOU NEED
Any Pi
Raspberry Pi OS
Sense HAT
Internet connection
Twitter account
Code: https:// github.com/ lesp/LXF-Twitter-Sense/ archive/ refs/heads/ main.zip
T he Raspberry Pi Sense HAT is a science lab that connects to the Raspberry Pi for an “out of the world” experience. Right now there are two of these boards on the International Space Station, collecting data and running code created by children. In this tutorial we’ll keep our feet on the ground, but will broadcast our sensor data across the globe thanks to Twitter and a little Python code.
The hardware build is simple. With the Pi powered off, connect the Sense HAT so that it fits neatly on top of the Pi. It should not overhang. When done, connect your keyboard, mouse, HDMI and finally power to the Pi. The Sense HAT will display a bright rainbow pattern on boot.