rAs Kids All courses
Robotics with Python · Module 7 of 8
🤖 Salvage kit

Wire It, Then Drive It

A servo does not spin freely — you tell it an angle, and it holds that angle against the world.

🔌 ⚙️ 0° ↔ 90° ↔ 180°
A small servo horn swinging between three chalk-marked angles on a board.

🎒 What you need

✋ Do this

  1. SAFETY: low-voltage batteries only — never mains, never a car battery, never a cut charging cable. Do not power a servo directly from a microcontroller's pin if it stalls; give motors their own battery and join the grounds.
  2. Mount the servo firmly to cardboard or wood first. An unmounted servo just shakes itself around and teaches you nothing.
  3. Send it to 0 degrees, then 90, then 180, pausing between. Mark each position in chalk on the board beneath the horn. Those three marks are your proof it obeys.
  4. Now push gently against the horn while it is holding position. Feel it push back. That resistance is a control loop running inside the servo, and it is module 1 in your hand.
  5. Write a function arm_to(angle) that moves it and waits. Then loop through a list of angles. Reuse, do not retype.
  6. Salvage route without a board: run a DC motor from batteries, swap the wires to reverse it, and use your module 3 knowledge to pulse the connection by hand — count your on-time and off-time out loud and watch the speed change.

💡 Why it works

Inside every hobby servo is a tiny closed loop: a potentiometer measures the actual shaft angle, compares it to the commanded angle, and drives the motor until the error is zero. That is why it pushes back when you shove it. You spent five modules learning that loop; now you can feel it resisting your thumb.

🔥 Challenge

Measure the servo's real limits. Find the smallest angle change it reliably makes, and the heaviest load it can hold before it gives up. Write both numbers on the mount.

📖 New words

servoa motor that moves to and holds a commanded angle
actuatorany component that turns a signal into physical movement
groundthe shared reference wire that all parts of a circuit must connect to
🦾
Servo Driver

Tap when you have finished this module.