Topic: ESP32 mcPWM
(Read 42 times)
Sep 11, 2019, 11:11 am
I have a test setup to dim a light.
the hardware conssist of a ZCD connected to GPIO22
a vom1271 gate connected to GPIO23
The vom controlles 2 mosfets back to back.
i have the the code working, only the light is flickering and the pwm signal isn't stable.
what can i do to get a more stable pwm signal.
below is the code
to see what is happening see this video, you see on the lower part of the scope the ZCD, the upper part is the PWM signal, you see the pwm signal isn't stable and below the scope you sometimes see the light flickering.
Re: ESP32 mcPWM
Sep 11, 2019, 01:07 pm
: Sep 11, 2019, 01:09 pm by Idahowalker
If and when you do decided to post the code, could you format it and put it in code tags?
Odd an ESP32 not doing the stable PWM. Anyways, Have you tried using the ESP32 PWM API: esp32-hal-ledc, which was written to control LED's and not motors?