Symmetric PWM pins and dead time #2136
-
Thank you for this fantastic library. Is there any way to set up a PWM audio sink that uses two symmetric pins, and maybe introduce some dead-time between them, to drive a discrete Class D amplifier? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't quite understand what you mean with symmetric pins and dead time: please elaborate... Did you try the PWMAudioOutput class ? |
Beta Was this translation helpful? Give feedback.
-
I assume you are using an ESP32: I have added a DRAFT implementation for PWMComplementaryDriverESP32. You can use it as follows: #include "AudioTools.h"
#include "AudioTools/CoreAudio/AudioPWM/PWMComplementaryDriverESP32.h"
PWMComplementaryDriverESP32 driver;
PWMAudioOutput out(driver); Feel free to submit corrections if this is not working.... |
Beta Was this translation helpful? Give feedback.
I assume you are using an ESP32: I have added a DRAFT implementation for PWMComplementaryDriverESP32. You can use it as follows:
Feel free to submit corrections if this is not working....