Overview of Steps
In the first phase, I will install only one LED. Next, I download the LED class python module that represent one hardware LED. I will run the LED class python module to blink that LED. The first phase serves as a “Proof of Concept”.
In the second phase, I will install another 4 LEDs. Finally, I run the python main module to create a series of five sequentially blinking LEDs as depicted in the video above
Step 1: Materials
Gather the following materials:
1 Raspberry Pi device running on standard Raspbian Linux installation
5 LEDs rated at 2.4V
5 Resistor (can be between 185 Ohms to 270 Ohms)
5 single-core wire (also called solid wires, solid-core or single-strand wire, consists of one piece of metal wire. Solid wire is useful for wiring breadboards. I stripped an unused telephone wire to get the single-core wire. There are 4 thin insulated single-core wire in a telephone cable. Choose any one and strip the insulator off just enough to expose bare metal at the two ends.)
Step 2: Installing the first LED
WARNINGBe careful when installing the LED with the Raspberry Pi as it may short-circuit and damage Raspberry Pi device. Do this at your own risk. Remove all power supply source from your Raspberry Pi device.
MaterialsThe following materials are required:
1 X Raspberry Pi
1 x LED
1 X 165 Ohm Resistor
2 X Male-Female Jumper Wire
1 X 5cm single core wire 1 X Breadboard
- Read to the GPIO diagram to locate the pins.
- Connect female end of jumper wire to the GPIO Pin 11. (This pin will be programmed to supply 3.3 Volts)
- Connect male end of jumber wire to the breadboard as shown in video.
- Connect resistor to breadboard as show in video.
- Connect LED to breadboard as shown in video.
- Connect the single-core wire as shown in video
- Connect female end of another jumper wire to GPIO Pin 6 (This pis is at 0 Volts.)
For more detail: Blink a series of LEDs using Python Programming Language and Raspberry Pi