Learning Rooms/△ Level 2 · Builder/Robotics and control
Servo Motors, how do they work?
The Engineering Mindset · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Explain how a hobby servo reads an angle from the width of a pulse.
- Convert between pulse width and angle with a linear mapping.
- Calculate the duty cycle of a 50 Hz servo signal.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
A servo treats a 1.0 ms pulse as 0° and a 2.0 ms pulse as 180°. What pulse width means 90°?
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 shows a square wave whose high time is the duty cycle times the period. At 50 Hz the period is 20 ms, so 5% duty gives a 1.0 ms pulse, 7.5% gives 1.5 ms and 10% gives 2.0 ms: the pulse widths a hobby servo reads as 0°, 90° and 180° in the common mapping.
3.Watch, actively
An animated explainer of what is inside a hobby servo and how it turns to, and holds, the angle it is told.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Look for the parts inside the servo, especially the position sensor, and how the control circuit compares the pulse with the measured angle.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
A hobby servo is a small motor, a gearbox, a position sensor and a control circuit in one box. The circuit reads the angle requested by a pulse, compares it with the measured angle, and drives the motor until the two match: feedback inside a component.
What the video covers (our own note, written when we verified it): An animated explainer of what is inside a hobby servo and how it turns to, and holds, the angle it is told.
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 hobby servo is told 1.0 ms means 0° and 2.0 ms means 180°, in a straight line between. It receives a pulse 1.85 ms long. What angle does it turn to, in degrees?
Practice 2
A servo signal has a 20 ms period and a 1.8 ms pulse. What is the duty cycle, in percent?
Practice 3
What carries the angle command in a hobby servo signal?
Practice 4
You send a 2.6 ms pulse to a servo whose range is 1.0–2.0 ms. What is the risk?
6.Build something with it
Follow-up project
Write a Python function servo_pulse(angle) that clamps the angle to 0–180°, returns the pulse width in ms, and a second function that returns the duty cycle in % at 50 Hz. Test both at 0°, 90°, 180° and at −20° and 200°.
Where this video lives
- Talking to a servo in milliseconds · Level 2, week 24
In the course catalogue: ROB-220 Embedded intelligence
The video is by The Engineering Mindset, 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.