Today we will learn to use GPIO pin to glow LED using python
scripts. Beauty of Raspberry PI is GPIO, General Purpose
Input/Output ports. This can be used to give output or receive input.
Prerequisite
- Basic understanding of Linux terminal commands
- Basic understanding python coding
- Basic knowledge of basic circuits
Note: RPi GPIO input voltage and output current limitations for GPIO pins: These are 3.3 volt logic pins. A voltage near 3.3 V is
interpreted as a logic one while a voltage near zero volts is a logic
zero. Never give higher volts like 5V or have big load like stepper
motor on this pins. This will blow RPI. In next blogs will update how to
overcome this limitations.
RPI = Raspberry PI 🙂
Requirements :
- Raspberry Pi
- Will be using Raspberry Pi 3 Model B for this experiment,
- Breadboard
- Using 830 Points for this experiment, 400 points breadboard is also sufficient.
- LED (Light Emitting diodes)
- Resistor – 330 ohms TO 1K ohms
- Resistor will limit current to LED and product our RPI. To know more about resistor visit https://learn.sparkfun.com/tutorials/resistors .
- Dupont Jumper wires
- I am using Male-to-Male as I am using Directly via breadboard.
You may use Male-Female if you do not have Tcobbler with 40 pins.
One side will then connect to RPI and other to breadboard
- I am using Male-to-Male as I am using Directly via breadboard.
- T-Cobbler with 40PIN cable (Preferred, Not Mandatory), This also help to identify BCM Pin numbers
- Using T-cobbler as I have kept my Raspberry Pi in Clear Case as
displayed below. Now do not have to open case every time. From RPI have
40PinCable safely connected to T-Cobbler on BreadBoard.
- Using T-cobbler as I have kept my Raspberry Pi in Clear Case as