Questions tagged [led-strip]
The led-strip tag has no summary.
87 questions
-1
votes
1
answer
101
views
Looking for a library to operate LEDs using FastLED via serial communication from another device running Python
I have an LED display connected to a Teensy microcontroller using the FastLED library, which is connected to a Raspberry Pi Zero running Python via a USB hub.
I am looking for an existing library that ...
-1
votes
2
answers
137
views
My LED light strip won't turn off
/*
* when it's bright the lights will turn off
* when it's dark the lights will glow blue and green
* when it is in between, the lights will turn red
*/
#include <Adafruit_NeoPixel.h>
#...
0
votes
1
answer
197
views
Controlling UCS2904 LED flood with Neopixel library
I'm attempting to control one of these UCS2904 floodlights using the Neopixel library; according to the chip documentation it uses 800khz and RGBW ordering, both of which are set in my Arduino code ...
0
votes
2
answers
162
views
Why is my LED strip value always equal to 255 on my potentiometer?
I'm pretty new to Arduino and this is my first project I'm working on and I'm really struggling with why my code isn't working properly.
The LED strip should be able to adjust the colour with one ...
0
votes
1
answer
131
views
Addressable LEDs using SM16704
I've been asked to interface with some LED strips that use SM16704 pixel chips.
A site search here doesn't show any mentions of this chip, so I wonder if anyone knows if they're compatible with the ...
2
votes
1
answer
150
views
Motion-activated lights
I am attempting to follow this tutorial to light up a dark staircase with motion-activated LED strips. If my understanding of the tutorial is correct, essentially the Arduino's job is to power or ...
1
vote
0
answers
78
views
How to change between loops? IR Remote + led strip
#include <IRremote.h>
#include <Adafruit_NeoPixel.h>
#define LED_PIN 7 // define the LED strip data pin
#define LED_COUNT 150 // define the number of LEDs in the strip
Adafruit_NeoPixel ...
1
vote
1
answer
218
views
FastLED EVERY_N_SECONDS - does it generate static code?
I realize my question is not precise, so I have a simple contrived example to illustrate better what I am asking.
I am trying to use EVERY_N_SECONDS inside a member function of a class that is invoked ...
0
votes
1
answer
487
views
Simple FastLED sketch that crashes when led strip is long but not when its shorter
I have a pretty simple sketch that crashes, and crashes hard (Platform.io console says "Disconnected (read failed: [Errno 6] Device not configured)" and I need to power off/on the Arduino to ...
1
vote
0
answers
255
views
FastLED changing colour at holding state
Basically make a code to guide users through a box breathing exercise (breath in for 4 seconds, hold for 4, release for 4, hold again for 4, repeat) to help relax them.
Right now my code is running ...
-2
votes
1
answer
281
views
Powering LEDs with Arduino uno 5v
I'm working on the sound reactive led lamp as my first project and have slightly different materials to start with. First I'd like to simply learn to power the LED strip.
from https://www.youtube.com/...
0
votes
1
answer
473
views
Arduino to run and LED strip of up to 100m
I am working on a project to run an RGB strip around a large room and have the colour change driven by an Arduino Uno. I have encountered a number of issues and am looking for clarification.
The first ...
0
votes
1
answer
2k
views
FastLED fill_solid array
I'm having trouble in the fill_solid function with arrays. can you help give color to row3.
int row3[]={1,2,3};
uint8_t sizerow3 = sizeof(row3)/sizeof(row3[0]);
void solid(){
fill_solid(leds[row3[3]...
2
votes
0
answers
37
views
Can the Blink class be used on a 5v to 240v relay?
I have found the following code and it works fine on a breadboard controlling small LEDs but I want it to work with LED strip lighting with external 240v transformers. We have built the circuit using ...
1
vote
0
answers
188
views
xQueueGenericReceive error on ESP32 (using FastLED which relies on FreeRTOS) for adapted MeteorRain LED animation
I'm trying to adapt the MeteorRain animation from Tweaking4All to work on segments of my light string (vs using the entire string) and I'm getting an error in FastLED.show() (on a line that is used ...
0
votes
1
answer
1k
views
Safe to power LED strip via ESP32 GPIO
I want to rewire a battery powered LED strip (as shown in the picture below) to power via an ESP32's GPIO pin. I have a ESP32 NodeMCU Development Board, powered via USB.
The LED strip has specified 3,...
2
votes
3
answers
129
views
Issue with bluetooth and a large number LED strip
I want to be able to control multiple LED strip via bluetooth with one arduino.
I coded my own android app and everything work fine with one or two led strip with few pixel. But as soon as I had to ...
2
votes
0
answers
90
views
My LED display fails with MSGEQ7 output stuck
I have an Arduino setup with a pro-mini, a MSGEQ7, and a auto-gain mic. Even if I remove the audio input to the MSGEQ7 remains the same in the 890s (out of 1024). It's the same on each of two new ...
0
votes
1
answer
2k
views
Troubleshooting WS2812b LED strip with toggle on/off button
I have a very rudimentary setup with an arduino nano, an LED strip, a pushbutton and a resistor.
I was trying to use the pushbutton as a toggle, using this code
#include <stdio.h>
#include <...
0
votes
1
answer
1k
views
ESP32 light strips showing incorrect colours
I bought some individually addressable LED strips (a large reel). To keep the cost down they are WS2811 and it's one chip per 6 leds. I don't know the cheapness or LED styl makes any difference to the ...
1
vote
1
answer
162
views
Is this a feasible circuit?
The last couple months I’ve been working on this project, I’m nearing its end and I’m getting really excited! However, this is still pretty new to me and so I was hoping my electrical diagram/...
1
vote
1
answer
616
views
Adafruit Neopixel Individual Addressable LEDs issue - Any and every code make LEDs go "crazy"
Hi everyone I have an issue with getting these LEDs to cooperate.
I'm using a 470ohm resistor on the data port and a capacitor for the power. I complied and uploaded the "strandtest"(I ...
2
votes
0
answers
340
views
How to test continuity on signal wire?
I’m reassembling an LED strip, SK6812, that I had cut into smaller lengths. I don’t have a lot of faith in the connectors I’m using or my ability to solder, so I’d like to test it before I put power ...
3
votes
1
answer
405
views
Pass Color to a function without using a specific Adafruit_NeoPixel
I'm initializing my strips as an array:
// Declare NeoPixel strip array:
Adafruit_NeoPixel strip[] = {
Adafruit_NeoPixel(LED_COUNT[0], LED_PIN[0], NEO_RGBW + NEO_KHZ800),
Adafruit_NeoPixel(...
1
vote
1
answer
172
views
I want to create 10 levels with one button but this code shows only level 1?
#include <Adafruit_NeoPixel.h>
const int PIN = 4;
const int NUMPIXELS = 10;
const int BUTTONPIN = 6;
int buttonState = 0;
int PINState = 0;
int level = 1;
int dt = 100;
Adafruit_NeoPixel pixels(...
0
votes
1
answer
764
views
Animation of led strip with ESP32 does not work when WiFi is in use
I am using the ESP32 for a simple project. I know how to animate an led strip using atmega328p with arduino but when I animate it on the ESP32 it does not work that great. It will be nice if I can use ...
0
votes
0
answers
355
views
WS2812B LEDs start flickering after some time
I've built a WordClock with a NodeMcu and some ws2812b LEDs some time ago and it worked really well for like half a year but now the LEDs are starting to flicker when the WordClock runs longer than ...
-1
votes
1
answer
189
views
Why does my Arduino/Ledstrip combi not work?
simulate this circuit – Schematic created using CircuitLab
I am using an Arduino Uno, and WS2813 led strip (60 leds).
It seems like a default schematics (except I did use a 470 uF (...
2
votes
1
answer
170
views
Bicycle Tail Light project [closed]
For my college course we currently have to carry out a project of our own choice.
I chose to make a Tail light system, with strobing indicators, fog-light and brake-light.
The lighting uses Neopixel ...
2
votes
1
answer
116
views
Pca9685 & WS2818B, 1 Nano
Arduino n00b here. I currently have an Arduino Nano set up to run 6 servos from a PCA9685 board. I'm looking to add 6 switches and 6 LED indicators to switch servo positions. What I'm curious about is ...
2
votes
2
answers
114
views
First time arduino attempt. 4 switch inputs controlling 8 LED outputs
This is my first venture into Arduino. I am unsure which one to use even for this. As this will be a dedicated unit, and size is a small priority, the smaller the better.
Here is more info on the ...
0
votes
1
answer
2k
views
Which libraries for DS1302 real time clock and WS2811 LED strip do not conflict?
I am making a custom wall-clock, and need the Arduino (Uno or Nano) to connect to a DS1302 real time clock module and a WS2811 LED chain.
So I’m using DS1302 for the clock, and FastLED for the lights....
1
vote
2
answers
1k
views
7-Segment Display with WS2312B and FastLED
I thought of the idea of using the WS2312B LED strip to drive a custom 7-Segment display. The project will require a large number of these displays, and driving them with a single Arduino (I'm ...
1
vote
0
answers
401
views
WS2811 strip not working on NodeMCU, works fine on Nano
Sorry if this is something simple, but im scratching my head over this for a while and there are a few things that have me super confused.
I have two WS2811 strips lighting up my outdoor stairs
Both ...
0
votes
1
answer
1k
views
Control LED strip via serial monitor
I've been struggling with writing a code for Arduino UNO so that I could use my phone and change the colour of the LED strip via terminal.
#include <FastLED.h>
#include <SoftwareSerial.h>
...
2
votes
1
answer
2k
views
Continous running light with fading trail
In examples of FastLED library, there's the animation of a dot sweeping back and forth, with fading trails (file "DemoReel100", animation "sinelon"). How can I alter the code so instead of moving back,...
1
vote
0
answers
402
views
ESP-01S + Fastled
I am trying to control a WS2812B Led Strip with my ESP-01S board.
It works fine with my ESP32 DevKit board, but the ESP-01S won't do anything :/
I couldn't figure out which 2 GPIO the ESP-01S is using ...
0
votes
1
answer
142
views
Powering LED Strip at both ends shorts my psu?
I've got a 200 LEDs strip of sk9822's hooked up to a 5V 8A power supply.
As expected, at full white, there's considerable voltage drop and the far end of the strip turns from white to amber.
I wanted ...
-1
votes
1
answer
130
views
Dotstar strip goes nuts when connected to MIDI piano
I've got a Dotstar strip, a piano, and an UNO(w a usb host shield).
I can get and properly translate data from the piano to the UNO, so I'm definitely getting the right information to the board. When ...
0
votes
1
answer
4k
views
ESP32 + Fastled + WS2801
I'm using the ESP32 DevkitC board with Fastlib and a WS2801 LED strip.
The LED strips works fine, i connected it properly (sometimes all LEDs are on, no flickering).
I Connected the light strip's ...
13
votes
6
answers
7k
views
Addressable RGB strip works fine individually but cannot set all LEDs to full white
I have a 5 meter strip of 12V digital RGB LEDs. The chip is WS2811 (see photo of IC). There are 50 addresses on the strip.
Using the FastLED library, I am able to run the "FirstLight" example that ...
3
votes
1
answer
21k
views
FastLED library: How can I adjust the brightness of a single pixel on an absolute scale?
I'm using the FastLED library to control a digital RGB LED strip.
While this library seems very comprehensive in capability and ease of use, I do not yet see a way to simply set the brightness value ...
1
vote
0
answers
1k
views
WS2812B not fully working with NodeMCUv2 [ESP8266]
I have a problem with my NodeMCU v2 board and my WS2812B led matrix with 256 (32x8) LEDs.
The Board cannot be able to turn on the 191th led and stops working after the 190th without changing the ...
2
votes
2
answers
917
views
ignoring potentiometer value variations
I've got a 50k potentiometer connected to an Arduino Uno. The user should adjust the hue of an Adafruit NeoPixelStrip.
I've got the following code inside the loop function:
int hue = analogRead(...
1
vote
2
answers
2k
views
How fast is flash reading compared to SRAM?
I'm working on a project that will eventually scale to 864 LEDs on WS2815 LED strips (three rows of 288 LEDs). I'm currently running it on an Arduino Uno with a single test strip of 144 LEDs.
FastLED ...
1
vote
0
answers
1k
views
Using MOSI and MISO pins for multiple devices
For the device I am creating, I am hooking up an apa102 led strip to pins 11 and 13 to control each LED. But I would also like to hookup my NRF receiver to the arduino, but I also use pins 11 and 13. ...
0
votes
1
answer
254
views
LED strip brightness decreases when using multiple strips
Newbie question here.
I have bought a 5V, 40A power supply to externally power up some LED strips (WS2812B). The Arduino Nano is powered by a standard USB wall charger (5V).
So far I have tested with ...
0
votes
2
answers
127
views
Cycling through switch states
I'm making a desk lamp out of 2x WS2811 strips (attached to the triple ports at top right of board below). The brightness of the strips is controlled by a potentiometer, and the colour by a switch. ...
0
votes
1
answer
64
views
LED fader function freezes and becomes unresponsive after a few cycles
My LED controller has a color fader mode that I am making. The controller's loop() function grabs incoming serial data to set the amount of colors, fade speed, mode, and other info then runs the ...
3
votes
3
answers
1k
views
What can I do to increase the amount of LEDs I can power with a pro micro?
I am new to arduino and have a sparkfun pro micro that I'm using to power a one meter (60 pixels) APA 102 strip. I currently power it via USB and have a program that sends lighting instructions to it. ...