HomeExperiments
Servo Motor — Precision Angle Control
Robotics

Servo Motor — Precision Angle Control

Control a servo motor to rotate to precise angles (0-180°) using a potentiometer as input.

30 min (set-up 10 min)
Actuators

What students learn

Students learn servo motor control using the Servo library, PWM signals for angle positioning, and input-to-output mapping.

The science behind this experiment

  • Servos contain a motor, gear train, and position feedback circuit
  • PWM signal width determines angle: 1ms=0°, 1.5ms=90°, 2ms=180°
  • The Servo library handles PWM timing automatically
  • Servo.write(angle) sets position; Servo.attach(pin) connects to a pin

Key relation: angle = map(analogRead(A0), 0, 1023, 0, 180); PWM: 1ms=0°, 1.5ms=90°, 2ms=180°

Equipment used

  • Arduino Uno R3
  • Breadboard
  • 1x Servo motor
  • 1x Potentiometer (10kΩ)
  • Jumper wires

Questions for students

  • How would you build a 2-axis robotic arm using two servos?
  • What is the difference between a standard servo and a continuous rotation servo?

What to expect

The servo motor follows the potentiometer position, rotating smoothly from 0° to 180°. Servos provide precise angle control using PWM signals. The Servo library simplifies control, and map() converts input ranges to output angles.

Run this experiment in your classroom

This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.

See the ATP Volta mobile science labTalk to our team

The full experiment library

Eighty-six guided experiments across physics, chemistry and biology — each with learning goals, equipment, background theory and questions for students. Browse the library

Physics 42
Chemistry and biology 44