Working with LEDs with GPIO Board and Raspberry PI

Опубликовано: 08 Май 2026
на канале: SKY CSS
15
0

Can Raspberry Pi GPIO drive LED?
The Raspberry Pi can control LEDs, turning them on and off, as well as motors and other devices. It can also detect whether a switch has been pressed, as well as detect temperature and light.

How do I control LED with GPIO?
Connect a column on the breadboard to the resistor from the corresponding row on the breadboard. In the same row as the resistor, connect the LED to the cathode. Place the anode in the next row. Connect the GPIO Pin 21 (3.3 V) in the same row as the LED anode with another jumper cable.

How do you interface an LED with Raspberry Pi board?
Check that your Raspberry Pi is turned on. Take another male-to-female jumper wire and place the male end on the same side of the ravine as the resistor's second leg. Then connect the female end to the GND pin. Your LED should now be on!

How do I turn on the LED on my Raspberry Pi GPIO?
Connect the pin of a male to female jumper cable (which has a pin on one end and a socket hole on the other) to the second resistor leg on the breadboard as illustrated below. Connect the female (socket) end to a 3.3v GPIO pin on the Raspberry Pi. Your LED should be turned on now.

How many LEDs can a Raspberry Pi drive?
In theory, each GPIO output can drive one LED. You can't identify which one you have because the RPi3 and RPi1 have different numbers of outputs. You should not, however, pull more than 16mA per pin and 50mA overall. If you do, your Raspberry Pi could be destroyed.