EQ-19 · Servo motor · Full kit
Center the servo and make one small move
A compact PWM-controlled SG90 servo with horns and screws for positioning a linkage or sensor mount.

How to use it
You’ll need: ESP32-S3, SG90 servo, jumper wires, and a regulated 5 V supply that can handle servo startup current.
Connections
This example uses one part at a time on the MoloWorks ESP32-S3. If a course uses different GPIO pins, follow that course’s wiring and code together. Disconnect USB and any external power before changing wires.
| On the part | Connect to |
|---|---|
| Servo power lead | Regulated 5 V supply + |
| Servo ground lead | 5 V supply − and ESP32 GND |
| Servo signal (PWM) lead | ESP32 GPIO5 |
- Secure the servo body and leave it unloaded. With power disconnected, verify the supplied servo’s power, ground, and signal leads from its markings or documentation before wiring; do not guess from appearance. Keep the 5 V positive lead off the ESP32 headers; only the grounds are joined.
- Run the example. It sends 50 Hz control pulses near the center position. After centering, test a small change before fitting the horn to a linkage or bracket.
- If the servo buzzes, binds, or resets the board, switch off the motor supply. Check for a jam, the supply capacity, and the common ground before changing pulse limits.
MicroPython example
Run this on the board with your MicroPython editor. Set up the ESP32-S3 first if you don’t have a working connection.
from machine import Pin, PWM
from time import sleep_ms
pwm = PWM(Pin(5), freq=50, duty_ns=1500000)
try:
sleep_ms(800)
pwm.duty_ns(1600000)
sleep_ms(800)
pwm.duty_ns(1500000)
sleep_ms(800)
finally:
pwm.deinit()What to look for: The shaft centers, moves slightly and returns. Disconnect motor power before fitting the horn or changing the wiring.
AI prompt
Copy the prompt and replace any brackets with details from your kit. Check the suggested wiring against the labels on your parts before applying power.
Center the servo and make one small move
I have the MoloWorks SG90 on a separate regulated 5 V supply with ground shared with a MicroPython ESP32-S3. The verified signal lead is on GPIO5. Give me a 50 Hz PWM test near 1.5 ms that makes one small unloaded move and returns. Explain how to stop PWM and check supply sag or binding, without assuming exact angles or forcing either end stop.