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 Node MCU #542

Closed
samiraa78 opened this Issue Dec 20, 2017 · 10 comments

Comments

Projects
None yet
7 participants
@samiraa78

samiraa78 commented Dec 20, 2017

Hi!

I am trying to use ESP8266 to connect and control my LED from Hassio, the code i am using uses FASTLED however for some reason none of the demos of FAST LED or the code work, sometimes the first light lits and sometimes the light led lits thats all happens

Adifruit and all other library work fine any idea if i need to enter specific code for Node MCU

I am using WS2812B LED lights

@xkuyax

This comment has been minimized.

Show comment
Hide comment
@xkuyax

xkuyax Dec 20, 2017

Have you got a level shifter? The nodemcu has only a logic level of 3.3 Volts and the leds have a minimum logic level of 3.5V, it might work (it works for me), but it might not work for every led strip/controller combination.

xkuyax commented Dec 20, 2017

Have you got a level shifter? The nodemcu has only a logic level of 3.3 Volts and the leds have a minimum logic level of 3.5V, it might work (it works for me), but it might not work for every led strip/controller combination.

@coryking

This comment has been minimized.

Show comment
Hide comment
@coryking

coryking Dec 22, 2017

Have you tried different pins?

coryking commented Dec 22, 2017

Have you tried different pins?

@tonton81

This comment has been minimized.

Show comment
Hide comment
@tonton81

tonton81 Dec 22, 2017

use pins 5 or 14
i did a demo using pin 14 of this github source
Tony

tonton81 commented Dec 22, 2017

use pins 5 or 14
i did a demo using pin 14 of this github source
Tony

@tonton81

This comment has been minimized.

Show comment
Hide comment
@tonton81

tonton81 Dec 22, 2017

and no level shifter either, 144 leds strip runs very well!

tonton81 commented Dec 22, 2017

and no level shifter either, 144 leds strip runs very well!

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 25, 2017

did you get it working because i am trying do do the same thing?

ghost commented Dec 25, 2017

did you get it working because i am trying do do the same thing?

@samiraa78

This comment has been minimized.

Show comment
Hide comment
@samiraa78

samiraa78 Dec 25, 2017

Yes i dot it working in the code you need to change the pin address if you are mentioning D4 it wont work however if you only 4 it will work try doing that after couple of days of head banging this simple trick worked for me

samiraa78 commented Dec 25, 2017

Yes i dot it working in the code you need to change the pin address if you are mentioning D4 it wont work however if you only 4 it will work try doing that after couple of days of head banging this simple trick worked for me

@Muplex

This comment has been minimized.

Show comment
Hide comment
@Muplex

Muplex Dec 31, 2017

I've got the same issue. Neopixel works with adafruit library but not with fastled. How did you solve it?

Muplex commented Dec 31, 2017

I've got the same issue. Neopixel works with adafruit library but not with fastled. How did you solve it?

@samiraa78

This comment has been minimized.

Show comment
Hide comment
@samiraa78

samiraa78 Dec 31, 2017

What is the exact Pin number you have mentioned in the code if the pin is D4 and you have mentioned D4 trying changing it to 4 and see if it works

samiraa78 commented Dec 31, 2017

What is the exact Pin number you have mentioned in the code if the pin is D4 and you have mentioned D4 trying changing it to 4 and see if it works

@Muplex

This comment has been minimized.

Show comment
Hide comment
@Muplex

Muplex Jan 2, 2018

indeed it works!!!! Thank you very much!!!!

I want to explain the situation for future readers;
In my sketch I was using buttons + RGB Neopixel 16 dots ring.

The confusion comes out because with FastLed.H different object initialization (in these case the neopixel) in witch I had to use the number print on the nodemcu (D0 = 0; D1 = 1; ...... FOR FASTLED RELATED OBJ) BUT to initialize the buttons I had to map the pins as known (D0 = 16; D1 = 5; .......... FOR THE BUTTONS)...

Muplex commented Jan 2, 2018

indeed it works!!!! Thank you very much!!!!

I want to explain the situation for future readers;
In my sketch I was using buttons + RGB Neopixel 16 dots ring.

The confusion comes out because with FastLed.H different object initialization (in these case the neopixel) in witch I had to use the number print on the nodemcu (D0 = 0; D1 = 1; ...... FOR FASTLED RELATED OBJ) BUT to initialize the buttons I had to map the pins as known (D0 = 16; D1 = 5; .......... FOR THE BUTTONS)...

@brendanmatkin

This comment has been minimized.

Show comment
Hide comment
@brendanmatkin

brendanmatkin Jan 5, 2018

As mentioned above NodeMCU re-maps the ESP8266 pins so they all line up nicely on the breakout. This image makes it pretty clear which is which (so if you want GPIO4 you can use D2, or GPIO3 is D9 (shown as RX on this picture)).

brendanmatkin commented Jan 5, 2018

As mentioned above NodeMCU re-maps the ESP8266 pins so they all line up nicely on the breakout. This image makes it pretty clear which is which (so if you want GPIO4 you can use D2, or GPIO3 is D9 (shown as RX on this picture)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment