These are chat archives for Makuna/NeoPixelBus

27th
Sep 2016
branks
@branks
Sep 27 2016 09:17
So I'm trying to get NeoPixelBus working on an ESP8266 01 but I'm not able to change the color of the LED. I have wired up my NeoPixel to GPIO2 and have used a pull-up resistor to GPIO2 so that the ESP can boot. Is this all correct? Will the NeoPixelBus library work with there being a pull-up resistor connected? Or is it going to cause issues with the NeoPixel that the input is always high?
Michael Miller
@Makuna
Sep 27 2016 16:51
It will cause issues with the pin state being high.
Why do you have the pull up resistor? It was not needed with my ESP01 except when I was programming it.
ALSO, note that if you have GPIO3 available, I have heard that some people have gotten the DMA method working although I have not seen this myself.
branks
@branks
Sep 27 2016 18:07
If i have GPIO2 plugged in without being high, the esp just fails to boot
unless im wiring something else incorrectly, but it seems to be something common online
This seems to also say it needs to be high, no? Or am I miss reading something
https://github.com/esp8266/esp8266-wiki/wiki/Boot-Process
branks
@branks
Sep 27 2016 18:16
Ok so I think I should explain what I'm trying to do and then please can tell me if I'm doing it wrong. I ordered some of these off of amazon (https://www.amazon.co.uk/gp/product/B00MIM35OG/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1) and they say on them 5-9v. So I am trying to use an input of 5v for the NeoPIxel, but obviously the esp needs 3.3v, so I am routing my output from GPIO2 through a voltage shifter to give me a 5v output again which can then be sent to the neopixel. I hope this makes sense
Michael Miller
@Makuna
Sep 27 2016 21:57
@branks GPIO2 floating works (not specifically pulled low) which is the case for Esp01 when not connected to the programming board; at which point then having the NeoPixels connected works fine.
Michael Miller
@Makuna
Sep 27 2016 22:02
@branks I can't tell how new the chips are on those boards. The newest ones (within the last year) often can take 3.3v IO from the ESP while still being provided 5v to the V+. The grounds between the ESP and the 5v power supply must be connected together though.
If you are using a level shifter, it needs to be fast enough (rated for I2C), but it will work also.
branks
@branks
Sep 27 2016 23:18
@Makuna I removed the shifter and just ran it all as 3.3 and its all working perfectly. Took me far too long to realise I had to call strip.Show() in the loop. Thanks for your help