Hello everyone, I have bought a led strip: WS2812B bur I can't make it work.
Following some online tutorials I have wired it to an Arduino Uno as follows:
Power supply: AC adapter: Output 19V - 6.3 A
The power supply is connected to a buck converter. I brought the voltage down to 5V.
On the LED strip there are 3 connections: -; +5V; Di.
However, there are 5 wires connected:
Img1 Led to buck converter
Image 2 Led to buck converter
Image3 Led to buck converter
Image 4 Led connections
As I saw from the internet (for instance how to connect example) I connected the +5v to the positive side of the 5V buck converter, the ground to the negative side of the buck converter. Then, I connected the green wire (Di) to pin 7 of the Arduino (the yellow wire in my picture). Finally, I have also connected the gnd from the buck converter to the gnd on the Arduino (purple jumper in the picture).
Then, just to try whether this was working, I have downloaded the fastLED library.
Then, I have uploaded this code that I found from internet:
#include <FastLED.h>
#define LED_PIN 7
#define NUM_LEDS 20
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, LED_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int i = 0; i <= 19; i++) {
leds[i] = CRGB ( 0, 0, 255);
FastLED.show();
delay(40);
}
for (int i = 19; i >= 0; i--) {
leds[i] = CRGB ( 255, 0, 0);
FastLED.show();
delay(40);
}
}
I will try to also add a fritzing scheme, but this should be quite clear I think...
Does anyone have any idea why this is not working?
Thank you in advance for your time and comments.