Learning Rooms/○ Level 3 · Innovator/Electronics
PWM - Pulse Width Modulation (Basics, Circuit, Working, & Waveforms) Explained
Engineering Funda · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Define duty cycle and calculate it from the high time and the period.
- Calculate the average voltage of a PWM signal from the duty cycle and the supply.
- Explain why the PWM frequency must be fast enough for the load.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
A 12 V supply is switched on for 25% of every period and off for 75%. What average voltage does a motor feel?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The PWM visualiser draws three periods of a square wave between 0 V and the chosen supply. The wave is high for the duty-cycle fraction of each period; a dashed line marks the average, duty × supply. A simplified motor's speed is proportional to that average (no movement below 0.8 V), and an LED swatch shows brightness rising with duty. At 50 Hz the readout warns of flicker; at 20 kHz it notes the switching is above most people's hearing.
3.Watch, actively
A lecture-style explanation of PWM basics, circuits and waveforms, a step more formal than this lesson.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Watch for the definitions of period, on-time and duty cycle, and check that the average-voltage formula matches this lesson's.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
PWM switches a supply fully on and off very quickly. The fraction of each period spent on is the duty cycle, and the average voltage is the duty cycle times the supply voltage, which is how a digital pin can dim an LED or slow a motor.
What the video covers (our own note, written when we verified it): A lecture-style explanation of PWM basics, circuits and waveforms, a step more formal than this lesson.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
A PWM output switches between 0 V and 3.3 V with a duty cycle of 85%. What is the average voltage, in volts?
Practice 2 · a fresh version every time
A PWM signal has a period of 2 ms and stays high for 1 ms each period. What is the duty cycle, as a percentage?
Practice 3
You want an average of 4.5 V from a 12 V supply. What duty cycle is needed, in percent?
Practice 4
An LED driven by PWM at 20 Hz visibly flickers. What is the fix?
5.Try it yourself
No simulation models this idea yet. The lesson below has an interactive diagram instead.
6.Build something with it
Follow-up project
A greenhouse fan runs from 12 V and should have three speeds: 33%, 66% and 100% of full voltage. Give the duty cycles and the average voltages, choose a PWM frequency with a reason, and write a Python function duty_for(volts) with a check that clamps the result to 0–100%.
Where this video lives
- PWM: dimming with an on/off switch · Level 2, week 25
In the course catalogue: ECE-240 Microcontroller inputs, outputs and sensors
The video is by Engineering Funda, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.