> Source: https://www.tinkered.ai/components/servo-mg996r-star (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-star. 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 · Star Horn

A metal-gear positional RC servo that delivers 11 kg·cm of stall torque at 6V under standard 50Hz servo control, with a star horn.

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

## In short

The MG996R is a metal-gear hobby servo from TowerPro with 11 kg·cm of stall torque at 6 V, a 4.8 to 6.6 V supply range and a 1,400 mA stall current (TowerPro MG996R spec page). Connect its orange signal wire to a PWM-capable pin and its red and brown wires to a separate 5 to 6 V supply, then join that supply's ground to the microcontroller's ground.

The MG996R is a high-torque hobby servo from TowerPro, described by its maker as an upgraded MG995 with a new control PCB and IC and with improved gearing and motor for better dead band and centering. It is a positional servo, and this variant ships with a star-shaped horn for attaching linkages, arms and brackets.

Control follows the standard RC servo convention: a pulse repeated every 20 ms (50 Hz) whose width sets the target angle, 1.5 ms holding the center. The studio maps 0 to 180 degrees onto 500 to 2,500 µs. TowerPro rates it at 9.4 kg·cm at 4.8 V and 11 kg·cm at 6 V, moving 60 degrees in 0.19 s at 4.8 V and 0.15 s at 6 V, with a 1 µs dead band.

It runs on 4.8 to 6.6 V. Because it is a geared actuator, its current climbs with mechanical load: TowerPro lists 170 mA running with no load and 1,400 mA at stall. The unit measures 40.7 x 19.7 x 42.9 mm and weighs 55 g.

## 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 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 · Star 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 · Star 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 · Star 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 · Star Horn on STM32 Blue Pill (F103C8): wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-star
#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 · Star Horn on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-star
#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 · Star Horn on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-star
#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 · Star Horn on Raspberry Pi Pico: wiring and a free simulation at https://www.tinkered.ai/components/servo-mg996r-star
#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 rather than the Arduino onboard 5V; TowerPro's 1,400 mA stall current browns out or resets a board powered over USB.
- Tie the servo supply ground to the controller ground so the pulse shares a common reference.
- The signal line only takes the control pulse and draws little current, so it connects directly to a PWM-capable output pin, at 3.3 V or 5 V logic.
- Add a bulk capacitor (470 to 1000 µF) across the servo VCC and GND to absorb the inrush when the motor starts moving.
- Do not exceed TowerPro's 6.6 V maximum on VCC.
- 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.** The MG996R draws up to 1,400 mA at stall according to TowerPro, far beyond what a USB-powered board's regulator supplies. Running it off the 5V pin causes sag, glitches and repeated resets. Use a separate supply sized for the load.
- **Forgetting the common ground.** When the servo runs on its own supply, the control pulse has no valid reference unless that supply's ground is also connected to the controller ground. Without it the servo jitters or ignores commands.
- **Expecting continuous rotation.** This is a positional servo, not a continuous-rotation one. Pulse widths make it seek and hold an angle; they do not spin it endlessly.
- **Commanding angles past the mechanical stops.** Pulses beyond what a unit can reach drive it into its end stops, where it buzzes, stalls and draws peak current. Keep commanded pulses within the travel your servo actually has.
- **Skipping the bulk capacitor.** The current surge when the motor starts pulls the rail down and can upset nearby logic. Without a bulk capacitor across the servo supply, multi-servo builds see intermittent resets and erratic motion.

## Questions

### How many degrees does the MG996R rotate?

TowerPro's spec list gives no travel angle. The studio drives it from 0 to 180 degrees with pulses of 500 to 2,500 µs, 1.5 ms at center; a narrower pulse range such as 1 to 2 ms gives less travel. Check each unit's end points with writeMicroseconds() before mounting a load.

### How much torque does the MG996R have?

TowerPro rates its stall torque at 9.4 kg·cm at 4.8 V and 11 kg·cm at 6 V (TowerPro MG996R spec page), about 0.92 and 1.08 N·m. Stall torque is the maximum it can push before stopping, so plan working loads well below it.

### How many MG996R servos can I run from one power supply?

Count each servo's stall current, 1,400 mA (TowerPro MG996R spec page), because several can start at the same moment. Three servos want a 5 to 6 V supply of roughly 4 to 5 A, with a 470 to 1000 µF capacitor near the servos and a ground shared with the controller.

### Can I run an MG996R on a 7.4V 2S LiPo?

Not directly. TowerPro's operating range ends at 6.6 V (TowerPro MG996R spec page), and a 2S pack sits at 7.4 V nominal and 8.4 V fully charged. Put a UBEC or regulator set to 5 to 6 V between the pack and the servo.

### Why does my ESP32 or Arduino reset when the MG996R moves?

The servo is powered from the board. Each start pulls toward its 1,400 mA stall current (TowerPro MG996R spec page), the board's rail collapses and the chip resets. Move the servo to its own 5 to 6 V supply and keep only signal and ground connected to the board.

### What is the star horn on the MG996R best for?

Its multiple arms give several attachment points at different radii, which suits brackets and linkages that need more than one fixing. It fits on the same output spline as the cross, round and straight horns.

## Related parts

- [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 · Straight Horn](https://www.tinkered.ai/components/servo-mg996r-straight.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 · Round Horn](https://www.tinkered.ai/components/servo-mg996r-round.md): same job: a positional servo
- [Arduino Uno](https://www.tinkered.ai/components/arduino-uno.md): the board its circuit is wired to

## Try it

Tinkered simulates the MG996R Servo · Star 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.
