Search found 3 matches
- Sun Oct 13, 2019 6:50 pm
- Forum: ESP32 Arduino
- Topic: Howto properly configure MCPWM
- Replies: 0
- Views: 2140
Howto properly configure MCPWM
Hello, I'm working on a leading edge dimmer, there for i would like to use the MCPWM functionality of the ESP32. But i'm a bit stuck. This is what i have so far: #define GPIO_PWM0A_OUT 0 #define GPIO_PWM0B_OUT 0 #define GPIO_PWM1A_OUT 0 #define GPIO_PWM1B_OUT 0 #define GPIO_PWM2A_OUT 0 #define GPIO_...
- Fri Sep 13, 2019 8:01 pm
- Forum: ESP32 Arduino
- Topic: PWM with sync input
- Replies: 6
- Views: 9625
Re: PWM with sync input
Hi,
Have you looked at MCPWM, i'm using it for a AC Dimmer.
It works great, please keep in mind that if you use a optocoupler for synch use a dual schmitt trigger to get a stable signal.
i had some interupt errors.
http://www.bristolwatch.com/ele2/zcnew.htm
Have you looked at MCPWM, i'm using it for a AC Dimmer.
It works great, please keep in mind that if you use a optocoupler for synch use a dual schmitt trigger to get a stable signal.
i had some interupt errors.
http://www.bristolwatch.com/ele2/zcnew.htm
- Sun Sep 01, 2019 6:11 am
- Forum: ESP-IDF
- Topic: trouble sync mcpwm
- Replies: 0
- Views: 2302
trouble sync mcpwm
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 signa...