Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastLED not working with ESP8266 (nodeMCU V1.0) #3

Open
JIP0815 opened this issue May 6, 2016 · 5 comments
Open

FastLED not working with ESP8266 (nodeMCU V1.0) #3

JIP0815 opened this issue May 6, 2016 · 5 comments

Comments

@JIP0815
Copy link

JIP0815 commented May 6, 2016

Hi,
first of all I want to thank you for this amazing project.
When trying to compile it with Arduino 1.6.8 it only gave errors like this:
Arduino\libraries\FastLED-3.1.0/platforms.h:22:2: error: #error "XTENSA-architecture
microcontrollers are not supported"
Do you have any ideas how to fix this?
May you can make some screenshots of you Board settings and write a short documentation about your project?
Cheers,
JIP0815

@TheAustrian
Copy link
Owner

Hi! It seems that the 3.1 version had some glitch with ESP8266, see FastLED/FastLED#289 - you might need to re-download the library in the latest version as suggested in the issue linked.

I'm currently also trying out a version with Neopixelbus instead of FastLed, since it runs more stable if I keep the lamp turned on for days I found (it uses DMA instead of the software bitbanging the FastLed library uses), but I haven't really had time to change all the code yet and it doesn't provide most of the convenience you get with FastLed. I'll upload the code when I'm done changing it.

The setup I use is quite easy and looks good from the outside, but it's not super-pretty inside, since I used an old iPad charger as power source, which added some bulk to the project. I'll make some pics and link them this weekend, but wiring is quite straightforward (1 data wire and 1 ground and 1 5V wire to the ESP and the LEDs each - as well as a bulky capacitor between ground and 5V, which I don't think is really necessary).

@JIP0815
Copy link
Author

JIP0815 commented May 7, 2016

Thank you for the quick response.

Hi! It seems that the 3.1 version had some glitch with ESP8266, see FastLED/FastLED#289 - you might need to re-download the library in the latest version as suggested in the issue linked.

Compiling works fine with the head of the latest master version. Unfortunately my ESP8266 getting a bootloop now. In serial monitor it says:
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld
Do you know this kind of bug?

Btw. my setup is quite similar to yours. Having an WS2812b strip with 60 LEDs connected to an 2A USB-charger. A level shifter converts the signal to 5.5V for the strip. A capacitor smooths the 5V from the charger to prevent current peaks. This setup work fine with a RPi and Arduino Nano V3.

@JIP0815 JIP0815 closed this as completed May 7, 2016
@JIP0815 JIP0815 reopened this May 7, 2016
@TheAustrian
Copy link
Owner

It's a watchdog timer reset. If it happens on startup you are probably staying too long in the setup function or running a tight loop somewhere without using delay() or yield().

@JIP0815
Copy link
Author

JIP0815 commented May 8, 2016

It's a watchdog timer reset. If it happens on startup you are probably staying too long in the setup function or running a tight loop somewhere without using delay() or yield().

Tried it with uncommenting it in your code and change the delays, but nothing really works.
Seems to be a problem with FastLED. When LEDS.addLeds<...>(...) is called the controller restarts.

@TheAustrian
Copy link
Owner

Ok, you might want to also post this issue at the FastLed library page then so they can have a look at it.
https://github.com/FastLED/FastLED/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants