PWM Explained: How Robots Control Motor Speed
A robot does not turn the power down like a dimmer. It switches it fully on and off, very fast, and the on-time sets the speed.
The robot repeats this loop many times a second. Tap a step to pause on it.
PWM stands for pulse width modulation. The controller switches the motor supply on and off hundreds or thousands of times a second. The share of each cycle that is "on" is called the duty cycle.
A motor is slow to react, so it responds to the average. 25% on feels like a quarter of the power, 90% on feels like nearly full power. Nothing has to be wasted as heat in a dimmer-style resistor.
One cheap switch and one signal wire give smooth speed control from slow to full, with little wasted energy.
You would need a variable resistor that burns the extra power as heat, or a motor that is only ever full speed or off.
Switching too slowly makes a motor buzz or judder, and fast edges can add electrical noise. The right frequency depends on the motor.
How does PWM make a motor run at half speed?
Go deeper in the Atlas
Motors and Mechanics
- Gears Explained
- Servo Motor Explained
- How a Robot Arm Picks Up a Cup (6 Motors, Explained Simply)
- Why Are Robots So Good at Repeating?
- Harmonic Drive
- Micro Robots
- Stewart Platform
- Snake Robots
- Inverse Kinematics
- Degrees of Freedom
- Torque vs Speed
- PWM Explained
- Stepper Motor Explained
- Why Robot Motors Get Hot Even When Holding Still
- Delta Robot Explained
- SCARA Robot Arm