Questions tagged [led]
An LED, a light emitting diode, is a light source often used as an indicator.
462
questions
1
vote
1
answer
705
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 ...
1
vote
0
answers
214
views
How to use Rpi SPI MCP3008 ADC to read visual light LED's transmit and receive signals?
EDIT: Firstly I wrote it a bit confusing way. So let me summarize my problem. This is something like answer to comment bellow.
(1) I am trying to make somethin like visible light communication based ...
-1
votes
1
answer
98
views
Shutting down a LED when a script fails
I have a python3 script which is started by systemd automatically on boot. This script turns on a green LED to signal that the script has started.
Now I want the LED to turn off if the script fails/...
0
votes
1
answer
142
views
Power consumption of APA102C LEDs when turned off? (Pimoroni Blinkt!)
I have the Blinkt! Module for my Raspberry Pi (https://shop.pimoroni.com/products/blinkt) which from what I can tell features 8 APA102C LEDs (Datasheet: https://cpldcpu.files.wordpress.com/2014/08/apa-...
-1
votes
2
answers
148
views
Transistor and 12V diode strip
I wanted to control my 12V diode strip with Raspberry, but I am not very confident in my circuit-creating abilities and I don't want to fry my Raspberry. So I created a basic circuit diagram:
I want ...
0
votes
0
answers
621
views
ws2811 LED lights powered by Raspberry pi 3B+ sometimes produced the wrong color
I am using a 3B+ pi to power Alitov 5V ws2811 LEDs. A link to the exact lights can be found here.
To power the lights, I am using a 5V 10A power supply. To control the lights, I have connected the ...
-1
votes
2
answers
1k
views
LEDs do not turn off after the Raspberry Pi powers down
I have a Raspberry Pi with six LEDs and a button (also with LED) on a custom circuit board that is connected to GPIO pins. This RPi previously had an Adafruit Neopixel with LEDs, but later my client ...
0
votes
1
answer
82
views
Backlight control with 2.4 Inch display
I have 2.4 Inch display attached to a Raspberry Pi 3B+, it totally works, but I've noticed that when raspbian turn off the display, the backlight led is still on.
There is a way to control the ...
0
votes
1
answer
131
views
Dim when not configuring any GPIO pins; why?
I am an absolute beginner with the Raspberry pi and also know only basic electronics, so please excuse me if this is a very basic question.
I wired my Raspberry pi 4 like this to control an RGB LED.
...
1
vote
2
answers
5k
views
How do I connect a Raspberry pi to ws2811 LED lights through GPIO18 pin?
Before I start, I should note that I have never used a Raspberry Pi before, so my only experience is trying to get this project to work.
I recently bought ALITOVE WS2811 12mm (5 V) LED lights in the ...
1
vote
0
answers
152
views
WS2812B individual addressable lights too slow
I have an rpi-0-w that I use to control WS2812B strip (300 LEDs). With one strip everything is fine, but when I connect 2 more strips, obviously, update speed drops.
Is there a way to increase the ...
0
votes
2
answers
402
views
How to create unfazed pwm signals?
I have two pins with the same frequency (10Hz) and same duty cycle (50%) assigned to two different leds. How can I make the two leds blink alternatively? How can I put a delay of 50% in one of the ...
0
votes
1
answer
265
views
gpiozero's LED.toggle() switches LED again after some seconds
I am using the gpiozero library to controll a LED strip and a relay connected to my raspberry pi 4. This is the way I connected the LED strip to the pins. I use a type SMD5050 LED strip similar to the ...
-1
votes
2
answers
61
views
Inconsistency with recommendations for resistors for LEDs
I'm so confused. I've got a Pi operating obviously at 3.3v and I know I need to use resistors to avoid damage.
However I cannot find any consistency in the tutorials for what value to use. I've seen ...
0
votes
0
answers
28
views
Raspberry Pi Hosted, Network LED Manager
I have been looking for a while and I have not found an answer. I am looking for a vendor neutral, LED manager/server that would let me manage all of the wireless LED strips already in my network. ...
0
votes
0
answers
141
views
How do I turn off the LEDs on the YWRobot ICE Box - RPI Fan V1?
I'm using the YWRobot ICE Box - RPI Fan V1 on my RPi stack. The Blue LEDs are annoying, does anyone know how to turn them off? Permanently?
Thanks.
0
votes
1
answer
280
views
Sending a NEC like signal via a GPIO
I'm trying to control an existing LED strip controller with a Raspberry Pi. The controller has an IR receiver to receive commands. I removed the IR receiver of the controller and added a connection to ...
0
votes
2
answers
335
views
Driving an addressable LED matrix as a display
I'm spec'ing out a project to use a grid of addressable LED strips to build a pixel fireplace installation, and I'm working on how best to drive the fire graphics. I see there are python libraries for ...
1
vote
1
answer
90
views
Unable to control GPIO from the code
I am using raspberry pi 4b along with Freenova kit. I am trying to make the LED blink however it does not blink instead it is ON of the time. I have tried different code (C,Python,Java) but none of it ...
3
votes
6
answers
4k
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 ...
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 = ...
-1
votes
1
answer
880
views
Detect when LED is on
I'm trying to get the status of a LED (being controlled from another Pi, but on the same breadboard). If the LED is on, to get the other Pi (GPIO 25) status to be on and vice versa.
Here is the code ...
1
vote
2
answers
174
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 ...
0
votes
1
answer
1k
views
5V Relay module working but LED not turning on - How to wire? [closed]
I'm trying to control a relay from Raspberry Pi that will switch an LED on/off.
The relay is working (lightning up and clicking), but the LED doesn't turn on.
Here is how I wired everything:
VCC - 5V
...
1
vote
2
answers
103
views
Another illuminated LED button question
I am completely new to Raspberry Pi and electronics so please forgive my lack of knowledge but I am trying really hard to learn something new. I have tried searching the forum but things said in any ...
1
vote
1
answer
285
views
RGB LED - Only first color activates when multiple colors are called
I have one RGB LED (common anode type), and while I can get every color to light up independently I am seeing some bizarre behavior when trying to combine colors. This is my first project involving ...
0
votes
1
answer
132
views
writing to GPIO [closed]
Is there a way using python (Raspberry PI 4) to write a nibble to the GPIO in one write operation.
I have done a project which would benefit from that.
Project details here.
https://sites.google.com/...
0
votes
2
answers
437
views
Red Led flashing
I have a PI 4, WHEN using a 3.5A USB power measured 5.1v supply, the red LED is constantly on. When using a power supply which was rescued from a DVD player, checked supply 5.1v I get a flashing red ...
1
vote
1
answer
436
views
Connecting 12V LED to Raspberry Pi GPIO (3.3V)
Currently I am working on RPI GPIO with a breadboard, some LED's and buttons. My next step is to add a bigger button and LED to de GPIO.
I would like to connect an Eaton 216557 LED-module to the GPIO ...
3
votes
1
answer
839
views
Editing heartbeat LED trigger
I am trying to edit the timer of heartbeat trigger on RPi Zero. I have found original .c file of kernel driver here https://github.com/raspberrypi/linux/blob/rpi-5.4.y/drivers/leds/trigger/ledtrig-...
1
vote
1
answer
897
views
Running video on a DIY LED strip matrix
I've created a 600 LED wall using WS2811 addressable LED strips wired in series, but I have found it quite difficult to find a tutorial or article on how to get it to project video (or any animation ...
0
votes
1
answer
53
views
Can an RGB LED reproduce the colours as we see on a PC monitor? [closed]
The RGB LED I bought is a cheap one. It seems that even though it has 3 colour components (R,G,B), It cannot really reproduce such colours as I see on a PC monitor. For example, setting the same low ...
0
votes
1
answer
907
views
What values for PWM to set intensity from 0 to 255?
I am using hw-479 that looks like the picture below. I cannot find much of information for it but the Alibaba page says
The RGB LED module is made of a plug-in
full-color LED. The PWM voltage input ...
-1
votes
1
answer
265
views
Controlling LED using PWM
When I run this code I’m expecting to get a led that brightens but I get a led that dims.
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11,GPIO.OUT)
dc=0
LED=GPIO.PWM(11,...
0
votes
0
answers
71
views
Can't get to toggle leds with WiringPi library in C
So I got my python code to run that basically just toggles the LED, but now I tried enabling the GPIO via WiringPi library in C but it doesn't work. Considering python code runs, there isn't really ...
1
vote
1
answer
239
views
DIY power indicator LED stays half-on when system is off; shared GPIO conflict?
This is my first foray into Raspberry Pi (and these kinds of electronics in general) as well as asking questions about it here.
My goal: Attaching a power indicator LED along with a fan (Pimoroni Fan ...
0
votes
1
answer
93
views
problems lighting up LED on pi 3
HI i am new tp pi and python and wanted to create something that simply turns on and off a led.
It does not seem to work and not sure why?
here is the python script:
from gpiozero import LED, ...
2
votes
1
answer
504
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 ...
1
vote
0
answers
144
views
NeoPixel library slow with large number of WS2812B LEDs (Raspi3)
Noob here, I am currently working with a 10m long strip of 144LED/m density LEDs. The problem is with such a high number of LEDs loops (like a color wipe for example or filling LEDs one after another) ...
2
votes
2
answers
344
views
Can't Make IR Led Turn On
I'm trying to get my raspeberry pi to control a floor fan via IR. I'm stuck on getting the IR codes to be emitted through the IR LED. I'm not able to get the IR LED to turn on at all. I'm checking ...
0
votes
0
answers
45
views
Flashing of LED
This is my first post here so HELLO and sorry if I'm posting in the wrong place.
I had assigned a time limit of 40s for led blinking. Can I pause the blinking of this led and make another led to blink ...
0
votes
1
answer
271
views
Increase sleep interval for LED sequence whenever button is pressed. (Python)
This is the code:
#!/usr/bin/python3
from time import sleep
from gpiozero import LED, Button
from threading import Thread
from signal import pause, signal, SIGTERM
LEDs = [5, 17, 22, 19, 26]
LIGHTS ...
0
votes
1
answer
287
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 ...
1
vote
2
answers
709
views
RGB Led flickers when controlled by GPIO Raspberry
I found a python script to control an RGB LED with GPIO output pins from a raspberry. I connected a common cathode LED to the GPIO Pins and added a 300 ohm resistor to the ground pin. When I run the ...
0
votes
1
answer
2k
views
Running a python script from a webserver
I made a Webserver using my Laptop and a few PHP-HTML-Javascript programms.
Right now i am able to connect to these pages and everything works just fine.
My problem is that i want to run a Python ...
1
vote
1
answer
148
views
8x8 Matrix (max7219): Half of the LEDs permanently on
I am trying to hook up an 8x8 LED matrix to my Raspberry Pi 4B. I connected it to SPI1 because I am already using SPI0 for another device. Here are the pins I am using:
CLK - GPIO 20
CS - GPIO 16
DIN ...
0
votes
0
answers
204
views
Controlling LED Matrix display with TF-S6UW0
I am using Rasberry pi 4 (4GB RAM version). What I am trying to do is be able to set the text of the matrix screen using a command or by calling a script (preferably in python). I am using a P10 ...
1
vote
0
answers
136
views
How would I go about writing a program(python) to mimic the use of an AND Gate using Raspberry Pi
How I set up my breadboard:
Placed SN74LS08N (AND gate) on a breadboard.
Connected IC pin 7 to GND and IC pin 14 to 5 V for IC to get powered.
Connected GPIO pin 16 to IC pin 13,
Connected GPIO pin ...
3
votes
1
answer
59
views
Need Help with Controlling Some LEDs with a Raspberry Pi
I'm mainly trying to follow this guide here in order to connect some LEDs to a Raspberry Pi. I've read other guides as well, but this link is where I got the majority of my setup done. I've never used ...
2
votes
1
answer
113
views
Traffic Light Led Change During NOAA Satellite Script?
I have the following script that downloads and processes NOAA satellites. I'd really like some external LEDs to indicate the following;
When the script is running, turn or blink red
When the script ...