ESP32 Starter Kit
9.2.15 Project 12: Servo
1. Description
This servo features high performance and high precision with a maximum rotation angle of 180°. Weighting only 9g,
it is perfectly suitable for any mini device in multiple occasions. What’s more, it enjoys short startup time, low noise
and strong stability.
2. Working Principle
Angle range: 180° (360°, 180° and 90°)
Drive voltage: 3.3V or 5V
Pin: Three wires
GND: Grounded(brown)
VCC: A red pin that connects to a +5v (3.3V) power
S: A orange signal pin that controlled via PWM signal
Control Principle: The rotation angle is controlled via duty cycle of PWM. Theoretically, standard PWM cycle is
20ms(50Hz), so pulse width should distribute within 1ms~2ms. However, the actual pulse width reaches 0.5ms~2.5ms,
which corresponds to 0°180°. Pay attention that, for the same signal, the rotation angle may vary from servo brands.
9.2. Scratch Project 223