SVPWM, ePWM waveform pattern getting different as expected?
Show older comments
Dear Community,
I am working BLDC Sensorless Motor Control and referring below example.
I have used Flux observer as per details mentioned in example.
I have generated code and deployed on Launchpad-F280049C (DRV8320H with custom board) and observed PWM outputs at launchpad ePWM pins. Attached snapshot of the same.
Launchpad not yet connected to Driver board and motor.
Below are my queries.
1. As per PWM waveform and driver truth table, I am getting All 3 High Side MOSFET in ON state. How do I get switching pattern as per SVPWM. How to observe switching pattern of MOSFET and Gate pulses of ePWM?
2.If top 3 mosfet in in ON state, it it chance short-circuit the driver board?
3. How to check switching time between sector U1 to U2 till U6? https://in.mathworks.com/discovery/space-vector-modulation.html
Appreciate your valuable support.
Thanks.
Accepted Answer
More Answers (1)
KrishnaKumar
on 5 Mar 2025
Edited: KrishnaKumar
on 5 Mar 2025
0 votes
The referred example uses PWM reference generator block (PWM Reference Generator) to generate the necessary duty cycles to control the inverter switches. The example demonstrates closed loop control and generates necessary duty cycles in simulation to run the same. When the same is deployed on hardware and if the hardware is not connected to the motor, closed loop control cannot be achieved and hence the duty cycle measurements from an unconnected launchpad may just be constant values and not vary with time as seen in your attached picture (the duty cycle seems to be 50% and does not vary).
- To get the switching pattern as per SVPWM (see PWM Reference Generator) the board would need to be connected to driver + motor. Or alternatively, create a new model to be deployed on your hardware using a sinusoidal input to the PWM reference generator block and measure the duty cycle output in hardware to check the PWM driver and outputs in open loop. This example - Run 3-Phase AC Motors in Open-Loop Control and Calibrate ADC Offset can be a good starting point.
- If the switches in each inverter leg are configured to be complementary, then turning on all top switches of the inverter should lead to a short circuit on the motor (the three terminals of motor will be shorted).
- The switching time (or duty cycle) varies as a double hump wave in SVPWM as seen in the picture titled "Gate pulse generation as a result of comparing the modulation wave and the carrier wave." in Space Vector Modulation - MATLAB & Simulink
Categories
Find more on Motor Parameter Estimation and Plant Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!