PWM Signal in Robotics
202 words · 2 min read · 1 source
Pulse-Width Modulation (PWM) is the standard technique for controlling motor speed, LED brightness, and servo position. Found in every microcontroller and every robot.
Pulse-Width Modulation (PWM) is a method of encoding a continuous value (like a motor power level) into a digital signal by rapidly switching it on and off. The fraction of time the signal is 'on' — called the duty cycle — represents the encoded value.
What is it?
Pulse-Width Modulation (PWM) is a method of encoding a continuous value (like a motor power level) into a digital signal by rapidly switching it on and off. The fraction of time the signal is 'on' — called the duty cycle — represents the encoded value.
How it works
A PWM signal has two parameters: frequency (cycles per second) and duty cycle (% of each cycle the signal is HIGH). At 50% duty cycle, the average voltage is half the supply. A motor connected via PWM through a driver runs at half its top speed. Frequencies range from 1 kHz to 50 kHz depending on application — too low causes audible whine, too high stresses the driver.
Real-world example
Every Arduino pin marked with a tilde (~) supports PWM. RC servos use a 50 Hz PWM where pulse width 1–2 ms maps to position 0–180°. ESCs for drones use 50–500 Hz PWM (now increasingly DShot digital signals).
Why it matters for robotics
PWM is the universal interface between digital controllers and analog actuators. You cannot build a robot that moves without using PWM somewhere.
See also
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
PWM (Pulse Width Modulation)
PWM is a trick for making a digital chip — which can only turn things fully on or fully off — behave as if it'…
ConceptMotor Driver in Robotics
A motor driver is an electronic circuit that lets a low-power microcontroller control a high-power motor. The …
ConceptServo motor
A servo motor is a small motor that knows its own angle — you tell it where to point, and it goes there and ho…
Last updated · 2026-05-21
Spotted something off? Report an error →