Servo motor projects
67 Mokxi projects use a servo motor (21 beginner, 27 intermediate and 19 advanced). They run on Arduino Uno, Raspberry Pi Pico and ESP32 boards. Here are 24, from “ESP32-C3 servo” to “Spaceship control panel”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “ESP32-C3 servo”, a beginner project that needs a servo motor.
- Arduino Uno runs 54 of them, Raspberry Pi Pico 5 and ESP32 4. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the push button (23 projects), the piezo speaker (18) and the LED (17). With those on hand, most of this list is open to you.
- Before you build one on a real bench, read the servo motor wiring guide for your board below. It gives every pin and the voltage notes.
24 projects of 67

ESP32-C3 servo
Sweeps an SG90 end to end with a 50 Hz LEDC channel on GPIO 4: the pulse width is the angle, and the hardware keeps the frame while the core sleeps.
- Board
- ESP32-C3-DevKitM-1
- Parts
- Servo motor
- Level
- Beginner

MicroPython servo sweep on a Pico, signal on GP16
MicroPython on a Raspberry Pi Pico: 50 Hz PWM on GP16 sweeps a servo from 0 to 180 degrees and back, one degree every 15 ms.
- Board
- Raspberry Pi Pico
- Parts
- Servo motor
- Level
- Beginner

Dinosaur game player: light sensor on A0, servo on 9
A photoresistor on A0 watches the screen of the browser’s dinosaur game; when a dark cactus passes over it.
- Board
- Arduino Uno R3
- Parts
- Photoresistor, resistor, servo motor
- Level
- Beginner

Power module
An MB102 breadboard power supply runs a servo off a 9 V battery, 5 V on the top rails and 3.3 V on the bottom.
- Board
- Arduino Uno R3
- Parts
- Battery: AA, servo motor
- Level
- Beginner

Robotic hand with flex sensors
Robotic hand with flex sensors on an Arduino Mega: five flex sensors on a glove move five servo fingers, and the Serial Monitor names the gesture.
- Board
- Arduino Mega 2560 R3
- Parts
- Servo motor, flex sensor
- Level
- Beginner

Servo sweep with RPi.GPIO PWM
RPi.GPIO software PWM at 50 Hz on a Raspberry Pi 4: a servo on GPIO18 steps from 0 to 180 degrees and back, one position a second.
- Board
- Raspberry Pi 4 Model B
- Parts
- Servo motor
- Level
- Beginner

Cat laser toy
A KY-008 laser on a pan and tilt pair of servos wanders its dot around the floor for a minute, then rests until the button is pressed.
- Board
- Arduino Uno R3
- Parts
- Laser module, servo motor, push button
- Level
- Beginner

Pico W servo sweep on GP15
MicroPython on a Pico W: 50 Hz PWM on GP15 sweeps an SG90 servo from 0 to 180 degrees and back, a pulse of 0.5 to 2.5 ms.
- Board
- Raspberry Pi Pico W
- Parts
- Servo motor
- Level
- Beginner

Mood dial
Turn the potentiometer on A0 and the servo on pin 9 turns to match: map() stretches 0 to 1023 onto 0 to 179 degrees.
- Board
- Arduino Uno R3
- Parts
- Potentiometer, servo motor
- Level
- Beginner

Grabbing candy bowl
An HC-SR04 watches across the top of a candy bowl: when a hand reaches in, a piezo cackles and a servo swings a rubber hand down to grab it.
- Board
- Arduino Uno R3
- Parts
- HC-SR04 ultrasonic sensor, servo motor, piezo speaker
- Level
- Beginner

MicroPython servo knob on a Pico: a pot points the servo
MicroPython on a Raspberry Pi Pico: a potentiometer on GP26 sets the angle of a servo on GP15, from 0 to 180 degrees.
- Board
- Raspberry Pi Pico
- Parts
- Potentiometer, servo motor
- Level
- Beginner

A knob on A0 points the servo on pin 3
A potentiometer on A0 sets the angle of a servo on pin 3: the reading from 0 to 1023 becomes an angle from 0 to 180 degrees.
- Board
- Arduino Uno R3
- Parts
- Potentiometer, servo motor
- Level
- Beginner

Remote control light switch (IR on 12, servo on 11)
An IR receiver on pin 12 and a servo on pin 11: press 1 on the remote and the servo arm swings to flip a wall switch on, press 2 and it flips it off.
- Board
- Arduino Uno R3
- Parts
- IR receiver and remote, IR remote, servo motor
- Level
- Beginner

Fingerprint door lock
An optical fingerprint sensor checks the finger on its glass: an enrolled one swings a servo latch open for three seconds.
- Board
- Arduino Uno R3
- Parts
- Fingerprint sensor, traffic light module, servo motor
- Level
- Intermediate

Smart trash can: ultrasonic on 8 and 7, servo lid on 9
An HC-SR04 with TRIG on pin 8 and ECHO on 7 watches for a hand; closer than 20 cm and the servo on pin 9 swings the lid open.
- Board
- Arduino Uno R3
- Parts
- HC-SR04 ultrasonic sensor, servo motor
- Level
- Intermediate

Radar sweep: ultrasonic on 10 and 11, servo on 12
An HC-SR04 (TRIG 10, ECHO 11) rides a servo on pin 12 that sweeps from 15 to 165 degrees and back.
- Board
- Arduino Uno R3
- Parts
- HC-SR04 ultrasonic sensor, servo motor
- Level
- Intermediate

Combination lock: keypad, servo bolt and buzzer
Type 1234 on a keypad (rows 11 to 8, columns 7 to 4) and a servo on pin 12 draws the bolt for two seconds; each key clicks a buzzer on pin 13.
- Board
- Arduino Uno R3
- Parts
- 4x4 keypad, resistor, transistor, buzzer, servo motor
- Level
- Intermediate

RC plane elevon and V-tail mixer
An Arduino flight mixer: two joysticks stand in for the sticks, and two servos move as a flying wing’s elevons or a V-tail, picked by a switch.
- Board
- Arduino Uno R3
- Parts
- Servo motor, slide switch, joystick
- Level
- Intermediate

Arduino quadruped robot
Eight servos on a PCA9685 walk a four-legged robot through a creep gait: one foot lifts and swings forward at a time while the other three hold it up.
- Board
- Arduino Uno R3
- Parts
- Servo driver, servo motor
- Level
- Advanced

Pico W tilt controller: MPU6050 points a servo
MicroPython on a Pico W: the tilt of an MPU6050 on I2C1, worked out from gravity and averaged, turns a servo on GP15 to follow it.
- Board
- Raspberry Pi Pico W
- Parts
- MPU6050 accelerometer and gyro, servo motor
- Level
- Advanced

MicroPython keypad door lock with a servo
MicroPython on an ESP32: type 1234 on a 4x4 keypad to swing the servo on GPIO 19 open; every key beeps a buzzer behind an S8050 on GPIO 18.
- Board
- ESP32-DevKitC V4
- Parts
- 4x4 keypad, buzzer, resistor, transistor, servo motor
- Level
- Advanced

Escape-room puzzle box
Five puzzles in ten minutes: a keypad code, a magnet key, the right RFID card, a tilt sequence and three flashes of light.
- Board
- Arduino Mega 2560 R3
- Parts
- 4x4 keypad, reed switch, piezo speaker, MPU6050 accelerometer and gyro, servo motor, +6 more
- Level
- Advanced

MPU6050 servo stabilizer
A self-leveling gimbal on an Uno: tilt the MPU6050 and two servos turn the other way to hold a platform level, through a complementary filter.
- Board
- Arduino Uno R3
- Parts
- Servo motor, MPU6050 accelerometer and gyro
- Level
- Advanced

Spaceship control panel
Arm three systems, pass the go/no-go poll, lift the safety and launch.
- Board
- Arduino Mega 2560 R3
- Parts
- Slide switch, LED arcade button, TM1637 four-digit display, piezo speaker, WS2812 NeoPixel LEDs, +7 more
- Level
- Advanced
Wiring, libraries and more ideas
Wiring guides
Library pages
More project ideas
- Arduino Uno project ideas
- Raspberry Pi Pico project ideas
- ESP32 project ideas
- Arduino Mega project ideas
- Projects with a push button
- Projects with a piezo speaker
- LED projects for Arduino, ESP32 and Pico
- Projects with an I2C LCD
- Projects with a potentiometer
- Projects with a buzzer
- Projects with an ultrasonic sensor