Hardware Reference
In-Depth Information
6. Repeat this step for the stop button, only this time connect the female end of
the jumper cable to GPIO 7 (a red cable in the Figure 9-8).
7. Repeat Step 5 again for the skip tracks backwards button, connecting to GPIO 4;
and the skip tracks forwards button, connecting to GPIO 10 (blue cables in
Figure 9-8).
FIGURE 9-8 Wiring diagram for the four jukebox buttons
A
If you are using a full-sized breadboard, the power and ground rails should run all
the way down the strip, which means that your LCD screen and buttons will be
powered. However, if you are using a full-sized breadboard that has two halves,
like the one used in Figure 9-9, you will need to bridge the channels so that power
and ground extend all the way along the strip. To do this, take two male-to-male
jumper cables and bridge the gap by pushing one end of the cable into the red
(positive) power column hole on one side of the breadboard and the other end
into a hole on the other side of the breadboard in the same red (positive) power
column. Repeat this step for the blue (negative) ground column. See Figure 9-9.
The circuit being used here has pull-down resistors, which are as valid as pull-up
resistors and will not damage your Pi.
Search WWH ::




Custom Search