0
0
Power Electronicsknowledge~10 mins

Sinusoidal PWM (SPWM) technique in Power Electronics - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Sinusoidal PWM (SPWM) technique
Start
Generate Reference Sine Wave
Generate High-Frequency Carrier Triangle Wave
Compare Sine and Triangle Waves
Output PWM Signal
Control Motor or Load
End
The SPWM technique compares a low-frequency sine wave with a high-frequency triangle wave to create a PWM signal that controls power devices.
Execution Sample
Power Electronics
ref_wave = sin(pi * f * t)
carrier = triangle_wave(freq=fc, t)
if ref_wave > carrier:
    output = HIGH
else:
    output = LOW
This code generates a PWM signal by comparing a sine wave reference with a triangle carrier wave.
Analysis Table
StepTime (t)Reference Sine ValueCarrier Triangle ValueCondition (ref > carrier)PWM Output
10 ms0.00.5FalseLOW
21 ms0.310.3TrueHIGH
32 ms0.590.7FalseLOW
43 ms0.810.2TrueHIGH
54 ms0.950.9TrueHIGH
65 ms1.00.4TrueHIGH
76 ms0.950.8TrueHIGH
87 ms0.810.6TrueHIGH
98 ms0.590.7FalseLOW
109 ms0.310.3TrueHIGH
1110 ms0.00.5FalseLOW
💡 After one sine wave period (10 ms), the PWM cycle repeats.
State Tracker
VariableStartAfter 1After 2After 3After 4After 5After 6After 7After 8After 9After 10Final
ref_wave0.00.310.590.810.951.00.950.810.590.310.00.0
carrier0.50.30.70.20.90.40.80.60.70.30.50.5
outputLOWHIGHLOWHIGHHIGHHIGHHIGHHIGHLOWHIGHLOWLOW
Key Insights - 3 Insights
Why is the PWM output HIGH when the sine wave value is less than the triangle wave at some points?
The PWM output is HIGH only when the sine wave value is greater than the triangle wave value, as shown in the execution_table rows where the condition is True. If the sine wave is less, output is LOW.
Why does the PWM output change multiple times within one sine wave period?
Because the triangle wave frequency is much higher than the sine wave frequency, the comparison happens many times per sine period, creating multiple PWM pulses as seen in the execution_table steps.
What happens to the PWM output at the start and end of the sine wave period?
At the start and end (0 ms and 10 ms), the sine wave value equals zero and is less than the carrier, so the PWM output is LOW, matching the execution_table rows 1 and 11.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 4. What is the PWM output and why?
AHIGH because sine (0.2) > carrier (0.81)
BHIGH because sine (0.81) > carrier (0.2)
CLOW because sine (0.81) < carrier (0.2)
DLOW because sine (0.2) < carrier (0.81)
💡 Hint
Check the 'Condition (ref > carrier)' column at step 4 in execution_table.
At which step does the PWM output first become LOW after being HIGH?
AStep 2
BStep 5
CStep 3
DStep 9
💡 Hint
Look for the first row where output changes from HIGH to LOW in the output column.
If the carrier wave frequency increased, how would the PWM output change in the execution_table?
AMore PWM pulses per sine wave period
BFewer PWM pulses per sine wave period
CPWM output stays the same
DPWM output becomes constant HIGH
💡 Hint
Higher carrier frequency means more comparisons per sine period, increasing PWM pulse count.
Concept Snapshot
Sinusoidal PWM (SPWM) compares a low-frequency sine wave (reference) with a high-frequency triangle wave (carrier).
When sine > triangle, output is HIGH; else LOW.
This creates PWM pulses that approximate a sine wave.
Used to control AC motors and inverters.
Carrier frequency controls PWM resolution.
Sine frequency controls output waveform frequency.
Full Transcript
Sinusoidal PWM (SPWM) technique works by generating a low-frequency sine wave as a reference and a high-frequency triangle wave as a carrier. At each time step, the sine wave value is compared to the triangle wave value. If the sine wave is greater, the PWM output is set HIGH; otherwise, it is LOW. This process repeats many times per sine wave period, creating a PWM signal that approximates a sine wave. The PWM signal can then be used to control power devices like motors or inverters. The carrier frequency determines how many PWM pulses occur per sine wave cycle, affecting the smoothness of the output. The sine wave frequency sets the output waveform frequency. This technique is widely used in power electronics for efficient and precise control of AC power.