Using FastLED with an ESP32 and APA102 - so I saw this issue: ESP32 + FastLED · Issue #504 · FastLED/FastLED · GitHub. And, if I’m reading it correctly, it’s saying that it will work now. However, running the basic “Blink” sketch and nothing happens.
The number of LEDs and Pins are set to: #define NUM_LEDS 180 #define DATA_PIN 23 #define CLOCK_PIN 22 /
This works fine on an ESP32 with SK9822s which are very very similar to APA102Cs. I’m using the “WeMos” WiFiBluetooth Battery (18650) board. You shouldn’t need level shifters or resistors.
@Jeremy_Spencer - thanks!
Well, I must be an idiot because I’ve tried a number of things including different boards (ESP32 & ESP32-NodeMCU), different pins, changing the order, moving pins, different data rates, etc. Unfortunately, none of the LEDS appear to do anything - FastLED with an ESP32 and APA102s.
Here’s the code I’m using. I wonder if I’m doing something wrong?
for(int dot = 0; dot < NUM_LEDS; dot++) {
Serial.print(“x”);
leds[dot] = CRGB::Blue;
FastLED.show();
// clear this led for the next time around the loop
leds[dot] = CRGB::Black;
delay(30);
}
}
Actually, looks like both boards have the V0 Silicon - running ESP_Version returns:
REG_READ(EFUSE_BLK0_RDATA3_REG) 0
EFUSE_RD_CHIP_VER_RESERVE_S 1100
EFUSE_RD_CHIP_VER_RESERVE_V 111
That’s very strange, both sketches work fine for me on an ESP32 “WeMos” WiFi&BluetoothBattery… I’m also using IDE v 1.8.5 and FastLED 3.1.6 and my chips are Rev0
Try downloading the latest ESP32 core https://github.com/espressif/arduino-esp32
Ran sketch_dec03a.ino and got nothing (although LEDs 5 and 7 did turn on when the sketch first ran). Also connected to the Serial Monitor and it is sending “xxxxxxxxxxx…”
Just installed the Arduino IDE on a Windows 7 laptop, along with the ESP core and USB Drivers. Opened DemoReel100, added ‘Serial.begin(115200);’ to setup and ‘Serial.print(“x”);’ to loop.
Same result - the Serial Monitor shows that xxxxxx… is being printed, but the led strip remains unchanged.
@Jeremy_Spencer OK, tried swapping just the numbers, but unfortunately, that didn’t work either.
I also ordered another ESP32 which arrive today and that I’d hoped would have the Rev1 silicon. Unfortunately, when I checked it, it actually had Rev0 - even though the picture/description said it was Rev1 on Amazon (Seller Espressif although it’s actually “Olimex Ltd”)
This project seems jinx’d - but I’ve ordered a couple Arduino Nano’s that should be here tomorrow.
@Jeremy_Spencer
Received the Arduino Nanos today, soldered the pins in, wired it up, ran DemoReel100 and … it ran the 1st time. Perfectly!
Which is both great and frustrating at the same time, haha.
It would be great to hav a picture of a working setup - especially the wires connecting the ESP32 to the LED Strip. Maybe I’m doing something boneheaded?
Also, I wonder if you participated in the initial testing that went on with the ESP32 if it’s possible you could have a remnant from that testing - maybe additional/different file than what I have locally?