> Source: https://www.tinkered.ai/components/servo-mg996r-straight (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/servo-mg996r-straight. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# MG996R Servo · Straight Horn

TowerPro's metal-gear servo, 11 kg·cm at 6V from a standard 50Hz servo pulse, fitted with a single straight arm.

Source page: https://www.tinkered.ai/components/servo-mg996r-straight
Datasheet: https://www.electronicoscaldas.com/datasheet/MG996R_Tower-Pro.pdf

## In short

The MG996R is TowerPro's metal-gear standard servo: 11 kg·cm of stall torque at 6 V, 0.15 s per 60 degrees, on a 4.8 to 6.6 V supply that must deliver its 1,400 mA stall current (TowerPro MG996R spec page). Orange is the signal to a PWM-capable pin, red and brown go to the servo's own 5 to 6 V supply, and that supply's ground joins the microcontroller's ground.

The MG996R is a high-torque hobby servo from TowerPro built around a metal gear train, which the maker has upgraded to 6061-T6 aluminium gears and shaft. It runs on 4.8 to 6.6 V and is commanded by a single servo pulse wire, which makes it a stronger, larger step up from 9 g micro servos such as the SG90. This straight-horn variant ships with a single-arm horn suited to push-pull linkages and RC-style steering.

Torque and speed both rise with supply voltage. TowerPro rates stall torque at 9.4 kg·cm at 4.8 V and 11 kg·cm at 6 V, and speed at 0.19 s per 60 degrees at 4.8 V and 0.15 s at 6 V, with a 1 µs dead band. The body measures 40.7 x 19.7 x 42.9 mm and weighs 55 g.

The catch with that torque is current. TowerPro lists 170 mA running with no load and 1,400 mA at stall. That current profile, more than the simple pulse interface, decides most of the wiring for this servo.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Common GND between the servo's supply and the board is mandatory: the signal is measured against it.
- Do: SIG goes to a PWM-capable pin (on an Uno: D3, D5, D6, D9, D10, D11; with the Servo library any pin works, but keep to these).
- Do: Use the Servo library: attach(pin), write(angle) 0-180, or writeMicroseconds(us). The MG996R's usable pulse range is about 500-2500 µs, neutral 1500 µs; attach(pin, 500, 2500) uses all of it, the library default (544/1000-2000 µs depending on the core) gives a little less travel.
- Do: A 3.3 V signal (ESP32, ESP8266, Pico, R4 boards) drives it fine; the servo's supply still has to be its own 5-6 V.
- Do: A 470-1000 µF electrolytic across the servo supply, close to the servo, absorbs the start current; recommended with more than one servo.
- Do: Power it from 4.8 to 6.6 V, the range TowerPro rates
- Do: Budget about 1.4 A per servo at stall
- Do not power an MG996R from the board's 5V or 3V3 pin, not even one: its stall current is far beyond USB (0.5 A) and the board's regulator, and the board resets or browns out each time the servo starts.
- Do not omit the common ground between the servo supply and the board.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| VCC | VCC (4.8-7.2V) · 4.8 to 6.6 V | power in |
| GND | GND | power in |
| SIG | PWM | input |

## Wiring

### Arduino Uno

| MG996R Servo · Straight Horn | Arduino Uno | Note |
| --- | --- | --- |
| GND | GND | and to the separate supply's −: the servo, its supply and the board share one ground |
| SIG | D3 |  |
| VCC | a separate 4.8 to 6.6 V supply (4 × AA), never the board's 5V pin | the MG996R draws about 1.4 A at stall |

### ESP32 DevKit V1

| MG996R Servo · Straight Horn | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| GND | GND | and to the separate supply's −: the servo, its supply and the board share one ground |
| SIG | GPIO13 (D13) |  |
| VCC | a separate 4.8 to 6.6 V supply (4 × AA), never the board's 5V pin | the MG996R draws about 1.4 A at stall |

### Raspberry Pi Pico

| MG996R Servo · Straight Horn | Raspberry Pi Pico | Note |
| --- | --- | --- |
| GND | GND | and to the separate supply's −: the servo, its supply and the board share one ground |
| SIG | GP0 |  |
| VCC | a separate 4.8 to 6.6 V supply (4 × AA), never the board's 5V pin | the MG996R draws about 1.4 A at stall |

## Code

### STM32 Blue Pill (F103C8)

```cpp
// MG996R Servo · Straight Horn on STM32 Blue Pill (F103C8): wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-straight
#include <Arduino.h>
#include <Servo.h>   // the STM32 core's own Servo: no lib_deps
Servo servo;

void setup() { servo.attach(PA8); }
void loop() {
  servo.write(0);   delay(1000);
  servo.write(180); delay(1000);
}
```

Compiled for stm32:stm32:bluepill_f103c8 on 2026-10-30.

### Arduino Uno

Libraries: arduino-libraries/Servo

```cpp
// MG996R Servo · Straight Horn on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-straight
#include <Servo.h>

// The MG996R draws up to about 1.4 A at stall: power it from its own 5 to 6 V supply,
// never from the board's 5V pin, and join that supply's GND to the board's GND.
const int SERVO_PIN = 3;
Servo servo;

void setup() {
  servo.attach(SERVO_PIN);
}

void loop() {
  for (int angle = 0; angle <= 180; angle += 2) {
    servo.write(angle);
    delay(15);
  }
  for (int angle = 180; angle >= 0; angle -= 2) {
    servo.write(angle);
    delay(15);
  }
}
```

Compiled for arduino:avr:uno on 2026-10-30.

### ESP32 DevKit V1

Libraries: madhephaestus/ESP32Servo

```cpp
// MG996R Servo · Straight Horn on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-straight
#include <ESP32Servo.h>

// The MG996R draws up to about 1.4 A at stall: power it from its own 5 to 6 V supply,
// never from the board's 5V pin, and join that supply's GND to the board's GND.
const int SERVO_PIN = 13;
Servo servo;

void setup() {
  servo.attach(SERVO_PIN, 500, 2400);
}

void loop() {
  for (int angle = 0; angle <= 180; angle += 2) {
    servo.write(angle);
    delay(15);
  }
  for (int angle = 180; angle >= 0; angle -= 2) {
    servo.write(angle);
    delay(15);
  }
}
```

Compiled for esp32:esp32:esp32 on 2026-10-30.

### Raspberry Pi Pico

```cpp
// MG996R Servo · Straight Horn on Raspberry Pi Pico: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-straight
#include <Servo.h>

// The MG996R draws up to about 1.4 A at stall: power it from its own 5 to 6 V supply,
// never from the board's 5V pin, and join that supply's GND to the board's GND.
const int SERVO_PIN = 0;
Servo servo;

void setup() {
  servo.attach(SERVO_PIN);
}

void loop() {
  for (int angle = 0; angle <= 180; angle += 2) {
    servo.write(angle);
    delay(15);
  }
  for (int angle = 180; angle >= 0; angle -= 2) {
    servo.write(angle);
    delay(15);
  }
}
```

Compiled for rp2040:rp2040:rpipico on 2026-10-30.

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Supply voltage | 4.8 to 6.6 V | TowerPro MG996R spec page |
| Interface | GPIO pulse timing | Tinkered component registry |
| Dimensions | 40.7 × 19.7 × 42.9 mm | Tinkered component registry |
| Weight | 55 g | Tinkered component registry |

## Circuit notes

- Power the servo from a dedicated 5 to 6 V supply sized for its 1,400 mA stall current (TowerPro). Do not run it from the Arduino onboard 5V pin or USB, which brown out and reset the board.
- Tie the external supply ground to the Arduino ground so the signal shares a common reference. Without a common ground the servo jitters or ignores commands.
- Feed the orange signal wire a standard servo pulse every 20 ms (50 Hz), 1.5 ms being center. The input accepts 3.3 V and 5 V logic and draws negligible current.
- Wire colours: red is VCC (4.8 to 6.6 V), brown is GND and orange is the signal.
- Add a 470 to 1000 µF electrolytic capacitor across the servo power rails near the connector to absorb start-up current spikes that would otherwise sag the supply.
- TowerPro rates the MG996R at 4.8 to 6.6 V, 170 mA with no load and 1.4 A at stall.

## Common mistakes

- **Powering it from the Arduino 5V pin.** TowerPro rates the MG996R's stall current at 1,400 mA, far beyond what an Arduino regulator or a USB port can supply. The result is voltage sag and random resets. Use a separate 5 to 6 V supply.
- **Forgetting the common ground.** When the servo runs from its own supply, its ground must still connect to the Arduino ground. Skip this and the signal has no shared reference, so the servo twitches or does not respond.
- **Assuming every unit reaches 180 degrees.** Travel depends on the pulse range: the Servo library's defaults give less than the 500 to 2,500 µs the studio uses for 0 to 180 degrees. Pushing past a unit's mechanical limit makes it buzz and draw stall current against the end stop.
- **Ignoring stall heat and current.** Holding a heavy load against gravity keeps the motor near stall, drawing up to 1,400 mA continuously and heating the gearbox. Balance the load mechanically or detach the servo between moves.
- **No bulk capacitor on the power rail.** Each move produces an inrush that can dip a shared supply and glitch sensors or the microcontroller. A missing capacitor across the servo rails is a frequent cause of erratic behaviour in multi-servo builds.

## Questions

### What are the MG996R wire colours?

Orange is the signal, red is V+ and brown is ground. Red and brown go to a 4.8 to 6.6 V supply (TowerPro MG996R spec page), orange goes to a PWM-capable pin, and the supply's ground also connects to the microcontroller's ground.

### What pulse range should I use for the MG996R with the Arduino Servo library?

Use attach(pin, 500, 2500) and write(0) to write(180), or writeMicroseconds() directly; 1,500 µs is center, repeated every 20 ms. The library's default limits give a little less travel. Back off the range if the servo buzzes at either end.

### Can I control an MG996R from 3.3V logic?

Yes, the signal input accepts a 3.3 V pulse from an ESP32, ESP8266, Pico or UNO R4. What 3.3 V boards cannot do is power it: the servo needs 4.8 to 6.6 V and up to 1,400 mA at stall (TowerPro MG996R spec page) from a supply of its own.

### My MG996R does nothing when I upload the sketch. What should I check?

Check that the servo supply is on and between 4.8 and 6.6 V (TowerPro MG996R spec page), that its ground connects to the board's ground, and that orange goes to the pin your sketch attaches. A servo that twitches once and stops usually means the supply sags under its 1,400 mA stall current.

### Should I use an MG996R or an SG90?

Pick the SG90 for light jobs: 9 g, 1.8 kg·cm at 4.8 V, plastic gears (TowerPro SG90 spec page). Pick the MG996R when the mechanism has weight to move: 55 g, 11 kg·cm at 6 V, metal gears (TowerPro MG996R spec page), at the price of a dedicated supply.

### What is the straight horn on the MG996R for?

The single arm turns rotation into a push-pull motion through a rod or clevis, as on RC steering and throttle linkages. Fitting the rod in an outer hole gives more travel and less force, an inner hole the opposite.

## Related parts

- [PCA9685 16-Channel Servo Driver](https://www.tinkered.ai/components/pca9685-servo-driver.md): drives it
- [2 x AA Battery Holder](https://www.tinkered.ai/components/battery-2xaa.md): wired with it in its circuit
- [SG90 Micro Servo](https://www.tinkered.ai/components/servo-sg90.md): same job: a positional servo
- [MG996R Servo · Cross Horn](https://www.tinkered.ai/components/servo-mg996r-cross.md): same job: a positional servo
- [MG996R Servo · Star Horn](https://www.tinkered.ai/components/servo-mg996r-star.md): same job: a positional servo
- [MG996R Servo · Round Horn](https://www.tinkered.ai/components/servo-mg996r-round.md): same job: a positional servo

## Try it

Tinkered simulates the MG996R Servo · Straight Horn in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
