Hi guys, I do really need your help.
I have bought some WS2812B LED strips in order to a DIY ambilight for my monitor. The problem is that for some reason the lights won’t light up how I expect them to. It looks to me like there is something wrong about the frequency or something.
What I have done:
- connected the arduino nano to my pc via usb
- the LEDs are connected to it via the digital pin 5 with a 470 ohm resistor in between
- LEDs have their own powersupply with 5V 8A
- arduino ground and LED ground are connected to the powersupply
The program I’m using:
#include “FastLED.h”
#define NUM_LEDS 109
CRGB leds[NUM_LEDS];
void setup() { FastLED.addLeds<WS2812B, 5, GRB>(leds, NUM_LEDS); }
void loop() {
LEDS.showColor(CRGB(255,0,0));
delay(1000);
LEDS.showColor(CRGB(0,255,0));
delay(1000);
LEDS.showColor(CRGB(0,0,255));
delay(1000);
LEDS.showColor(CRGB(0,0,0));
delay(1000);
}
These are the LEDs I’ve bought.
You can take a look at it here:
A lot of thanks in advance, I really hope you can help me.