Proof of Progress

Space Vector Pulse-Width Modulation MATLAB Code

    Download Link: MATLAB Code

    The following video displayes PWM signal generation from top-middle to bottom for the a.b. and c phase signals. The top plot is the angle of the signal being generated. This shows the relationship between the PWM signal generated and the position for the signal in the space vacter map.

Microcontroller Code

The video to the left displays the ability for the user to manipulate the frequency of the PWM signal sent to the stator using a potentiometer. The yellow line represents the input voltage used to determine the frequency of the signal. The blue, purple, and green PWM signals are the positive a, b, and c phase signals respectively.
The video to the right displays the ability for the usier to manipulate the direction of the PWM signal sent to the stator using a switch on the microcontroller. The yellow line represents the input voltage used to determine the frequency of the signal. The blue, purple, PWM signals are the positive b and c phase signals respectively. In this video, the c phase signal is being sent through an inverting op-amp before testing since the probe was already placed at that point. This fact does not change the behavior of the signal.
The video to the left displays both the functionalities mentioned above with the PWM signal sent through a second-order Sallen-Key low-pass filter. The resulting waveform is the expected sine wave from the filters PWM signal.

Signal Flow Testing

Motor Functionality Testing