Hardware Reference
In-Depth Information
FIGURE 8-8 Circuit diagram to connect components to Raspberry Pi for a blinking
LED
3. Plug the other end of the jumper cable into a hole in the second column, between
the red and blue lines on the breadboard. Remember that these two columns
between the red and blue lines are for power—one for positive (red) and one for
negative (blue). You want to plug your jumper cable into the blue negative col-
umn, three rows down.
4. Now add a 330 ohm resistor by pushing one of its legs into E5 and the other leg
into a hole in row ive of the blue negative power column on the breadboard. It
does not matter which way round the resistor is placed.
Remember that LEDs can only pass current in one direction. For the LED to
work, you must make sure that you place the longer leg into the same row (D10)
as the jumper cable connecting to GPIO 24. he short leg must be placed into a
hole on the same row as the resistor (D5). Refer to Figure 8-8 for guidance.
Running LEDblink.py as the Super
User root
he program will not run unless you run it as the super user root on the Raspberry
Pi. In previous adventures, when you created Python programs you selected File Run
Search WWH ::




Custom Search