Pulse-width modulation (PWM)
Study Pulse-width modulation (PWM). Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.
Learning Objectives
- Explain the role of pwm and drive commands in the engineering system.
- Calculate the worked quantity with consistent units.
- Design a measurement that can reveal an implementation failure.
Study guide
Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.
Lesson focus: Pulse-width modulation (PWM)
Verify the electrical waveform and driver limits before interpreting motor motion.
PWM and drive commands
A power driver switches the motor supply; a controller supplies a low-power command. Duty cycle changes average applied voltage, while motor current and load determine the resulting speed. A GPIO must never power the motor directly.
Model, units and assumptions
D is duty ratio (0–1), T is the PWM period in seconds, f is frequency in hertz, and Vs is supply voltage. The average-voltage approximation assumes an ideal switch and a suitable motor driver; it does not imply a linear speed law under changing load.
Worked engineering example
At a 24 V supply and 35% duty, the ideal average command voltage is 8.4 V. At 20 kHz the period is 50 µs, so the on-time is 17.5 µs. Measure the actual waveform before attaching the motor.
Practical task and evidence
Apply the following procedure to the topic of this lesson: Pulse-width modulation (PWM).
- Use a current-limited supply and a rated driver; begin with the motor unloaded and mechanically secured.
- Scope the PWM output at 10%, 35% and 70%; record frequency, amplitude and on-time.
- Add a repeatable load and compare speed at fixed duty with speed under feedback.
Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.
Check your understanding
Question. For a 12 V supply, 62.5% duty and 5 kHz switching, find average voltage and on-time.
Show worked answer
Average voltage ≈ 7.5 V. Period = 200 µs; on-time = 125 µs. Actual terminal voltage includes driver drops and switching transients.
Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.
Summary
PWM and drive commands: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.