Close

A Note on Wiring

A project log for VoiceBox

Adding a Flask web interface (and other stuff) to the Google AIY Voice Kit.

tmTM 08/01/2018 at 20:530 Comments

Having hinted at wiring connections in the piHole GPIO screenshot, I thought I'd better give an overview of where we're heading. I fried the backlight on a Nokia 5110 by connecting to the wrong Voice Hat output and wouldn't want anyone to make the same mistake.

We're going to connect the Nokia backlight to GPIO22, labelled Driver3-PIN in the diagram above. You must use the "raw" 3.3V GPIO pin, coloured yellow in the diagram. The red coloured "Driver3+" output has been boosted to 5V and will blow the LEDs in the Nokia display. The display will also use the SPI pins (CLK, MOSI, CE0, GND & 3.3V) in the middle of the board (above the "Voice Hat" label), GPIO 5 (Servo 3) is connected to the RST pin of the display, and GPIO 13 (Servo 2) is connected to DC. To summarize:

Pi Pin
Voice Hat labelDisplay Pin
GPIO22
Driver3-PIN (leftmost, yellow pin)LED/LIGHT
GPIO11/CLKCLKSCLK/CLK
GPIO9/MOSIMOSIDN(MOSI)/DIN
GPIO13Servo2-PIND-C/DC
GPIO5Servo3-PINRST
GPIO8/CE0CE0SCE/CE
GNDGNDGND
3.3V3.3VVCC

For the 5V cooling fan on the rear face of the enclosure we use the buffered 5V output of Driver2 (driven by GPIO27).

GPIO27Driver2+Fan +5V
GNDDriver2-Fan 0V

By default, the Pimoroni Blinkt (8 "Neopixel" strip) uses GPIO23 for its DAT (Data) connectionn and GPIO24 for CLK (Clock). GPIO24 is exposed on the VoiceHat board (labelled Servo5-pin), but GPIO23 isn't. Fortunately, as we're not plugging the Blinkt directly into Pi header, we're free to hack the blink.py library to use different GPIOs, as long as we connect the outputs to GPIO23 & GPIO24 on the back of the Blinkt. We'll go over this again in a later log post, but for now, just note that we'll be using the following pins:

GPIO26Servo0-PINGPIO23(DAT)
GPIO6Servo1-PINGPIO24(CLK)

That's it for now. We'll post pictures of the connections in later logs. This post is just to ward off people frying LEDs with guessed connections.

Discussions