Hello everyone, it’s my first project with Arduino
I have a strip of leds ws2812 12V that I connect to my pin number 6 , I have a 2200 uF 25V capcacitor and I thought it would fix the problem of the leds flickering but it has not.
My basic code for now would have the leds turn on white and not any other color,
#include <FastLED.h>
#define num_leds 60
#define pin 6
#define brightness 120 // can set 0-255
#define sensitivity 5 // can set 0-10, recommended at 5
CRGB leds[num_leds];
void setup() {
FastLED.addLeds<WS2811, pin, GRB>(leds, num_leds);
FastLED.setBrightness(brightness);
}
void loop() {
for (int z = num_leds; z > 0; z--) {
leds[z] = CRGB::White ;;
}
FastLED.show();
delay(3000);
}
My Schematic are attached as a png to this post and would look someting like that without the resistor yet (could it be the source of the problem ?)
The main problem is that other colors come and go (purple, yellow, blue ) when my script is supposed to display white and only white light
Sorry Paul B it's a schematic I got from another post and thougth I would use because it looked like what I was trying to do.
My Led strip is indeed 12V and connected to a 12V outlet, for the chunk missing I removed because from the instructions I had I was no supposed to use the 5V and the arduino gnd.
How long is the strip? I am working with WS2811 (12V) Strings and when the voltage on the far-end is below 6V, I start to get flickering and inconsistent colors.
SteveMann:
How long is the strip? I am working with WS2811 (12V) Strings and when the voltage on the far-end is below 6V, I start to get flickering and inconsistent colors.
Quite long, I usually work with the whole strip but only light about 60 or so in my script, Are the 200+ not being lit still draining volts ?