-
Notifications
You must be signed in to change notification settings - Fork 117
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
LEDs do not work #86
Comments
I'm not sure what you mean by "only led color shines on all 4 leds." . It sounds like a similar issue I had. See my comments on issue #4 |
Yeah, sorry for writing like an idiot. The sentence should have been "only white led color shines on all 4 leds". |
Oh, forgot to write - of course, I did the same thing as recommended - wiped the chip, make burnitall, restore & save, reboot. No change. |
Just to be sure, this is what I've tried. |
It would be helpful if you can compile your own, but I got it to work with the following modifications to file Here is what works for me: |
YES, that worked, thanks. Now I need to find out why my setup won't compile ;) |
when trying to do
Fixed this by adding |
weird that wasn't declared in your side. |
Hey, I have the same problem (all of my LEDs are white) but these fixes did not work for me. I feel like an idiot, but I also couldn't get the demo to run. The sound works just fine in the web interface. |
Is your ground connection for the LEDs the same ground as your board? |
@lightsarefun yes and @cnlohr yes. I will try with different LEDs today |
A thought just occurred, I wonder if some of this has to do with a new nodemcu variant. If the resistance between the TX on the USB-serial bridge to the RX on the ESP is too low, the ESP won't be able to drive the LEDs effectively. Do you have access to a scope? |
That is possible, I do use a NodeMCU. I have access to a multimeter, but not direct access an oscilloscope sadly (I live next to a university, so if I ask nicely someone will probably let me use one) |
I am also using nodemcu. Do you have details (model) for the new vs old variants? I also do not have a scope, but could this be tested by connecting a trimpot between tx and rx? Also my first LED on the strip always stays green so there is definitely something going on here |
It would be the resistance between the RX pin on the ESP and the TX pin on the uart converter. Normally this is not exposed. You would need to find the resistor on board to measure it. alternatively, you could disable colorchord and use the GUI to drive the RX pin (I believe GPIO3) low and meaasure the voltage. There is a GPIO tab in the GUI. |
This resistor matches the schematic. I measured it to be 470 ohms. |
@glatteis Are you using any logic level translator? ESP8266 high level is 3.3V but WS2812B expects 0.7*Vin, in your situation its 3.5V (5V Vin). If you have power supply try to go lower than 5V, like 4.2V or if led strip is not too long try to add a diode on 5V to drop voltage (this is not efficient at all, so just use it for debugging :P). This post shows another interesting method to make it work with 3.3V logic and 5V power supply. I had similar issues when I used I2S to drive leds, only couple of first leds got correct data and the others were flickering or not responding at all. |
I am using mostly Wemos D1 which has exactly the same 470R in-between the USB chip and the ESP. I checked the link from @KaDw and it looks interesting. I did not expect this. Thanks a lot for sharing. |
OH MAN I totally forgot to mention all that - you should totally try operating your LEDs at a lower voltage to see if it resolves the issue! Good catch, @KaDw |
I don't think my issue is hardware related because the ws2812i2s project works fine on the same setup/wiring. I still tried to reduce the voltage for the heck of it. Instead of Vin=5V for WS2812B, I put diode in series, to make Vin = 4.46V; therefore 0.7*Vin = 3.12V |
Any more hints? I still have this problem. |
I've built 2 more modules using Wemos D1 mini and cheap microphone module from aliexpress. One connected to 96 LEDs, the other one to 104. Both work OK. Than I built a 3rd one with just 12 and one of them was faulty - passed data only sometimes and often "junk" - all the LEDs beyond made just series of crazy blinks, almost as if data pin was fluctuating. I removed that single LED (the last one working OK) and now they work no problem. But I doubt this is your issue if the WS project works OK. Can you, just for fun, pun 220-470uF cap between the power and ground on the LED strip? That helped me also in the past... |
I've connected my strip of WS2812 and uploaded the pre-build code. The web looks great
.
However, the connected strip does not work - only led color shines on all 4 leds.
When I upload the ws2818i2s demo, it shows all the patterns no problem.
Any idea where might be the problem?
I can't find any documentation to the parameters below for the correct setting, btw :( Too bad, otherwise I would not bother you.
The text was updated successfully, but these errors were encountered: