Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.66k stars 3.15k forks source link

Implement phase shifted PWM #4034

Open blazoncek opened 3 months ago

blazoncek commented 3 months ago

Implement phase shifted PWM outputs to lower the demand on PSU and/or allow 2-channel polarity changed LED strips to function properly.

The discussion about (issues with) PWM started in #3962 as a result of crashes within PWM handling code.

Requested participants: @softhack007 @willmmiles @jw2013 @tablatronix and (optional) @Jason2866 Please follow up here from https://github.com/Aircoookie/WLED/pull/3962#issuecomment-2194289342

References: https://www.hackster.io/daniel232/esp32-generate-two-180-phase-shifted-pwms-c1010f "On ESP8266, there is a hidden, but officially supported solution for PS-PWM" by @jw2013

willmmiles commented 1 day ago

Phase shifting on ESP32 was prototyped in #4115 and merged in #4129.