Questions tagged [led]
A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator lamps in many devices.
756
questions
0
votes
0
answers
32
views
Turn on LED using pi4j and Raspberry pi 4
I am so new to Raspberry Pi.
I want to use pi4j 2 to flash a led that is connected to a raspberry pi.
This is my code but the led does not turn on at all:
import com.pi4j.Pi4J;
import com.pi4j.io.gpio....
0
votes
2
answers
58
views
STM32L4 I2C LED Driver
I am trying to control LEDs using IS31FL3236A LED driver from LUMISSIL Microsystem which communicates with I2C.
LED driver datasheet
I use the HAL communication protocol of the STM32, I am able to ...
0
votes
1
answer
37
views
Traceback (most recent call last): File "<stdin>", line 12 IndentationError: unindent doesn't match any outer indent level
from machine import Pin, PWM
from time import sleep
pwm = PWM(Pin(15))
pwm.freq(1000)
while True:
for duty in range(65025):
pwm.duty_u16(duty)
sleep(0.0001)
for duty in ...
1
vote
1
answer
36
views
Can you cut an ethernet cable and use led and light resistor to make it Lifi?
I have been researching LiFi, it is a very new technology using LEDs and Light Resistors to send and receive data, however, I can't seem to find supported libraries in Python and all protocols have to ...
1
vote
1
answer
48
views
why are my first and second LED not lighting up? is it a problem with the for loops?
When I power my Arduino it only lights up the 2-5 and leds and skips the 1st and the 6th led. I tried seeing what's the problem by giving a check on the value of i in the for loops but it is alright.
...
0
votes
0
answers
13
views
Fading from Color to other Color Arduino
Hello i will like to fade from the first Random color
like color_r to 1color_r smooth but i have no idear how to do that
color_r => 1color_r
color_g => 1color_g
color_b => 1color_b
like for ...
0
votes
0
answers
11
views
Terrarium Sun Sim Led Strip - Need smooth brightness transitions between leds
Life had something different in store for me and so I haven't written a program in over 5 years: I'm a tad rusty. I'm building a new vivarium/terrarium for some frogs who require strict climate ...
0
votes
0
answers
27
views
How to register LED for MMC device?
Our goal is to flash led when sd card is reading or writing.
In mmc driver, I can know there is a function call led_trigger_event(). It looks like to control LED when MMC is do something.
ex: ...
0
votes
0
answers
10
views
How to access and Control the torch LED of LETV smartphone using CMD
Iam looking forward to control the flash-light/torch-Led of Letv Le X509 smartphone through ADB shell. My phone is also rooted through TWRP recovery. The typical sys/class/leds doesn't have the torch ...
1
vote
2
answers
50
views
What should I do for stop the loop at the background when I am not pressing the button?
I am new here ,sooo sorry for the mistakes :P.
So whatever. I am trying to do a simple counter circuit with Arduino UNO, a catot 7-segment display and a button. I just want to when I press the button ...
0
votes
1
answer
17
views
Writing a super simple LED code, having issues with not being able to import from gpiozero
Im trying to use my raspberry pi electronics kit to run an LED program. My code is just:
from gpiozero import led
from signal import pause
led = LED(4)
led.blink()
pause()
Which throws
Traceback (...
0
votes
1
answer
58
views
Change LED intencity through 74HC595 shift register
I'm currently working on a project for which I need to control 13 white LEDs and one RGB LED with two shift registers 74HC595 in cascade.
I work on windows with a SAMD21 XPLAINED PRO board (µC ...
0
votes
1
answer
48
views
Controlling led strip with SPI bus causes entire strip to light up
I am using this python package to control a led strip.
Using PWM everything worked perfectly fine but it didn't allow me to run the script without sudo which is why I switched over to using SPI.
Now I ...
0
votes
0
answers
30
views
How to correct the colors on a LED(WS2812/SMD5050) strip?
I am using an LED strip of an cascade of 30 WS2812 RGB LEDs.
Since the intensity of each color channel is different I like to adjust the output. My idea is to have a formula that takes a std. RGB ...
0
votes
0
answers
23
views
Controlling power to many WS2812 LEDs in a battery-powered project
I am building an electronic board game which will have 500+ addressable LEDs in it - I don't know the exact model but they claim to be WS2812B, I bought them from Amazon here: https://www.amazon.com/...
0
votes
0
answers
24
views
How do I use Python-DALI so as to adjust the luminaires light output?
Has anyone tried to install Python-DALI from Github so as to communicate with LED luminaires?
https://github.com/sde1000/python-dali
I need some guidance on how to implement it.
I have two LED ...
0
votes
1
answer
59
views
How do I use Serial Monitor in Arduino to give word like my name, "DASH" and only that to blink an LED?
So,I have a task at hand and that is to use a word, like my name "DASH" as input to Serial Monitor in Arduino so that the LED in the ESP32-WROOM-32 blinks and otherwise, it won't. I am ...
0
votes
0
answers
39
views
esp32: isolate gpio activities from runtime
i'm new with esp32 wroom. I'm trying to develop a system to drive a ws2812 led strip. The system needs to be controlled by a ble android app. For this reason i created a project from bluedroid gatt ...
0
votes
0
answers
20
views
IS31FL3732 audio modulation
There is the IS31FL3732A LED driver by ISSI for 144 single LEDs. This diver can modulate the led brightness by the audio input signal.
I want to make one group of LEDs static, the second group ...
-3
votes
1
answer
47
views
please help me answer this for me? my final exam
enter image description here
Question 1- In a system like the one below, the user is expected to enter a 4-digit password. The first time the program runs, it should say "Enter Password". ...
1
vote
1
answer
101
views
Bluetooth web control led stripe
Was using the Happylighting application on android and I try to make a simple web application to control the led color, but can't figure how to do it, and witch 'gatt' I've to request, I'm really new ...
0
votes
1
answer
127
views
Arduino Fastled moving rainbow without blue
I have a lamp based on Arduino with moving rainbow effect via FastLED library.
The code is:
void rainbow(){
hue += 2;
for (int i = 0; i < NUM_LEDS; i++)
leds[i] = CHSV((byte)(hue + ...
1
vote
0
answers
63
views
Adjust brightness of Arduino's built-in LED with pyFirmata
I'm learning to control an Arduino using Python with pyFirmata.
I can turn the LED on and off, but how do I adjust the brightness?
0
votes
0
answers
92
views
How can i change music led controller color with SP107E / Flutter
I want to change my music led color (SP107E) , is that possible with flutter ? What is the correct way for this ? I find some libraries but i couldnt use it.
I am already connected to device but i ...
1
vote
0
answers
31
views
control of LEDs with 16bit PWM with protocol DMX512/1990 using only one DMX address
I have received DMX LED drivers from a company called G&G in China, unfortunately with extremely poor documentation. This is how the drivers look like, under the picture are the specs:
The model ...
0
votes
2
answers
147
views
How to make LED off initially in Arduino?
I am working with LED strip. I am new to Arduino. I want the initial value of all LED color to be low. I have used characters as "0, 1, 2, 3" for turning the led on and off for Red, green ...
-1
votes
2
answers
94
views
Arduino : How To repeat a task until new data received Bluetooth
I'm trying to light leds on and off in a loop when I receive data from BT.
But when I send "r" through BT the led strip turns ON and OFF and does it in a loop but when I send "b" ...
0
votes
0
answers
63
views
Pulse when dimming lights by setting duty cycle of PCA9685
I have a AC current dimmer (MPDMv4.1) that takes a PWM signal to dim a halogen bulb. The PWM signal is coming from a PCA9685 servo HAT.
This works just perfectly with the following code:
from board ...
1
vote
0
answers
39
views
Moving from AVR to ESP32 rto control led strip using 1 pin and SPI/DMA
i'm working on an old project based on AVR, that controls a led stripe using 1 pin with SPI high frequency in DMA. (42 leds)
I'm converting the code to esp-idf, but i'm facing some problem, probably ...
0
votes
1
answer
104
views
I have a LED Light strip and am not sure why the light isnt turning off immediately. Need code clarification
I'm fairly new at writing Arduino code and am confused by a block of code.
When executed, a blue dot travels down the LED strip and eventually loops back to the start.
#include <FastLED.h>
#...
1
vote
1
answer
59
views
How can I create a more elegant array diagram in LabVIEW? [closed]
I want the LEDs to light up in the following order:
station A - w - w2 - station B - w2 - w3 - w4 - station C -w4 - w5 - station D - w5 - w4 - w3 - station E - w3 - w2 - w - station A
and this is ...
-4
votes
2
answers
308
views
Trying to press a button and toggle an LED flash at 2Hz until i press the button again [closed]
i'm trying to learn coding and this has really stumped me so i thought i would ask you lovely people.
basically i'm trying to press a button and have an LED toggle on that is flashing on and off twice ...
0
votes
3
answers
128
views
Improvements in led indication with RTOS code
I want to make certain effects with RGB led which changes colour using PWM signals.
|¯¯¯¯¯¯¯¯¯¯||¯¯¯¯¯¯¯¯¯¯||¯¯¯¯¯¯¯¯¯¯|
| Green || Yellow || Pink |
|__________||__________||__________|
...
1
vote
3
answers
190
views
How can I change the slider value within the while loop in each case in LabVIEW?
There are six LEDs that light up one after the other. I want to control the speed of the flashes with a slider. Unfortunately, after reaching station A, the value of the slider actually changes. I ...
0
votes
0
answers
126
views
PINs do not want to go HIGH on the PCB STM32 board
I just designed my first STM32 PCB board for STM32L476RG flashed it and tried to test it with togglePin. However multimeter doesn't show anything.
Here is the design for the STM32
I use nucleo board ...
1
vote
1
answer
218
views
ESP32 Cores are freezing when controlling two LED strings
So for the last week, I have been dealing with an issue with my ESP32. For background information, I am working on a Music Meter project. My goal is to have the ESP32 sample two audio signals, and ...
0
votes
2
answers
175
views
STM32F1 GPIO registers LED not blinking, just staying on whole time
I'm starting my journey with microcontrollers and I'm getting my way with STM32F1 (Nucleo board with STM32F103RB). I try to learn writing using registers and it looks like I'm stuck with first 'task' -...
-1
votes
2
answers
51
views
Mapping a LED strip to a matrix where strip lenght and height are dissimilar
I am trying to address a 36 x 48 LED matrix, but the LED strips are 64 LED long. So, I have to snake the LEDs around the matrix. I have to then address each strip 1 by 1. I can't think of a way(other ...
1
vote
0
answers
99
views
Toggle LED in C code with CMSIS not working
I am trying to toggle a LED with C code and CMSIS. However, what happens is that it doesn't toggle the LED, it just turns it on and that's it. It needs to toggle when the button is pressed.
this is my ...
2
votes
0
answers
176
views
Logistick G29 steering wheel rpm lights control through python
I have a g29 steering wheel with force feedback.
I want to control force feedback and LED lights on the wheel by python script.
i used python-evdev library to control the force-feedback of the wheel. ...
0
votes
1
answer
75
views
Using arduino Nano 32 IOTs BLE to create LED display boards
I am working on a project for which I need to get a panel of 7 buttons to light up led strips on a display about 5m away. So far I have made it so I can control 1 led strip with one button and this ...
0
votes
0
answers
72
views
STM32 Nucleo-144 shift register
I'm working with a STM32 Nucleo-F413zh board and trying to interface with a simple LED&Key board. In arduino one uses the siftOut function to write the data to the appropriate address, however ...
0
votes
0
answers
75
views
Logitech SDK: G502 HERO didn't react
I try to change the rgb color of my Logitech G502 mouse, it didn't work.
The initialization worked quite well.
bool LedInitialized = LogitechGSDK.LogiLedInitWithName("color synchronizer");
...
1
vote
1
answer
165
views
LED ring in Arduino - How to make an interface in Processing IDE to select a color
I have 2 different LED Rings. (one has 16 LEDs and the other 24)
I want to make an interface from processing IDE where I can select a color and send this color to the selected ring. Here is the ...
0
votes
0
answers
20
views
PIGPIO in Javascript Error when trying to open pin
I'm currently trying to run a simple javascript file which turns on one of the colors of my LED Strip. Below you can see the code I'm trying to run.
var gpio = require("pi-gpio");
gpio.open(...
0
votes
0
answers
61
views
Smaller bitmap images not working on OLED SSD1306
I have added a bitmap draw function from adafruit library to my code. when I used 128 * 64 size bitmap image everything is fine but when I rescale it to 36 * 36 the image is not properly shown.
void ...
0
votes
1
answer
130
views
How to connect LOLIN 7 WS2812B LED's to Raspberry Pi Pico (RP2040)?
I have spent numerous hours googling for the solution, but no tutorial or guide uses the LED's that I own. Everyone keeps mentioning Data IN, and Data OUT, but there are no such markings on my LED's.
...
0
votes
0
answers
71
views
Implement a program to read the 8-bit data from dip switch and display the Status on 8 bit LED
Implement a program to read the 8-bit data from dip switch and display the
Status on 8 bit LED. In a way
i- if the Dip SW 3 is pressed the LEDO-LED3 of the LED will be Turn on and off every 6 sec for ...
0
votes
0
answers
20
views
How to get executed command from key press
I have a rainbow keyboard and "light modes" key combination.
Im basically trying to reach keyboard's led api, how can i get the command executed when i press "light modes" button ...
0
votes
0
answers
151
views
P10 Display Timing Diagram - PIC Microcontroller
I'm trying to interface a P10 16x32 LED Dot Matrix Display with a PIC microcontroller.
Have done enough research, but I'm unable to find a detailed data sheet about how to use the display.
I see there ...