Page 1 of 1

About implementing Simple FOC using ESP32

Posted: Wed Sep 23, 2020 1:52 am
by duxingymj
I wanted to implement the BLDC's Simple FOC control using ESP32.I use THE MCPWM module to complete the synthesis of SVPWM.But I was unable to sample the BLDC three-phase current.I need to use the timer in the MCPWM module to trigger the ADC when the down-channel PWM is high.I can't find a way to do that in the official manual.Has anyone ever tried a similar job?

Re: About implementing Simple FOC using ESP32

Posted: Thu Dec 15, 2022 6:53 am
by ffrige
Use in-phase current sensing and you can sample independently from the PWM state.