1. Firstly, connect the GPIO pin to the bread board as shown in the figure.
Figure 1: Connect the GPIO pin to the bread board
2. Here we use the PIN Number: “
4 “ (As per number 4(pin rank 7) , third from the top – left ). For getting the output from the Raspberry PI connect eh jumper wire from Raspberry PI GPIO pin “
4” to the bread board as shown in the image.
Figure 2: Connect eh jumper wire from Raspberry PI GPIO pin
3. Now take LED and put it on the bread board as shown in the image.
Connect the plus terminal of LED to the Jumper cable (green cable in image) coming from the GPIO Pin “
4” as shown in the image.
Figure 3: Connect the Plus terminal of LED to the Jumper cable
4. Now take another jumper cable (black cable in image), connect it to the GPIO pin “
Ground” (As per number 3 (Pin rank 6), third from the top – right ). And another terminal of this wire to minus terminal of the LED as shown in the figure.
Figure 4: Black cable in image
5. Here for detecting the plus/minus terminal of LED, bigger (toll) terminal of LED is plus and smaller (short) terminal of LED is minus. Or you can define it by cutting, the side part of LED is Minus terminal.
Figure 5: Detecting the plus-minus terminal of the LED
6. Now write the python program for blinking LED every 1 second.
Now you enjoy with your Raspberry PI and if you like my tutorial or have any query comment on this.