ActuatorsServo
SG90 Micro Servo Motor
The classic 9g micro servo — small, cheap, and perfect for any hobby mechanism.
Wiring & code for
SG90 practical reference
The most common hobby servo in existence — 180° rotation, 9g weight, and near-universal library support across every microcontroller platform.
Key specifications
- Operating voltage: 4.8V - 6V DC (5V typical)
- Torque: ~1.8 kg·cm at 4.8V, ~2.2 kg·cm at 6V
- Rotation: ~180° on most units (some batches are limited to 120° — test before mounting)
- Speed: ~0.1 sec/60° at 4.8V, no-load
- Control signal: PWM, 50Hz, ~1ms-2ms pulse width (1.5ms = center)
- Weight: ~9g
Pinout and connection notes
Wire color order (GND-VCC-Signal vs Signal-VCC-GND) varies by manufacturer — check the connector keying, not just color, before powering on.
- GND: Ground — usually the brown or black wire
- VCC: Power, 4.8V-6V DC — usually the red wire
- Signal: PWM control input — usually the orange or yellow wire
Integration checklist
- Confirm the exact part number and breakout-board revision.
- Verify supply voltage, current demand, logic levels, and signal direction against the datasheet.
- Check controller pin assignments and bus address or interface mode against the example code.
- Power up with external loads disconnected, then test signals before full integration.
- If readings or communication fail, check power and ground first, then pin mapping, interface settings, and library initialization.
Troubleshooting and reproducibility
Record the board used, wiring, library/version, supply arrangement, and measured behavior. Use the selected board-specific wiring example as the source of truth. Never assume visually similar modules share identical voltage tolerance or pin order.