Actuators & Control · Study deck
Servo Motors: Calibration and Applications
A pan-tilt mount turns two servo angles into a camera view.
Motor Max is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain: If a vent linkage needs 0.12 N-m, the ideal margin is only 0.294 / 0.12 = 2.45x before friction, off-axis loading, supply-voltage drop, and gear wear.
- Explain: If the command corresponds to 90 degrees and the feedback reports 84 degrees, the loop sees a +6 degree error and drives the motor in the direction that shrinks the error.
- Explain: They replace the hobby servo's potentiometer with an encoder or resolver, use a brushless motor plus a dedicated servo drive, and usually close nested torque-current, velocity, and position loops.
Major section
Pan-Tilt Camera Mount
A common IoT application is a pan-tilt camera mount.
- The software clamps protect the intended 0-180 and 0-90 degree ranges; commissioning must still verify that those limits stay clear of the mechanism's physical stops.
- Limits: each 10-degree step is clamped; TILT_MAX 90 stops backward-looking; attach(pin, 500, 2400) bounds pulse width.
Major section
Deep Dive: Calibration, Deadband, and Servo Control Loops
A hobby servo command is a position pulse, not a motor-power duty cycle.
- The 20 ms frame repeats the command; the high-pulse width carries the angle.
- Sending a 50% duty-cycle signal would hold the line high for 10 ms in each frame, far outside the normal command range.
Major section
Deep Dive: Calibration, Deadband, and Servo Control Loops (continued)
A 1.0 ms pulse in a 20 ms frame is only 5% duty cycle, 1.5 ms is 7.5%, and 2.0 ms is 10%.
- Calibration is where a bench demo becomes a reliable mechanism.
- If one servo's safe travel is 1050 microseconds to 1950 microseconds, the usable span is 900 microseconds.
- Torque and current need the same engineering treatment.
Major section
Deep Dive: Calibration, Deadband, and Servo Control Loops (continued)
If it overshoots to 92 degrees, the sign changes and the driver corrects back.
- Mapping that to 0-180 degrees gives 900 / 180 = 5 microseconds per degree, so a 45 degree command is approximately 1050 + 45 x 5 = 1275 microseconds.
- A 3 kg-cm servo can ideally hold about 3 kg at 1 cm, or 1 kg at 3 cm, before losses.
- Industrial servos use the same feedback idea at a tighter scale.
Major section
Deep Dive: Calibration, Deadband, and Servo Control Loops (continued)
In SI units that is roughly 3 x 9.81 N x 0.01 m = 0.294 N-m.
- If a vent linkage needs 0.12 N-m, the ideal margin is only 0.294 / 0.12 = 2.45x before friction, off-axis loading, supply-voltage drop, and gear wear.
- Limits: 3 kg-cm is 0.294 N-m: only 2.45x over a 0.12 N-m linkage.
- If the command corresponds to 90 degrees and the feedback reports 84 degrees, the loop sees a +6 degree error and drives the motor in the direction that shrinks the error.
Major section
Deep Dive: Calibration, Deadband, and Servo Control Loops (continued)
Too wide a deadband feels sloppy; too narrow a deadband can hunt when the signal is noisy or the linkage is springy.
- They replace the hobby servo's potentiometer with an encoder or resolver, use a brushless motor plus a dedicated servo drive, and usually close nested torque-current, velocity, and position loops.
- The current loop controls torque, the velocity loop shapes shaft speed, and the position loop removes final error.
- The hobby servo hides this behind a three-wire pulse interface; the industrial servo exposes tuning so machine axes can manage stiffness, following error, and response.
Major section
Smart Vent Zone-Heat Design
This also reduces noise.
- The system should integrate with a smart thermostat via Wi-Fi and run on mains power (USB adapter at each vent).
- A large metal-gear servo is overkill (11 kg-cm vs 3 kg-cm needed) and exceeds the local USB power limit.
- This keeps cable runs under 3 meters for PWM signal integrity and avoids putting 8 separate devices on Wi-Fi.
Deck summary
Key takeaways
A common IoT application is a pan-tilt camera mount.
- A hobby servo command is a position pulse, not a motor-power duty cycle.
- A 1.0 ms pulse in a 20 ms frame is only 5% duty cycle, 1.5 ms is 7.5%, and 2.0 ms is 10%.
- If it overshoots to 92 degrees, the sign changes and the driver corrects back.
- In SI units that is roughly 3 x 9.81 N x 0.01 m = 0.294 N-m.
Retrieval practice
Recall check 1 of 4

Motor Max says: answer from memory, then check your reasoning.
Q1A standard hobby servo receives a 1.5ms pulse at 50 Hz. What position will the servo move to?
Show answer
Answer: B Answer: B) 90 degrees (center position).
Q2A high-torque servo has a stall current of 2.5A. If you are building a 3-servo robotic arm, what minimum power supply current rating do you need?
Show answer
Answer: C
Retrieval practice
Recall check 2 of 4

Motor Max says: answer from memory, then check your reasoning.
Q3A maker sends a hobby servo a steady 1.5 ms pulse every 20 ms and it holds mid-position, resisting a gentle push. What is the control mechanism, and how does an industrial servo differ?
Show answer
Answer: A A hobby servo encodes target angle in the high-pulse width, compares it with internal position feedback, and drives the motor to reduce error.
Retrieval practice
Recall check 3 of 4

Motor Max says: answer from memory, then check your reasoning.
Q4A smart vent system uses a standard hobby servo (0-180 degrees) to adjust airflow. The design requires 270 degrees of rotation to fully open and close the damper. What is the best solution?
Show answer
Answer: C A gear reduction mechanism is the correct engineering solution.
Retrieval practice
Recall check 4 of 4

Motor Max says: answer from memory, then check your reasoning.
Q5Three high-torque servos (2.5A stall each) are powered from the ESP32's 5V pin (500mA max). The servos jitter and the ESP32 randomly resets. What's wrong?
Show answer
Answer: C This is a classic beginner mistake.
Q6Complete the code to control a servo motor position:
Show answer
Answer: A Servos use 50 Hz PWM.
Print reference
Answers
Answer key.
- B · Answer: B) 90 degrees (center position).
- C
- A · A hobby servo encodes target angle in the high-pulse width, compares it with internal position feedback, and drives the motor to reduce error.
- C · A gear reduction mechanism is the correct engineering solution.
- C · This is a classic beginner mistake.
- A · Servos use 50 Hz PWM.