Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Motors & Motion
  4. ›Servo Motors Guide
Step 4 of 16 in Motors and robotsPart of a learning path.
Next

Component guide · Beginner · 3 min read

Servo Motors Guide

SG90 vs MG90S vs MG996R, Wiring and Code

By Geekobot Learning Team · Updated 24 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerHow a servo motor worksSG90 vs MG90S vs MG996RWiring a servo to Arduino or ESP32Running many servos: power budget and PCA9685Positional vs continuous-rotation servosTry itCommon mistakesFAQsParts and next steps
Short answer

A hobby servo is a small motor with a gearbox, position sensor and control circuit that moves to an angle you set with a pulse signal. A 1.5 ms pulse every 20 ms centres it; about 1 ms and 2 ms move it toward each end. The SG90 suits light loads, the MG996R lifts roughly five times more. Power servos from a separate 5 to 6 V supply.

Key specs at a glance

Signal
50 Hz PWM: 1 to 2 ms pulse (often 0.5 to 2.5 ms for full 180°)
Wires
Brown/black = GND, red = V+, orange/yellow/white = signal
SG90
4.8 to 6 V, about 1.8 kg·cm, plastic gears, 9 g
MG90S
4.8 to 6 V, about 2.2 kg·cm, metal gears, 13 g
MG996R
4.8 to 7.2 V, about 9 to 11 kg·cm, metal gears, stall current up to about 2.5 A
Rotation
180° positional, or 360° continuous-rotation versions
01

How a servo motor works

Inside a hobby servo, a DC motor turns a gear train connected to the output shaft and to a potentiometer. The control board compares the potentiometer's position with the pulse width it receives and drives the motor until they match. That closed loop is why a servo holds its angle under load, and also why it draws current constantly when pushing against something.

02

SG90 vs MG90S vs MG996R

SG90MG90SMG996R
TorqueAbout 1.8 kg·cmAbout 2.2 kg·cmAbout 9.4 kg·cm at 4.8 V, 11 kg·cm at 6 V
GearsPlasticMetalMetal
Weight9 g13 g55 g
Plan per servo0.5 to 0.7 A peak0.7 A peakUp to 2.5 A stall
Best forPan-tilt, light flaps, learningRobot arms, small legsRobot arms, steering, heavy loads
Torque
SG90:
About 1.8 kg·cm
MG90S:
About 2.2 kg·cm
MG996R:
About 9.4 kg·cm at 4.8 V, 11 kg·cm at 6 V
Gears
SG90:
Plastic
MG90S:
Metal
MG996R:
Metal
Weight
SG90:
9 g
MG90S:
13 g
MG996R:
55 g
Plan per servo
SG90:
0.5 to 0.7 A peak
MG90S:
0.7 A peak
MG996R:
Up to 2.5 A stall
Best for
SG90:
Pan-tilt, light flaps, learning
MG90S:
Robot arms, small legs
MG996R:
Robot arms, steering, heavy loads
03

Wiring a servo to Arduino or ESP32

Connect the signal wire to a PWM-capable pin, the brown wire to ground, and the red wire to a 5 to 6 V supply. One SG90 can run from an Arduino's 5 V pin for testing, but two or more, or any MG996R, need a separate supply, such as a 5 V 2 A adapter or a buck converter. Always connect the supply ground to the board ground.

The servo signal is fine at 3.3 V, so ESP32 and Pico boards drive servos directly. On the ESP32, install the ESP32Servo library instead of the standard Servo library.

Sweep a servo (Arduino Servo library) · Arduino C++Verify & upload in Electrolark
#include <Servo.h>      // ESP32: #include <ESP32Servo.h>

Servo s;

void setup() {
  s.attach(9, 500, 2400);   // pin, min and max pulse in microseconds
}

void loop() {
  for (int a = 0; a <= 180; a += 2) { s.write(a); delay(15); }
  for (int a = 180; a >= 0; a -= 2) { s.write(a); delay(15); }
}
04

Running many servos: power budget and PCA9685

For robot arms, hexapods and animatronics, use a PCA9685 16-channel servo driver. It generates all pulses over I2C, so your microcontroller only needs two pins, and up to 62 boards can share a bus.

Budget power for the worst case: six MG996R servos can draw over 10 A at the same instant. Use a 5 to 6 V supply rated for the total, thick wires, and a 1000 µF capacitor across the servo power rail.

05

Positional vs continuous-rotation servos

A 360° continuous-rotation servo looks the same but has no position limit. The pulse width sets speed and direction instead of angle: 1.5 ms stops, shorter spins one way, longer spins the other. They are handy for small wheeled robots but cannot move to a set angle.

06

Try it: PWM duty cycle calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Powering several servos from the Arduino 5 V pin, causing resets and jitter.
  • !Forgetting to join the servo supply ground to the microcontroller ground.
  • !Forcing the horn by hand, which strips SG90 plastic gears.
  • !Commanding angles beyond the mechanical stop; the servo stalls, buzzes and overheats.
  • !Using the standard Servo library on an ESP32, where it does not compile; use ESP32Servo.
08

Frequently asked questions

How much torque does an SG90 servo have?

About 1.8 kg·cm at 4.8 V: it can hold 1.8 kg at 1 cm from the shaft, or 180 g at 10 cm.

Can I power a servo from an Arduino?

One small SG90 under light load is fine for testing. Anything more needs an external 5 to 6 V supply with a shared ground.

Why is my servo jittering?

Usually an inadequate power supply or a missing common ground. Noisy signal timing, such as software PWM on a busy board, also causes jitter; a PCA9685 fixes that.

Can a servo rotate 360 degrees?

Standard servos move about 180 degrees. Continuous-rotation servos turn endlessly but control speed rather than position. For precise multi-turn positioning, use a stepper motor.

What do the three servo wire colours mean?

Brown or black is ground, red is power (4.8 to 6 V), and orange, yellow or white is the control signal.

Parts for this guide

  • TowerPro SG90 9g Micro Servo (180°)
    ₹442View
  • TowerPro MG996R Metal Gear Servo (180°)
    ₹329View
  • 4-DOF Robotic Arm Kit (for SG90 / MG90S)
    ₹562View
  • LM2596 Adjustable Buck Converter Module
    ₹59View
Shop Servo MotorsShop Servo Drivers & ControllersShop Robotic Arms & Grippers

Calculators

PWM duty cycle calculator

Terms in this guide

ServoA motor with built-in position feedback that moves to an angle set by a pulse signal.PWMPulse-width modulation: switching a signal on and off quickly so its average sets brightness, speed or position.Duty cycleThe percentage of time a PWM signal is high. 50% duty is on half the time.TorqueTurning force, in N·m or kg·cm.Stall currentThe current a motor draws when its shaft is blocked; the maximum it will draw.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.

Projects that use it

Put this into practice: 52 step-by-step builds in our project library use parts from this guide.

Beginner · 1–2 hoursAutomatic dustbin lidView projectIntermediate · 3–4 hoursObstacle-avoiding robotView projectIntermediate · 2–3 hoursRFID card door lockView project
Browse all 52 projects

Keep learning

Component guideIntermediateStepper Motors and DriversA stepper motor turns in precise fixed steps, so you can position it accurately without a sensor.4 min read · Motors & MotionComponent guideBeginnerDC Motors ExplainedA brushed DC motor spins when current flows through it: voltage sets the speed and the load sets the current it draws.4 min read · Motors & MotionConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics FundamentalsComponent guideBeginnerBuck and Boost ConvertersA DC-DC converter changes one DC voltage to another efficiently by switching current through an inductor.4 min read · Power & Batteries

Sources

  • SG90 micro servo datasheet (TowerPro)
  • MG996R datasheet (TowerPro)
  • PCA9685 16-channel 12-bit PWM controller datasheet (NXP Semiconductors)

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow a servo motor worksSG90 vs MG90S vs MG996RWiring a servo to Arduino or ESP32Running many servos: power budget and PCA9685Positional vs continuous-rotation servosTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide4 items · ₹1,392

TowerPro SG90 9g Micro Servo (180°) · TowerPro MG996R Metal Gear Servo (180°) · 4-DOF Robotic Arm Kit (for SG90 / MG90S) · LM2596 Adjustable Buck Converter Module

Run itChange the inputs and watch the output
Servo on pin 9 0°

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question