Hello,
I'm trying to figure out how to get these working properly:
I'm new to this, but this is a string of 50 WS2811 RGB 5MM leds.
For a short while I connected the string to a universal adapter (set on 5v), and they were blinking in bright random colors.
Only when I connected the string to the 5Vin and Gnd pins of the Arduino instead, I got some sensible results according to my code (which is just the code below):
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define PIN 6
#define LED_COUNT 50
Adafruit_NeoPixel strip = Adafruit_NeoPixel(LED_COUNT, PIN, NEO_GRB + NEO_KHZ400);
/******************************************************/
void setup() {
Serial.begin(9600);
strip.begin();
strip.show(); // Initialize all pixels to 'off'
}
void loop()
{
for(uint16_t i=0; i<strip.numPixels(); i++)
{ strip.setPixelColor(i,strip.Color(32,32,32)); }
strip.show();
}
However, the lights are no longer responding to the input pin anymore. If I connect my lights directly to the adapter it will blink shortly in blue sometimes.
Setup A: Used to work properly:
White wire: pin 6
Red wire: 5 Vin
Blue wire: Gnd
Setup B: Random flickering:
Input signals: pin 6
Red wire: + output of the adapter
Blue wire: - output of the adapter
My question is, did I break the string somehow or is there something wrong with my setup (it used to work for a while)?
The red wires are the 5v input, the white wires for the signal, blue one is the ground.
Thanks in advance,
warenhuis