We're going to use a combination of the Adafruit IO Client Library and Adafruit's CircuitPython to control a Raspberry Pi over Adafruit IO.
If you're following along with a Raspberry Pi, we're going to use a T-Cobbler Plus for the IO Basics Projects. This add-on prototyping board lets you easily connect a Raspberry Pi (Raspberry Pi Model Zero, A+, B+, Pi 2, Pi 3) to a solderless breadboard:
We'll also need a temperature and humidity sensor. The DHT22 is a low-cost temperature and humidity sensor which is easy to wire up. You'll also need a 10k ohm resistor.
Make the following connections between the Pi and the DHT22:
- Pi 3.3V to DHT Pin 1
- Pi Digital Pin 26 to DHT Pin 2
- Pi GND to DHT Pin 4
- 10k ohm resistor (left pin) to DHT Pin 2
- 10k ohm resistor (right pin) to GND
Text editor powered by tinymce.