Skip to main content

Questions tagged [led]

An LED, a light emitting diode, is a light source often used as an indicator.

Filter by
Sorted by
Tagged with
44 votes
5 answers
114k views

What do system LEDs signify?

There are 5 status LEDs on the Raspberry Pi board. While I can guess what the POWER LED signifies (the power being attached), I am not sure about other four. So, what do OK, FDX, LNK and 10M signify?
user avatar
22 votes
3 answers
35k views

Why are some GPIO pins HIGH when the Raspberry Pi boots up?

I have an easy circuit wired up, with an LED connected to pin 18 on the BOARD reference. I run a simple program to put pin 18 to HIGH, which turns the LED on, and then a couple of seconds later, I set ...
Viktor Raspberry's user avatar
77 votes
7 answers
71k views

How do I control the system LEDs using my software?

There are 5 LEDs on the RPi: OK, PWR, FDX, LNK, 10M. I'd like to know if it's possible to control any of these from software i.e. turn them on, or change intensity (or even change colour gasp). And ...
Maria Zverina's user avatar
12 votes
2 answers
35k views

Controlling many LEDs with few GPIO pins

I successfully completed my hardware "hello world" using this guide: http://www.raspberrypi-spy.co.uk/2012/06/control-led-using-gpio-output-pin/ Now I'd like to move on to bigger and brighter things,...
SkyNT's user avatar
  • 223
36 votes
3 answers
40k views

Why is a resistor needed for LEDs?

While looking for a basic task to get familiar with the Raspberry Pi and its GPIO pins, I decided that driving an LED sounded simple enough. While investigating how to go about this task I've noticed ...
Jason Whitehorn's user avatar
1 vote
2 answers
226 views

Slight dip on the GPIO 5v line when LEDs are on

I have my raspberry pi set up to do two main things: control 16 LEDs via 16 transistors each connected to an out pin. The LEDs are collectively fed the 5V from the GPIO. power a chip also on the 5V ...
schmop's user avatar
  • 179
10 votes
2 answers
4k views

Controlling 400 LEDs from a raspberry pi

I have a client who has several large bronze signboards, each with 100-150 little light bulbs on it, totaling approximately 400 bulbs. The bulbs are turned on and off on a schedule, currently by hand ...
Moshe Katz's user avatar
7 votes
1 answer
8k views

Is my Pi's GPIO damaged?

I am trying to test GPIO output on a Raspberry Pi, and I am wondering if it is broken. These setups work: 3v3 >> +LED terminal -LED terminal >> resistor >> GND (the LED is unusually dim here) 3v3 >>...
Daniel D'Souza's user avatar
3 votes
3 answers
62k views

Why Isn't My Ethernet Working?

I just got Pi Model B. I downloaded Wheezy on SD card and plugged in all of my cords. Everything works fine except the Ethernet port. The LINK LED flickers for a second while booting up, but then it ...
Gaurav's user avatar
  • 171
35 votes
1 answer
93k views

What do the LEDs on the B+ mean?

Not a duplicate of this RPi.SE question, as I'll explain in a moment. GPIO.RPI_REVISION returns 3. As far as I can tell, looking at my B+, there are no LEDs labeled: OK, FDX, LNK or 10M. There are ...
PythonNut's user avatar
  • 566
8 votes
5 answers
13k views

Are there other act_led_trigger options besides "mmc" and "heartbeat"?

/boot/overlays/README has this text: act_led_trigger Choose which activity the LED tracks. Use "heartbeat" for a nice load indicator. ...
Lucas Walter's user avatar
4 votes
1 answer
756 views

Can't get LED to turn off

I'm a rookie with Raspberry Pi and electronics in general. I was able to get my LED to turn on when I plug it into the breadboard but i'm unable to get it to respond via Python or wiringPi. The LED ...
Catfish's user avatar
  • 193
4 votes
1 answer
2k views

Powering and controlling hundreds of LEDs with a Raspberry pi

How do you utilize the Raspberry PI to be able to power hundreds of LED lights? Imagine I have Christmas Lights (LED) and I want to be able to control all individually (write a program on the ...
Matthew's user avatar
  • 231
4 votes
1 answer
1k views

Powering WS2812B LED strip from Pi brownouts

I have a Raspberry Pi 3 Model B currently controlling and powering a strip of WS2812B LED's. A separate 5V 15A power supply powers the Pi through pins 2 and 6, while the LED's are powered off of pins ...
TJ Mazeika's user avatar
4 votes
3 answers
17k views

Is it possible to connect an LED directly to the GPIO of the Pi?

I was wondering if it is possible to connect an LED directly to one of the GPIO pins of the Pi? The reason I ask is that, I have read from many sources that if I am not using some sort of break out ...
Jay's user avatar
  • 143
2 votes
3 answers
1k views

Powering 100mA LED

I want to power an 1.5V LED fully and control it using pi. I can only use 16mA per pin and i need 100mA. Can you give me suggestions? I can turn it on with 5V and 35 ohm resistor but not control it. ...
Sci00213's user avatar
2 votes
1 answer
594 views

Issue with a 12v switch via GPIO output

I am a beginner when it comes to electronics so I would appreciate your help with a simple project I am working on and have been struggling with for several days. The idea is that I have a PIR Sensor ...
orange orange's user avatar
2 votes
4 answers
5k views

Red LED after `sudo halt`, may I unplug?

I flashed Raspbian and I use my Pi headless, connecting via SSH. To power it off I do sudo halt, which disconnects me from the SSH. After a few green led blips I have steady red led on. Does it mean ...
Rho Phi's user avatar
  • 121
2 votes
1 answer
1k views

LED resistor question

I'm fairly new to electronics and I'm in the process of creating a IR Birdbox using a Pi Zero and IR Camera. I have a quick question regarding the correct usage of Resistors for IR LEDs (Or any LEDs ...
4dogsofwar's user avatar
1 vote
2 answers
7k views

Python - One momentary switch, LED, and a shut-off timer

I'm working on programming a LED strip lights application that is activated with a momentary push button and if the lights are not turned off by the push button, then they automatically turn off after ...
Unbored's user avatar
  • 13
0 votes
1 answer
306 views

RFID and LED Script disables RFID reader until reboot

I have two simple scripts, which work individually. One simply lights an LED, the other reads RFID. Now I want to put them together, but seem to fail. Once this runs, I can't read RFID anymore until ...
lisa-thehexbit's user avatar
-1 votes
1 answer
664 views

Raspberry Pi and car led ground effects

I am about to add led strips to my car. I will have at least 4 zones to start out and might add more. 1. Under carriage 2. Front end 3. External 4. Internal Doing it now, I will have 4 controllers ...
Daasu's user avatar
  • 1
-2 votes
2 answers
1k views

12V LED/switch - where to insert resistor to connect to PI GPIO

Hoping someone can help me with connecting my 12V push button LED circuit to a PI GPIO. I want to be able to sense when the button is pressed and the LED lights up using python. From what I've read I ...
dbmitch's user avatar
  • 381
14 votes
2 answers
3k views

What do I need to simulate traffic lights using LEDs?

So I'm making a model that simulates traffic lights (Red, Amber, Green) so there will be three LEDS that need to be preferably extendable (I don't want them attached directly to the breadboard) but I ...
Phorce's user avatar
  • 623
11 votes
2 answers
5k views

What's the Difference between Raspberry Pi and Arduino?

This question stems from a large lack of understanding, but it concerns a project I've wanted to do for a while. This is an Instructables page for an 8x8x8 led cube, and the 70th step addresses the ...
SomekidwithHTML's user avatar
7 votes
5 answers
25k views

Which addressable RGB LED strips are beginner friendly and Raspberry Pi friendly?

I'm programmer and my electronics knowledge and soldering skills are pretty basic. I want to find a bright, addressable (a.k.a. digital) RGB LED strip which can be attached to RPi and programmed ...
JustAMartin's user avatar
6 votes
4 answers
7k views

Connecting blue LED (3.3V)

I've recently started doing basic diode connections (red and green diodes). I've also got blue diodes, but there's one thing that prevented me from connecting them already, namely - the specs say they'...
Bartosz's user avatar
  • 233
5 votes
4 answers
4k views

What is the maximum number of RGB LEDs that can be controlled individually?

I've read that 17 LEDs can be controlled individually with the 17 GPIO pins. Does that mean that only 5 (17 / 3 = 5.6) RGB LEDs can be controlled with one Pi? Would it be possible to individually ...
barro32's user avatar
  • 171
5 votes
3 answers
774 views

Is there an addressable LED product that I can wire to a Raspberry Pi where all the LEDs are separate?

I have a RPi project where I want to build but alas I'm a programmer, not an electrical engineer. I can solder things, but I couldn't tell you what resistor I needed to put where. Anyway, I looked ...
stu's user avatar
  • 153
4 votes
1 answer
903 views

GPIO stuck in High Mode

I'm new to this whole RP world, and I'm trying to learn it. I've been trying to follow this post, and connected my Pi this image below Connection between Pi and Adafruit T-Cobbler Plus Wiring ...
code-8's user avatar
  • 177
4 votes
1 answer
8k views

Why can't I turn on an LED through Python?

I have an LED connected to pin 11 on the Raspberry Pi header, (also known as BCM/GPIO pin 17, and GPIO0). I have installed the Raspberry Pi Python library according to these instructions. Attempt 1 ...
spuder's user avatar
  • 1,173
4 votes
2 answers
3k views

Read status of power led using sysfs

I want to read the status of GPIO35 on a Raspberry Pi 2 Model B using the sysfs on Raspbian with a 4.0.8-v7+ kernel. I can access other GPIO pins using /sys/class/gpio but the two leds are already ...
Joffrey's user avatar
  • 151
3 votes
3 answers
740 views

Can't get my LED to flash

I'm trying to get started with GPIO, but I just can't get this LED to flash on and off, for some reason. I'm using Raspbian on an old model B Pi with a 26 pin breakout board and a breadboard. The ...
Daver80's user avatar
  • 31
3 votes
4 answers
3k views

Control 18 LEDs individually? (17 GPIO pins)

Note: I have read Controlling many LEDs with few GPIO pins, but I can't buy additional parts (Degree project) The end result is to make a noughts and crosses grid with 2 LEDs per grid cell. This ...
Pingk's user avatar
  • 131
3 votes
2 answers
1k views

Powering several LEDs from GPIO output

I'm currently working on a "rotating cube" project where a raspberry pi will be used to determine which cube face is at the top and any given time using an accelerometer and light it up with LEDs. So,...
Pys3nberg's user avatar
3 votes
4 answers
5k views

'Zoom out' on 3.5 inch LED screen

I bought a 3.5" LED screen that is on my Pi, however it is nearly impossible to use because edges of windows are clipped off etc. How can I 'zoom out' so that all the windows are really tiny? ...
Code Cowboy's user avatar
3 votes
1 answer
1k views

Powering up a WS2812 led strip with different power supplies

I have a Pi powered with its own adapter. I bought a 1 meter ws2812 led strip and bought a separate power supply for it (5V 6A). I plan to plug the +5V of the power supply directly to the +5V section ...
Mark Pazon's user avatar
3 votes
6 answers
5k views

Turn off external LEDs on Raspberry Pi 3

I see there are quite a few posts about this already but none seem to work for me. I am running a pihole server on my RPi 3 and I would like to turn off the external power and LAN LEDs (green and ...
GiarcTNA's user avatar
  • 139
2 votes
2 answers
2k views

AC mains dimmer dimming 7W LED lamp problem (RpiZero + MPDM V4.1)

I'm trying to dim a 7W LED with a Raspberry Pi Zero for home automation. However it doesn't work as expected. I followed this tutorial : https://www.youtube.com/watch?v=wqY4-gHqvZI . I have the exact ...
Milodupipo's user avatar
2 votes
1 answer
742 views

Model B+ i2c issues with 7 segment display

I purchased a 4 digit 7 segment display from adafruit and got it working on my old model A running adafruit occidentalis operating system. I recently bought a model B+ and installed the latest version ...
user137's user avatar
  • 151
2 votes
1 answer
689 views

Other hardware for camera slots?

I think the raspberry should get more cool hardware like the camera that works with the slot onboard. I'd love to get a fast RS485 onto this slot because i need all my GPIOs for LEDs. Currently I use ...
feedc0de's user avatar
  • 229
1 vote
2 answers
210 views

Breadboard circuit with LED going through 2 circuits doesn't work as expected

I have the resistor, GPIO24, and the LED anode connected along the same row of a breadboard. The signal from GPIO24 works as expected, but any signal from GPIO23 is lost and the LED will not light. I ...
Brady Dean's user avatar
1 vote
1 answer
910 views

Control single-light LED strip 24v with Raspberry pi and mosfet

I'm trying to make my LED strip fade-in and fade-out by using Raspberry-pi 4, unfortunately for me, I am not an electronic expert. Every tutorial I saw so far was for RGB LED strips and I have a ...
Omri's user avatar
  • 111
1 vote
1 answer
299 views

Pi is not working properly red led not glowing and green led blinking

I bought raspberry pi b+ some days ago. It worked properly for some days, but now I face a problem the red LED is not glowing and green LED is blinking along with processor is overheated. Can any one ...
nare's user avatar
  • 11
1 vote
2 answers
2k views

Pi4 GPIO Control with Java

I am basically trying to turn on a led by using pi4j library. My code is pretty simple: public static void main(String args[]) throws InterruptedException { GpioController gpioController = ...
osumatu's user avatar
  • 113
1 vote
3 answers
573 views

I'm looking for a serial input type "polychromatic" LED as an output for my raspberry pi. Does such a device exist?

Forgive any potential neologisms, but I would like to acquire a light that can, say, display 64-256 different shades of color based off of a digital numerical input signal? It can be a usb light, but ...
boulder_ruby's user avatar
1 vote
2 answers
1k views

Why won't the LED turn on?

Here is the code I am running on the Pi through IDLE. import RPi.GPIO as GPIO import time GPIO.cleanup() GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) for i in range(50): GPIO.output(12, 0) ...
Ben Lucier's user avatar
1 vote
1 answer
763 views

extend the current for PWM LED Control

i am using the raspberrypi to have 2 led's fade up and off. My script works and its ready to go. But i need to get my LED's brighter. Is there a way to extend the GPIO Current of the rasperry pi ? ...
Gutz-Pilz's user avatar
  • 111
0 votes
2 answers
901 views

Resistors on the RPI GPIO

I need to figure out what kind of resistors to get with the GPIO. In total, I have 13 LEDS hooked up to the GPIO. 1 Red 5mm, 20mA, 2.4v 2 Yellow 5mm, 20mA, 2.4v 1 Green, 5mm, 20mA, 2.4v 1 Blue, ...
LilVinny's user avatar
  • 440
0 votes
1 answer
1k views

Piezo Buzzer Driven By Rpi GPIO Problem

I'm trying to light up an LED and play a buzzer noise at the same time. Here is my code so far: Import RPi.GPIO as GPIO Import time GPIO.setmode(GPIO.BCM) GPIO.setup(7, GPIO.OUT) while True: ...
smuvv's user avatar
  • 101