Questions tagged [led]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
587 views

GPIO in /sys/class/leds/

I am doing a project with Raspberry Pi and OpenWrt. I need to attach indicator LEDs. Basically, I need to modify the DTS for bcm2710 and add additional GPIOs in the led section such that it gets ...
jayanta525's user avatar
3 votes
2 answers
7k views

How to control 12V LED with the GPIO?

Heyo! How to control single 12V LED using Raspberry's GPIO? To be more exact, I need to connect 12V LED & push button to Raspberry Pi 3 B+ GPIO in order to control LED (on/off) and read button ...
greenback's user avatar
0 votes
1 answer
246 views

anode RGB LED to raspberry Pi

I have wired up a common anode rgb led to my raspberry Pi. I dont understand why its not lighting up. My setup is this: 5v to rgb anode rgb to pi pins ( 5,6,26) My code is const Gpio = require('...
sirshakir's user avatar
1 vote
1 answer
2k views

Why do LED lights need resistors? [duplicate]

Can someone explain why LED lights need resistors when connecting to pi. The raspberry Pi is either providing 3.3v or 5v depending on if it's connected to power pins or gpio pins. Your set up would ...
sirshakir's user avatar
1 vote
0 answers
186 views

Raspberry Pi 3 B+ LED Light Blink not working

I am trying to get my LED to blink once, but it is not working. I connected the brown wire to pin 6 (Ground), and the red to pin 7 (GPIO 4). I watched a tutorial on connecting the circuit but it is ...
Andy Lebowitz's user avatar
1 vote
0 answers
492 views

MAX7219 7-segment via SPI not working

I am following these instructions to get a simple 7-segment display working: https://github.com/rm-hull/luma.led_matrix My problem is that as soon as one of the 3 SPI Pins are connected the digits ...
clamp's user avatar
  • 829
1 vote
1 answer
75 views

Need RPi3b voice control

I'm failing to find a simple way to control my RPi via microphone. I've fount some projects but they all require things such as Google AIY voice kit. Is there any simple way for me to control GPIO ...
SteroidCookies's user avatar
0 votes
2 answers
93 views

Why is my code not working between time hours?And what should be done if im using PIR sensor ,what is the change that should be done in this code [closed]

import RPi.GPIO as GPIO import time GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) GPIO.setup(3,GPIO.OUT) #Define pin 3 as an output pin while True: if(time.hour(18)&&time.hour(5)) #...
Haerriz's user avatar
  • 103
0 votes
0 answers
459 views

Raspberry Pi 3 won't boot, red LED light only

I was using my RPi for testing the sensors of my project, when suddenly it stopped and won't boot after that. I did not touch anything nor destroyed parts of the pi. The sd card is working fine as it ...
user97712's user avatar
0 votes
2 answers
93 views

Writing two different hex values to linked shift registers

I'm new to raspberry pi and electronics, and I'm working on improving my first (meaning my design, no tutorials) project. My original project was two seven-segment displays linked to two shift ...
user avatar
3 votes
1 answer
1k views

Neopixel lights do not change color

I recently bought a 1 meter WS2812B strip. I installed the Adafruit Neopixel Circuit python library with the following commands: sudo pip3 install --upgrade setuptools pip3 install RPI.GPIO pip3 ...
Ryan Z's user avatar
  • 133
0 votes
1 answer
285 views

Unplug ethernet seems to freeze connectivity-check script

I'm working on a raspberry project with a RPi B+, running Debian stretch. I've included a LED which should turn on when the Pi establishes an internet connection, and should turn off when this ...
Kaz Vermeer's user avatar
0 votes
1 answer
363 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 ...
Spielekind005's user avatar
1 vote
2 answers
659 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 ...
minisaurus's user avatar
1 vote
0 answers
756 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 ...
K_lash96's user avatar
0 votes
0 answers
41 views

RP 3b - green led flashes 4 times [duplicate]

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 ...
eftshift0's user avatar
  • 730
1 vote
1 answer
252 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 ...
Didzis Lauva's user avatar
0 votes
1 answer
76 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 ...
euraad's user avatar
  • 105
0 votes
2 answers
2k 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(...
user3142695's user avatar
2 votes
2 answers
5k 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 ...
Sparkler's user avatar
  • 131
0 votes
2 answers
3k 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 ...
nixx's user avatar
  • 3
1 vote
1 answer
881 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 ...
RJP's user avatar
  • 46
1 vote
2 answers
703 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: ...
mike's user avatar
  • 121
1 vote
2 answers
643 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 ...
PotatoBox's user avatar
  • 149
1 vote
0 answers
296 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. and the led ...
KiarashRzg's user avatar
0 votes
2 answers
259 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 ...
sisko's user avatar
  • 295
0 votes
0 answers
138 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 ...
pranathi's user avatar
  • 111
0 votes
0 answers
110 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 ...
user8244's user avatar
  • 101
0 votes
1 answer
1k 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 ...
Brian's user avatar
  • 103
1 vote
2 answers
270 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 = ...
0__'s user avatar
  • 502
1 vote
2 answers
2k 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 ...
crazjo's user avatar
  • 391
1 vote
2 answers
2k 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 ...
Gunnar Bjorkman's user avatar
0 votes
1 answer
295 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 ...
tedder42's user avatar
  • 1,352
1 vote
0 answers
767 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 ...
Jacob A's user avatar
  • 111
1 vote
0 answers
659 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 ...
Chrizzldi's user avatar
  • 111
1 vote
1 answer
487 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 ...
jdw136's user avatar
  • 91
1 vote
1 answer
2k 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() ...
The Unknown Dev's user avatar
0 votes
1 answer
674 views

How to turn off pin 23 correctly? SSH connection crashed

I am a newbie to the Raspberry Pi and as the title says, I was connected to my RPi through SSH protocol and the session suddenly was terminated due to a 'FlowSocketReader' error or something. My LED ...
qwapp's user avatar
  • 3
0 votes
1 answer
1k 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. ...
Kredens's user avatar
1 vote
1 answer
170 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 ...
SteroidCookies's user avatar
1 vote
1 answer
225 views

Problem with LED blink program on Pi [closed]

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 ...
Rishi's user avatar
  • 74
1 vote
2 answers
674 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 ...
Matt B's user avatar
  • 19
0 votes
1 answer
60 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 ...
Conner Dassen's user avatar
0 votes
1 answer
90 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 ...
dka13's user avatar
  • 163
2 votes
1 answer
192 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. ...
Dmitrij Kultasev's user avatar
1 vote
2 answers
968 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 ...
Alex's user avatar
  • 155
0 votes
1 answer
1k 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-...
B. Barkley's user avatar
0 votes
1 answer
148 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, ...
Davery's user avatar
  • 101
1 vote
1 answer
892 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 ...
Noah Smith's user avatar
0 votes
2 answers
852 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 ...
Elliot Moore's user avatar

1 2 3
4
5
10