Actuators & Control · Study deck
PWM Control: Signals and Duty-Cycle Behaviour
A motor sees pulses, but its load responds to average energy and current ripple.
Motor Max is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain: Duty Cycle: The percentage of one PWM period during which the signal is HIGH; 0% = always off, 100% = always on; controls LED brightness, motor speed, heater temperature, and servo position (within a specific pulse width range).
- Explain: PWM Resolution: The number of discrete duty cycle steps; ESP32 LEDC peripheral: 1-16 bit configurable; Arduino Uno: 8-bit (256 steps); higher resolution provides finer control but requires more timer bits.
- Explain: Example: 50% duty cycle = ON for 0.5 ms, OFF for 0.5 ms, repeat at 1kHz = motor sees ~2.5V average from a 5V supply.
Major section
Start With the Story
A changing command number is not enough; the reviewer needs the drive timing, supply condition, and measured fan result.
- An actuator is a device that turns an electrical command into physical action.
- A microcontroller is a small computer built to read inputs and control outputs.
- Modulation means changing a signal over time to carry a setting.
Major section
Start With the Story (continued)
This runway does not prove motor life or make one switching rate safe for every load.
- The deeper sections cover waveform timing, driver stages, resolution, filtering, load limits, and measurement.
- PWM is the controller's way to ask for less or more effort, but the physical result depends on frequency, duty cycle, driver losses, motor inertia, and the load.
- The right setting is not just a number from 0 to 255; it is a duty, frequency, ramp, and feedback choice that keeps motion, brightness, heat, or position under control.
Major section
In 60 Seconds
It enables precise control of motor speed, LED brightness, and servo position using simple digital microcontroller pins without analog hardware.
- Pulse Width Modulation (PWM) is a digital technique that simulates analog control by rapidly switching power on and off at a specific duty cycle.
Major section
Key Concepts
Duty Cycle: The percentage of one PWM period during which the signal is HIGH; 0% = always off, 100% = always on; controls LED brightness, motor speed, heater temperature, and servo position (within a specific pulse width range).
- PWM Resolution: The number of discrete duty cycle steps; ESP32 LEDC peripheral: 1-16 bit configurable; Arduino Uno: 8-bit (256 steps); higher resolution provides finer control but requires more timer bits.
Major section
How It Works: PWM Creates "Fake" Analog Voltage
You can't push continuously (analog), but you can push in pulses (digital).
- Example: 50% duty cycle = ON for 0.5 ms, OFF for 0.5 ms, repeat at 1kHz = motor sees ~2.5V average from a 5V supply.
Major section
Putting Numbers to It
At 5kHz PWM with 50% duty cycle, each period is $T = 1/5000 = 200$ μs.
- The signal is HIGH for $t_{on} = 0.5 \times 200 = 100$ μs and LOW for 100 μs.
Major section
Try It: PWM Motor Speed Control
Reverse the H-bridge only after the shaft response is understood, and finally sweep frequency to distinguish audible whine from excessive switching loss.
- The useful result is a bounded operating region, not one attractive speed reading.
Major section
Why Duty Cycle Matters for IoT
Energy Efficiency: LED at 50% duty cycle uses approximately 50% power, extending battery life.
- No Analog Hardware: Digital MCUs can control analog-like behavior without DAC chips.
- Key insight: The actuator "sees" the average voltage, smoothed by its physical response time.
Major section
Worked Example: Smart Greenhouse Ventilation Fan
A greenhouse uses a 12V DC fan (rated 0.5A at full speed) controlled by an ESP32 via a MOSFET driver.
- Choosing 20 kHz pushes the hum above hearing range, making the fan appear to run silently at any speed.
Deck summary
Key takeaways
A changing command number is not enough; the reviewer needs the drive timing, supply condition, and measured fan result.
- This runway does not prove motor life or make one switching rate safe for every load.
- It enables precise control of motor speed, LED brightness, and servo position using simple digital microcontroller pins without analog hardware.
- Duty Cycle: The percentage of one PWM period during which the signal is HIGH; 0% = always off, 100% = always on; controls LED brightness, motor speed, heater temperature, and servo position (within a specific pulse width range).
- You can't push continuously (analog), but you can push in pulses (digital).
Retrieval practice
Recall check

Motor Max says: answer from memory, then check your reasoning.
Q1You set PWM to 75% duty cycle at 5kHz on a 12V motor. What's the average voltage delivered?
Show answer
Answer: A Average voltage = Supply × Duty Cycle.
Print reference
Answers
Answer key.
- A · Average voltage = Supply × Duty Cycle.