Servo Motor (SG90)
A small motor that holds a commanded angle from 0° to 180°.
How it works
A hobby servo (like the SG90) is a geared motor with built-in position control. It has three wires — power, ground, and signal — and moves to an angle you command, then holds it there.
You set the angle with a PWM control pulse, but you don't have to generate it by hand: the Arduino Servo library does it for you. servo.attach(pin) once, then servo.write(angle) with 0–180.
Pins
- Signal (orange/yellow)
- To a digital pin.
- VCC (red)
- To 5V (use an external 5V supply for bigger servos).
- GND (brown/black)
- To GND (share ground with the Arduino).
Ratings
- Voltage
- 4.8–6 V
- Range
- ~0–180°
- Library
- Built-in Servo library
Tips
- Small servos run off the Uno's 5V for light loads; power bigger ones separately and share ground.
- If it jitters, it's usually a power issue — use a dedicated 5V supply.