Hook up servos

Hook up one or two small servos to a microcontroller or controller board, power them safely, and build a moving arm or pan-tilt mechanism.

Electronics45 min9 materials
Get instructionsMore activities
Hook up servos
Hook up servos
45 minHands-on fun
15 steps →

About this activity

Hook up one or two small servos to a microcontroller or controller board, power them safely, and build a moving arm or pan-tilt mechanism.

What you need

🧰microcontroller or controller board (Arduino or similar)🧰one or two small hobby servo motors🧰USB cable for the microcontroller🔋external battery pack or regulated servo power supply🧰jumper wires and connectors📦small base such as cardboard or wooden board🧴screws or tape or hot glue🧰small screwdriver🧰adult supervision required

Step by step

  1. 1

    Step 1

    Gather all the materials on a clear table so everything is within reach.

  2. 2

    Step 2

    Place your base where you want the arm or pan tilt to sit and set the servo on the base to choose its position.

  3. 3

    Step 3

    Mount the servo to the base using screws tape or hot glue so it is held firmly in place.

  4. 4

    Step 4

    Attach the plastic horn or arm piece to the servo shaft and tighten the small screw to secure it.

  5. 5

    Step 5

    If you have a second servo place it where it will make the pan or tilt axis and mount it the same way.

  6. 6

    Step 6

    Plug the servo signal wire into a PWM capable pin on the microcontroller such as D9.

  7. 7

    Step 7

    Connect the servo power wire (usually red) to the positive terminal of the external battery pack.

  8. 8

    Step 8

    Connect the servo ground wire (usually black or brown) to the negative terminal of the external battery pack.

  9. 9

    Step 9

    Connect the negative terminal of the battery pack to the GND pin on the microcontroller so they share a common ground.

  10. 10

    Step 10

    Connect the microcontroller to your computer with the USB cable.

  11. 11

    Step 11

    Upload a simple servo test program that moves the servo slowly between 0 degrees and 90 degrees to the microcontroller.

  12. 12

    Step 12

    Turn on the external battery pack to power the servo or servos.

  13. 13

    Step 13

    Watch how the servo moves when the program runs and note if the motion matches what you expect.

  14. 14

    Step 14

    If the servo moves the wrong way gently remove and flip the horn 180 degrees or change the angle values in your code and upload again.

  15. 15

    Step 15

    Share a photo or video of your moving arm or pan tilt mechanism on DIY.org.

Fun facts

⚙️Many hobby servos can rotate about 180° — that's half a circle for your moving arm!
🤖Microcontrollers like the Arduino are tiny programmable brains that can tell servos exactly where to go.
🔋A small servo can draw over 1 amp when stalled, so powering servos from a separate battery keeps your controller safe.
🎛️Servos are steered by PWM pulses where the pulse width (around 1–2 ms) decides the angle — like a secret signal.
🏗️Simple pan-tilt rigs use two servos and let a camera or sensor look around just like a tiny robot head.
⚙️Many hobby servos can rotate about 180° — that's half a circle for your moving arm!
🤖Microcontrollers like the Arduino are tiny programmable brains that can tell servos exactly where to go.
🔋A small servo can draw over 1 amp when stalled, so powering servos from a separate battery keeps your controller safe.
🎛️Servos are steered by PWM pulses where the pulse width (around 1–2 ms) decides the angle — like a secret signal.
🏗️Simple pan-tilt rigs use two servos and let a camera or sensor look around just like a tiny robot head.

How do I hook up one or two small servos to a microcontroller and build a moving arm or pan-tilt?

To hook up one or two small servos and build a moving arm or pan-tilt, mount the servo(s) to your frame, attach servo horns, and connect the three-pin plugs: ground to microcontroller ground, power to a stable 5V source (not the microcontroller if current is high), and the signal wire to a PWM-capable pin. Use a servo library (e.g., Arduino Servo) to send angle commands and test sweeping motions. Mechanically limit travel, secure fasteners, and calibrate zero positions before running complex seq

Go deeper

What materials and tools do I need to hook up small servos and make a pan-tilt or moving arm?

You’ll need 1–2 hobby servos (e.g., SG90 or MG90S), a microcontroller or controller board (Arduino, micro:bit, Raspberry Pi with PWM driver), a stable 5V power supply or battery pack, jumper wires or servo extension leads, a small screwdriver and screws for mounting, servo horns or brackets, cardboard/3D-printed parts for the arm, a breadboard (optional), and basic tools: wire stripper, hot glue or tape. A USB cable and a computer for programming completes the setup.

Go deeper

What ages is hooking up servos and building a moving arm suitable for?

This activity is suitable for kids about 8+ with adult supervision; younger children can participate in assembly and decoration while an adult handles wiring and power. Ages 10–12 can learn basic coding and wiring with guided help. Teenagers (13+) can usually complete the build and program independently. Adjust complexity—simpler mechanical builds and block coding for younger kids; more advanced electronics, soldering, and firmware for older kids.

Go deeper

What safety tips, benefits, and variations should I know for a servo moving-arm project?

Safety tips: always use a separate, properly rated 5V power supply for servos and common-ground it with the microcontroller; avoid powering servos directly from USB when under load; supervise soldering, sharp tools, and batteries. Benefits include learning basic electronics, programming, and mechanical design while improving problem-solving and fine motor skills. Variations: make a pan-tilt camera mount, a two-joint robotic arm, or decorate moving characters for stories and play.

Go deeper

Watch & Learn

Need help?

What can I use if I can't find screws, a plastic horn, or an external battery pack?

Use strong double-sided tape or hot glue to mount the servo instead of screws (step 3), substitute a LEGO technic piece, trimmed bottle cap, or 3D‑printed arm for the plastic horn (step 4), and replace the external battery pack (steps 7–9) with a 4×AA battery holder or a USB power bank while still connecting the battery negative to the microcontroller GND.

The servo won't move or moves weirdly—what should I check first?

Confirm the external battery pack is turned on and the servo power wire is on the battery positive, that the battery negative is tied to the microcontroller GND (step 9), the signal wire is plugged into a PWM pin like D9 (step 6), and if motion is reversed try flipping the horn 180° or adjust the angle values in your code (step 14).

How can I adapt this activity for different age groups?

For younger kids (4–7) have an adult mount the servo to a cardboard base with tape and run the provided test program while the child watches (steps 1–11), for elementary kids (8–11) let them attach the horn and plug wires with supervision and upload the simple 0°–90° sweep (steps 4–11), and for teens (12+) encourage adding a second servo for a pan‑tilt and writing custom PWM code to control both servos (steps 5, 11).

How can we extend or personalize the moving arm or pan‑tilt after the basic test works?

Add a second servo for pan‑tilt (step 5), attach a potentiometer or pushbutton to the microcontroller to control motion instead of the fixed sweep (step 11), decorate the arm or pan with craft foam, and then share a photo or video on DIY.org (step 15).

Your first game is on us.

Describe a game below - no sign-up needed to try.

KidsGPT has moved to ChatDino — powered by AstroSafe

Make me

DIY.org

Kid-safe AI for discovery and learning. Ask anything, explore everything, learn with confidence.

Product

  • Pricing
  • App
  • All Apps

Resources

  • Blog
  • Kids Wikipedia
  • Worksheets
  • Activities for Kids
  • Build a Hacker Simulator
  • SafeTube

Company

  • About
  • Terms & Conditions
  • Privacy Policy
  • AstroSafe
TwitterInstagramYouTube

© 2026 DIY.org. All rights reserved. · Powered by AstroSafe