This is my first time ever working with electronics, so please bear with me!
I'm trying to put together a word clock using the Arduino Nano and a strip of WS2812B addressable lights.
I am stuck trying to get the LEDs to light up. I decided to test with just a strip of 12 LEDs to make sure it all works, but am eventually going to extend to 144. I can't get the first strip of 12 to light up though.
The arduino nano turns on, and using a multi-meter I verified that there is current flowing through the place where I connect the LEDs, but they're not turning on. I'm not quite sure how to debug this, but I suspect the issue is in the Data connection from PIN 6 on the nano.
#include "FastLED.h"
// fast led constants
#define DATA_PIN 6
#define COLOR_ORDER GRB
#define NUM_LEDS 12
#define LED_TYPE WS2812B
// this creates an LED array to hold the values for each led in the strip
CRGB leds[NUM_LEDS];
void setup()
{
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
}
void loop()
{
for(int i = 0; i < NUM_LEDS; i++ ) {
leds[i] = CRGB::Red;
FastLED.show();
}
delay(500);
for(int i = 0; i < NUM_LEDS; i++ ) {
leds[i] = CRGB::Black;
FastLED.show();
}
delay(500);
}
It's definitely possible that my wiring is the issue, I've been winging it soldering-wise.
Also I forgot to mention that I did have a 470 ohm resistor on the data line. Forgot to put that in the diagram as I had it taped over with electrical tape.
I had also completely covered the two prongs of the capacitor in electrical tape.
It works now! Based on Larry's advice, I decided to switch the pin I was using. I also swapped out the pre-crimped connector wires for ones I soldered myself and now the LEDs are lighting up.