gbafamily1 wrote:Could be 3.3V versus 5V logic levels. If the LEDs are powered with 5V, the data in pin should used 5V logic. If the LEDs are powered with 3.7V (for example, from a Lithium battery), 3.3V on data in pin should work.
void cycle() { //This is a single led on/off at a time creating a single movement for(int dot = 0; dot < NUM_LEDS; dot++) { leds[dot] = CRGB::Blue; FastLED.show(); // clear this led for the next time around the loop leds[dot] = CRGB::Black; delay(30); } } // End cycle
void loop() { cycle();
}
This is running on nodemcu 1.0. Separate 5v power supply to neopixel, 220ohm resistor, capacitor, nodemcu is still plugged to my computer usb, and nodemcu/neopixel same ground. My neopixels are in a pallet so just imagine its a strip.
- Wed Mar 29, 2017 8:11 pm#64391
Confirmed this morning after adding the 3.3V > 5V level-shifter that my sketch now works
In case anyone else has a similar issue, if you are powering your LED's via 5V, the data pin must receive at 5V as well and since the ESP8266 only outputs 3.3V you'll need to upshift.
I'm using a 74AHCT125 SMD (with super tiny contacts) so waiting to swap that out with a conversion board but as far as this morning tests, all good.