You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flickering when use ws2812B panel version with ESP32 #1097
Hi, I researched this issue quite a bit and it is library issue, you can partially reduce flickering my moving FastLED to separate core, but still when I use wifi it's flickering a bit.
@djdoubleg This is because the ESP32 is 3.3V and the LEDs are 5V. By lowering the voltage to 4.8V you got the logic level within tolerance to work. Using a level shifter as I mentioned above would have solved this without needed the reduce your voltage to the strips, as it would bump the data signal up from 3.3V to 5V before going to the LEDs.
The fact that that sending the 3.3V signal the LEDs worked with your first setup is just luck. Some times the voltage levels are just close enough that it will work. Some times it will work intermittently. Sometimes they won't at all. When you switched to different LEDs it was just different enough that it didn't work. If you want true reliability use a level shifter when using a 3.3V controller so you have a guaranteed 5V data signal going into the LEDs.
Activity
marmilicious commentedon Oct 15, 2020
It's possible you might need to add a level shifter such as SN74HCT245N or SN74HCT125N if you're not already using one. Since this is not a library issue, please ask your question on the reddit group: https://www.reddit.com/r/FastLED
We use github "issues" here mostly just for bugs or improvements in the library itself.
BatsIhor commentedon Oct 16, 2020
Hi, I researched this issue quite a bit and it is library issue, you can partially reduce flickering my moving FastLED to separate core, but still when I use wifi it's flickering a bit.
marmilicious commentedon Oct 17, 2020
@djdoubleg This is because the ESP32 is 3.3V and the LEDs are 5V. By lowering the voltage to 4.8V you got the logic level within tolerance to work. Using a level shifter as I mentioned above would have solved this without needed the reduce your voltage to the strips, as it would bump the data signal up from 3.3V to 5V before going to the LEDs.
The fact that that sending the 3.3V signal the LEDs worked with your first setup is just luck. Some times the voltage levels are just close enough that it will work. Some times it will work intermittently. Sometimes they won't at all. When you switched to different LEDs it was just different enough that it didn't work. If you want true reliability use a level shifter when using a 3.3V controller so you have a guaranteed 5V data signal going into the LEDs.
Here are some links if you want to learn more about logic levels:
https://www.allaboutcircuits.com/textbook/digital/chpt-3/logic-signal-voltage-levels/
https://www.instructables.com/A-Quick-Guide-on-Logic-Level-Shifting/
https://learn.sparkfun.com/tutorials/logic-levels/all#:~:text=Put%20simply%2C%20a%20logic%20level,signals%20HIGH%20or%20LOW%2C%20respectively.
Feel free to close the this issue if you consider it solved.