Arduino IDE 1.8.8, Win10
FastLED version 3.2.1
LED chipset: WS2812B
Hardware: Adafruit Circuit Playground CPX
Full code is here: (but it is just the ColorPalette example provided with FastLED but with modified start values as below)
https://BANNED.com/GRNVBFyA
Code: Select all
#define LED_PIN 1
#define NUM_LEDS 15
#define LED_TYPE WS2812B
Pin A1 of the CPX is connected via a 330 Ohm resistor to the data pin of the strip.
I have a common ground between the CPX GND and the LED strip GND.
I have a 1000uF cap across the WS2812B's +5v and GND pins.
Illustration attached.
I've compiled and uploaded the code to the CPX.
When the CPX is powered by my PC's USB the first Neopixel on the CPX itself illuminates ORANGE (dunno why?), and none of the WS2812B illuminate.
When the CPX is powered by a battery pack the first Neopixel on the CPX itself illuminates ORANGE (dunno why?), and none of the WS2812B illuminate.
I've used a multimeter to confirm +5v across the strip at several points so it's definitely powered.
My questions would be:
[*]Why is one of my CPX on-board neopixels lighting up green or orange? I never asked for this!
[*]Why are none of the WS2812B strip neopixels lighting up? Someone suggested elsewhere that it may be because the CPX data pin is 3.3v and WS2812B expects 5v for data in. To that end I've ordered a TXB0104 (4-Bit Bidirectional Voltage-level Translator) from eBay. Does that sound correct?