Python Wiring

This guide is also compatible with the Raspberry Pi using CircuitPython. We're going to build the house's lighting system, wire up the temperature and humidity monitoring circuit, and program it with CircuitPython.

The Pi Zero W has built-in WiFi - which is great for connecting our environmental monitor to Adafruit IO. It's also smaller than a regular Raspberry Pi 3, making it the perfect size to bring with you (monitor the air in the subway station) or stick it in a small corner of your room. 

Raspberry Pi Zero W

PRODUCT ID: 3400
If you didn't think that the Raspberry Pi Zero could possibly get any better, then boy do we have a pleasant surprise for you! The new Raspberry Pi Zero W...
$10.00
IN STOCK

While we could use a breadboard, we'll build our own pHAT for our IO House.

Adafruit Perma Proto Bonnet Mini Kit

PRODUCT ID: 3203
Design your own Bonnet or pHAT, attach custom circuitry and otherwise dress your Pi Zero with this jaunty prototyping Bonnet kit!To add to the
$4.50
IN STOCK

Wiring

First, solder the included 20x2 GPIO Header to the Perma Proto Bonnet

Follow the steps on the Putting it Together page until you reach the Arduino Wiring. Instead of following that, use the Python Wiring below:

Python Wiring

Make the following connections between the Si7021 sensor to the Pi:

  • Si7021 Vin to Pi 3V
  • Si7021 GND to Pi Ground
  • Si7021 SCL to Pi SCL
  • Si7021 SDA to Pi SDA

Make the following connections between the NeoPixel Jewel to the Pi:

  • NeoPixel Jewel GND to Pi GND
  • NeoPixel Jewel PWR to Pi 3V
  • NeoPixel Jewel DIN to Pi Digital Pin #18

Make the following connections between the 3-Pin JST Plug to the NeoPixel Jewel:

  • NeoPixel Jewel GND to JST Left Pin
  • NeoPixel Jewel DOUT to JST Middle Pin
  • NeoPixel Jewel PWR to JST Right Pin

Lastly, we'll connect the NeoPixel stick to the 3-Pin JST receptacle:

  • NeoPixel Stick GND to JST Left Pin
  • NeoPixel Stick DI to JST Middle Pin
  • NeoPixel Stick +5V to JST Right Pin

Note: Make sure the NeoPixel strip has arrows pointing upwards, towards the NeoPixel

After wiring it up, plug the 3-Pin JST from your bonnet into the receptacle from the roof.  Plug the Pi's PWR IN into a 5V 2.5A switching power supply

Next, we're going to set up the Raspberry Pi Zero for use with CircuitPython, Adafruit IO, NeoPixels, and the Si7021.

This guide was first published on Aug 27, 2018. It was last updated on Aug 27, 2018. This page (Python Wiring) was last updated on Jul 30, 2019.