
In this article
A servo is a small motor that doesn't just spin: it turns to the angle you ask for and holds it. Inside there's a motor, a reduction gearbox, a potentiometer and a control circuit. That's why servos move robot arms and legs, steering, a smart bin's lid and a code lock. Three models are the most common in Arduino projects: the SG90, the MG90S and the MG996R.
How a servo works
A servo has three wires: power (usually red), ground (brown or black) and signal (orange or yellow). On the signal wire the Arduino sends a pulse 50 times a second, and the pulse's length (roughly 1 to 2 milliseconds) sets the angle. The Arduino Servo library does this for you: you write myServo.write(90) and the servo turns to 90 degrees.
The three models compared
| SG90 | MG90S | MG996R | |
|---|---|---|---|
| Weight | ~9 g | ~13 g | ~55 g |
| Size | Micro | Micro (same as SG90) | Standard |
| Gears | Plastic | Metal | Metal |
| Torque at 4.8 V | ~1.8 kg·cm | ~2.0 kg·cm | ~9.4 kg·cm |
| Torque at 6 V | – | ~2.2 kg·cm | ~11 kg·cm |
| Supply | 4.8–6 V | 4.8–6 V | 4.8–6 V (some up to 7.2 V) |
| Current under load | Small | Small | High: up to 2.5 A at stall |
The figures are approximate, from the makers' data, and can differ between batches and compatible versions. Torque says how hard the servo pushes: 1.8 kg·cm means it can hold 1.8 kg at 1 cm from the shaft, and half that at 2 cm. That is the stall torque, the limit: a steady load should stay well below it.
SG90: for learning and light jobs
The SG90 is the cheapest and lightest servo. It's ideal for first experiments: turning a sensor, opening a small lid, moving a pointer. Its weak point is the plastic gears: a knock, or forcing it round by hand, can break their teeth.
MG90S: the same size, much tougher
The MG90S is the size of an SG90 and fits the same mounts, but has metal gears. It's slightly stronger and far more durable. A good choice for a small robot arm, a four-legged robot or an antweight's lifter: anywhere the servo takes knocks or a constant load.
MG996R: when you need strength
The MG996R is a standard-size servo, several times stronger. It goes into robot arms, the steering of a big car, heavy lids and mechanisms. On the other hand, it's heavy and draws a lot of current under load. If you need even more strength, there are 20–30 kg·cm digital servos too (the DS3218, for example).
180-degree and continuous rotation servos
An ordinary servo turns through about 180 degrees and holds the angle you set. There are also continuous rotation (360°) versions: they don't hold an angle but keep turning, and the signal sets their speed and direction. Such a servo works as a small robot's wheel motor, but it can no longer hold a precise angle. Check which one you need when you buy: the product name usually says 180° or 360°.
Horns and mounting
A servo's box holds several plastic horns: single-sided, double-sided and cross-shaped. A horn fits onto the shaft and is fixed with a small screw, and you attach the arm, steering link or lid to it. Set the servo to its middle position (90°) first, then fit the horn: that way the servo has equal travel either side. A servo tester makes centring easy: it centres and sweeps a servo without an Arduino. Fix the servo to the chassis by its mounting ears, not with glue: it makes replacing it easier.
Power: the most common mistake
- One SG90 usually runs from the Arduino's 5V pin, but several servos or an MG996R overload the board: the Arduino restarts or the servo jitters.
- For several servos use a separate 5–6 V supply with enough current (2–3 A for each big servo).
- Always connect the supply's "−" to the Arduino's GND, or the signal won't work.
- For many servos a PCA9685 servo driver is handy: it drives 16 servos over two wires.
Which one to choose
- Learning, first projects: SG90.
- A small robot that takes knocks: MG90S.
- An arm, steering, a heavy mechanism: MG996R.
Try them in a project
Control a servo with a knob teaches the basics, while a smart bin and a code lock show real uses. An MG90S also drives the lifter in our combat robot. Servos are under motors and servos, drivers under motor drivers, and servo extension and Y-cables under RC connectors and wires.
Prices and stock change often, so articles leave them out: the product page always has them.
Questions and answers
Can I replace an SG90 with an MG90S?
Yes. The size and mounting are the same and the code doesn't change. The MG90S draws a little more current and is heavier, but it has metal gears.
Can I power an MG996R from the Arduino's 5V?
No. At stall an MG996R draws up to 2.5 A, which makes the Arduino restart. Use a separate 5–6 V supply and connect its "−" to the Arduino's GND.
Why does my servo jitter?
Most often it's the power: a weak supply or no shared ground. It may also be pushing against something at the end of its travel. Narrow the range or use a stronger supply.