Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [led]

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

0
votes
1answer
28 views

3 PWM pins for RGB LED

I got an RGB LED, one mass and one for blue, red, green. So I got a list there are only two PWM compatible pins listed. Pin 32(GPIO 12) and pin 33(GPIO 13). But for my RBG LED I need three pins with ...
1
vote
2answers
82 views

How did I manage to fry my pi 3+B? Can I recover it?

I'm new to Raspberry pi and electronics in general. All worked fine (a node webserver, reading a DHT22 sensor) then I tried this tutorial - https://www.raspberrypi.org/magpi/breadboard-tutorial/. It ...
1
vote
0answers
23 views

Ethernet Indicator led on pi 3B+ not glowing

I am a newbie to Raspberry Pi and recently bought Raspberry pi 3 B+. I first downloaded and burn the minibian on sd card as some course suggested minibian. But whenever I connect pi with power, only ...
0
votes
0answers
19 views

RP 3b - green led flashes 4 times

I tested one SD card on 2 different RPis and I get the same pattern: no boot, green led blinks continuously on a 4-blink pattern. This would point to a problem with the SD card but I tried reading the ...
1
vote
1answer
24 views

Powering common anode project from GPIO output instead of 3.3V

Instead of doing PWM on each "return pin" as it can be seen in Schematic diagram A, my idea is to use only one PWM for powering the circuit from GPIO4 (PWM) as it is drawn in circuit B. Is it (diagram ...
0
votes
1answer
24 views

My Raspberry Pi B+ has the Ri 2 B pinmap

I trying out different java programs for my RPi B+ V1.2 and as far I have only tried to blink with a lamp for a few seconds. It works. Now I want to try to blink with a lamp by using a button. In ...
0
votes
1answer
93 views

LED pwm fading is flickering

This is how I'm fading some LEDs using a logarithmic function. But with that the LEDs are flickering somehow. I don't understand why... import time import math import RPi.GPIO as GPIO GPIO.setmode(...
2
votes
1answer
215 views

Red led repeatedly blinks 4 short and 4 long on RPi 3B+ with TinyCore

The red led repeatedly blinks 4 long 4 short and the Pi doesn't boot. Tested with various power adapters. When powered up without an SD card the red led is solid. I'm using an SD card that works fine ...
0
votes
2answers
141 views

How to properly implement threading within a function toggled by a button [closed]

I need a little help if possible. I'm trying to make a threaded function which will make my LEDs blink randomly as long as the button is pushed. when it is released it should exit the function and ...
1
vote
1answer
34 views

GPIO Pins Stay Active

On my Raspberry Pi B+ I have a standard program to blink a LED. I run it using the terminal command python blinky.py, and when I do, the LED lights up, but does not blink, as it should. I then cancel ...
1
vote
2answers
100 views

IR LED range and angle

So my goal is to operate my TCL Roku TV with my Raspi. I'm using these LEDs: AIRSUNNY three Legs 5 pairs Infrared Diode LED IR Emission and Receiver and my setup is pretty much identical to this: ...
1
vote
2answers
113 views

Can't blink a LED using SPI interface on Raspberry Pi v3

As a part of my PoC project, I'm using single 5050 LED made by Adafruit. I wired it like this (LED - RPi): DI (Data Input) - SPI0 MOSI CI (Clock Input) - SPI0 SCLK GND (Ground) - GND VCC (5V) - 5V ...
1
vote
0answers
41 views

Cannot lighten up 12V LED strip with Raspberry pi 3

Bought a 12V 5M RGB LED Strip a 12V 5A power supply 6 IRLZ44N mosfets. i am trying to light up the led strip with PiGPIO. followed the https://dordnung.de/raspberrypi-ledstrip/ tutorial....
0
votes
2answers
31 views

Raspberry Pi Zero W not responding

I bought it about a year ago and a few days ago I plugged it into my Mac with a micro USB. I did make the mistake of plugging into the USB port initially but it did respond. For a while it worked i:e ...
0
votes
0answers
35 views

RasberryPi Zero W LED does not turn ON

I am new to Rasberry Pi and trying to turn on an LED . I am using PIN BCM 18 as output and using a Python code to run it. Tried both methods using GPIO and gpiozero. But do not see any output. I have ...
0
votes
0answers
28 views

How to fix my Raspberry Pi 3 b1.2 - No red or green LED?

I went to start it up one day and it will not start up. There are no red or green LEDs. The power cord works but the Pi does not work. Please help me.
0
votes
0answers
37 views

How to generate a hardware PWM wave for driving an LED through RPIO?

I've looked through the documentation of RPIO, and used GPIO18 to get my PWM up and running. This is my code: from RPIO import PWM servo = PWM.Servo() servo.set_servo(18, 4000) As explained in the ...
0
votes
1answer
295 views

IR LED attachments on the RPi NoIR v2

So I bought parts I didn't know would not fit together. Namely, the Pi NoIR v2 Camera, and IR LED module(s). I figured those two combined would be somewhat like the other 5mp IR Cameras on Amazon. It ...
0
votes
0answers
18 views

LED Strip causing Pi to reboot

I am in the process of setting up a LED strip to use with Hyperion. The strip is 5M of APA102 30LED. I have it connected to the proper 3 pins on my Rpi3 and powered by an external 5V 12A PSU. ...
1
vote
2answers
68 views

Controlling 12 RGB LEDs (with adjustable colour mix), with long cable runs

I need some advise on this -- driving 12 RGB leds individually. I was thinking of this model: LL-509RGBC2E-006. If I use these "plain" RGB LEDs with 4 pins, so that would mean I need to set 12 x 3 = ...
1
vote
1answer
292 views

RPi stopped booting, only red LED, different rpi/sd/power supply do not work

Problem: I have a working sd card, a working rpi, and working power supply. When I then plug in an ethernet cable into the rpi and reconnect the power supply to a power bar (where I have 3 other rpi's ...
1
vote
2answers
226 views

Noise in the GPIO when output is high or low

I just set up my pi to run Homebridge allowing it to control an LED strip over GPIO pins, it all works well except the LED lights flicker with radio interference. This interference is very noticeable ...
0
votes
1answer
43 views

IRF530, can I put LED+resistor on input?

Can someone tell me if the following circuit is sane? It's a fairly standard lowside switch, but I've added an LED plus resistor. V_GS on an IRF530 is about 2v, so I assume that a small LED won't lead ...
1
vote
0answers
217 views

Red camera LED fails to turn off

I am using Raspbian 4.9.35-v7+ (3B+) and the camera: https://www.adafruit.com/product/1567. This may be flagged as a duplicate to previous questions under similar titles; however, none of their ...
1
vote
0answers
54 views

Hardware setup for LED with external power supply

I am looking for help to use a raspberry pi 3 as a multiple LED switcher. The setup should be: 6 LEDs at 3W, 9.6V and 300mA (each!) a external power supply for the LEDs a breadboard to put everything ...
1
vote
1answer
48 views

Raspberry Pi LED Not Turning On With Button

So, I am trying to use the raspberry pi model 2b with Debian to control a LED light using a button. But, when I run the python script (made with python2 btw), it brings up no errors, but instead when ...
0
votes
0answers
92 views

Can not control WS2801 ledstrip

The strip has 5v, CK, CI, GND pins. I connected those to my pi zero w as in this picture. Then I ran these commands: sudo apt-get install python-pip -y sudo pip install adafruit-ws2801 And enabled ...
0
votes
1answer
223 views

Difference in using an LED with gpiozero vs. RPi.GPIO

I'm trying to turn on an LED and it was trivial with the gpiozero library. The following works just as expected. # Version 1 (working) import gpiozero import time led = gpiozero.LED(21) led.on() ...
0
votes
1answer
60 views

How to turn off pin 23 correctly? SSH connection crashed

so I am a newbie to the raspberry pi and as the title says, I was connected to my rpi trought SSH protocol and the session suddently was terminated due to a 'FlowSocketReader' error or something. My ...
0
votes
1answer
782 views

DIY WS2812b LED strip

I need to make a custom individually addressed LED strip. I could not find what I want anywhere (size and LEDs density are essential factors) - so I thought that it's best to make it from scratch. ...
1
vote
1answer
59 views

Wiring a RGB LED on to a Raspberry Pi

So I got a bunch of these LEDs and I can't seem to figure out how to wire them. This is what I'm working with. I tried adding the gnd and 5v but it doesnt do anything. When i connect the Din to 5v ...
0
votes
1answer
67 views

Problem with LED blink program on Pi

I am completely new to RPi and stuck unexpectedly. I am trying to create a simple python program to make my LED blink. Here are the two programs which are giving same outputs on terminal when I ...
0
votes
0answers
37 views

Trying to control Raspberry Pi 3 1.2 B's LEDs

I'm trying to configure a raspberry pi's LED indicators Green and Red onboard LEDs. I've changed the trigger between none and default-on. echo none > /sys/class/leds/led0/trigger Expected ...
1
vote
2answers
94 views

Lots of LEDs in a chain

I need to control about 90 leds with a raspberry pi. I am thinking of doing with with 3 chains of 30 leds, so I can control each set of 30 leds independently (turn 30 on and off at a time) and change ...
0
votes
0answers
20 views

Cannot set pin13 with bcm2835 on Pi3 v1.2

currently I have problems with my Raspberry Pi 3 V1.2. I'm using the GPIO to flashing LEDs and the BCM2835 library. It works good in cas of pin11(GPIO17), but nothing happens in case of pin13(GPIO27) ...
0
votes
1answer
50 views

Led turns on immediately after connecting it to the Power pin on Expansion Header

I have a Raspberry Pi 2 model B, and whenever I connect a resistor and LED to the 5 Volt pin and the ground pin it immediately turns on without any programming to enable it. I just want to know wether ...
0
votes
0answers
40 views

Integrate 64x128 oled display in a 16x2 LCD display system

I have found a tutorial on how to set up a ethereum Miner using raspberry pi (doing it as a project, not for money) and I want to have a display on it. The article uses a 16x2 character display. I ...
0
votes
1answer
31 views

Program is gets stuck when running a breathing LED program

Im trying to make an LED that breathes. This is the code I currently have. When I run it it gets to the point where it prints "breath off", then gets stuck and I have to pull the plug. It doesnt ever ...
1
vote
1answer
48 views

How can I troubleshoot why LIRC's sent signal doesn't power on devices?

I am trying to setup IR remote control with Raspberry Pi 3 Model B. OS - Raspbian stretch. The PI pins schema is like that. The LIRC setup is outdated, so I found some other manuals and combined them. ...
1
vote
1answer
273 views

Transistor Switch: Turning off Waveshare LED Boards

This is a similar question to How to turn off the CSI, and turn it back on again, but I'm actually trying to implement the suggestions that were given in that post. I use the WaveShare RPi IR-CUT ...
0
votes
1answer
172 views

How do I debug an LED strip that isn't working?

I've scoured the forums here and elsewhere and can't exactly figure out what my next step should be. I've followed this tutorial https://tutorials-raspberrypi.com/how-to-control-a-raspberry-pi-ws2801-...
0
votes
1answer
70 views

Noob Looking to detect LED voltage 0v LOW, 1.8v HIGH on another device

Trying to learn about the PI and I have acquired a pi Zero W with the GPIO header. I have an external device that signals activity via an LED, which blinks @ 1.8v 2X and then remains on until reset, ...
1
vote
1answer
305 views

How to check for alive process in an infinite loop and use LED as status indicator?

Clearly I'm a beginner when it comes to setting up a script. I'm trying to check if a process is alive and running, and if so, switch on an LED. I need help with the following: Check if a process is ...
0
votes
1answer
184 views

Connect multiple concurrent MCP23017 to Raspberry Pi

So I want to control multiple (12) RGB LEDs using the raspberry pi. I have 6 connected to the GPIO ports on the pi itself and want 6 connected to 2 MCP23017. I cannot seem to get them both to show up ...
1
vote
0answers
114 views

WiringPi can only turn on 8 LEDs

On my RPi 3 I have a PHP website to control 10 LEDs. Each is wired to a separate GPIO pin and 220 ohm resistor. Here is the code: <html> <head> <title>LED Control</title>...
0
votes
1answer
97 views

Detecting Button Press and Lighting LED [closed]

Using the pigpio library, I wanted to detect when a button is pressed and turn on/off an LED. I am trying to use the gpioSetAlertFunc function to trigger the LED when the button is detected as pressed....
0
votes
0answers
66 views

Controlling a group of 32x32 LED matrices as single ones

I would like to control a group of chained individual matrices as single ones and display a different text on each one of them. There would be no animation or scroll action necessary. At present I ...
1
vote
2answers
541 views

How many MAX7219 8x8 can a Raspberry Pi 3 power?

I'm trying to figure out how many MAX7219 8x8 LED matrix can a Raspberry Pi 3 handle without the need of external power. I would like to connect an array of 8 but I suspect I'll need an external ...
1
vote
1answer
134 views

Trouble with basic blinking LED circuit with attached circuit and python code

Can you take a look at the attached circuit and code (below). It seems the green LED should blink but I'm not getting it to light up at all. Thoughts? Thanks so much! Circuit: Python code: import ...
0
votes
2answers
102 views

Can't turn on LEDs through terminal with PWM

I wrote a crappy Python script that should turn on LEDs connected to the GPIO interface. import RPi.GPIO as GPIO import time, sys, json GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) gpioPorts = [...