Source: https://mokxi.com/teachers/plans/build-hexapod-walker
Updated: 2026-11-19

Lesson plan

# Build a hexapod walker lesson plan

Six legs, twelve servos, real gaits: leg geometry, servo maps and calibration, a current budget, tripod, ripple and wave gaits with their support polygons, turning, terrain and a walking demo.

3 chapters, 7 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- The leg’s geometry, the pulse math and calibration, and the current twelve or eighteen servos draw.
- Duty factor and phase: tripod, ripple and wave, stability margins, turning and rough ground.
- A scripted demo from one button, extended and made safe.

### Materials for the whole unit

- Arduino Uno R3
- Bench power supply
- Hobby servo x 12
- Limit switch, lever microswitch
- Multimeter
- Servo driver, PCA9685 16-channel

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 2 h 50 min

## Legs and servos

The leg’s geometry, the pulse math and calibration, and the current twelve or eighteen servos draw.

Lesson | Time | What students do

Leg geometry Six legs with a hip and a knee each. Pose them from the Serial Monitor, see why the right side is mirrored, and work out the stride and the ground clearance from the leg’s lengths and angles. | 60 min

- Six legs, twelve servos
- Swing a hip
- The mirrored side
- Lift a foot
- Stride from a swing
- Ground clearance

Servo maps and calibration An angle is a pulse width, and the PCA9685 sends it in ticks of 4.88 us. Map degrees to ticks, send a raw pulse, find the servo from another batch that stands off square, and trim it in code. | 60 min

- Degrees to microseconds to ticks
- A raw pulse
- The servo from another batch
- Trim it
- Bake the trims in
- Too much trim

The current budget Meter one side of the robot: six servos idle, then all moving. Scale it to 18 servos carrying a body, size the supply, and watch an undersized one collapse. | 50 min

- Six servos, standing
- All of them moving
- Back to still
- Size the supply
- An undersized supply

### Materials

- Arduino Uno R3
- Bench power supply
- Hobby servo x 12
- Limit switch, lever microswitch
- Multimeter
- Servo driver, PCA9685 16-channel

### Check for understanding

Each student finishes "The current budget" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "An undersized supply".

Chapter 2. About 2 h 50 min

## Gaits

Duty factor and phase: tripod, ripple and wave, stability margins, turning and rough ground.

Lesson | Time | What students do

Tripod gait Two triangles of legs take turns. Walk the tripod gait, count the feet in the air, work out its speed from the duty factor, read its stability margin, and speed up the swing. | 60 min

- One gait engine
- Walk
- Count the feet
- Speed from the duty factor
- The support polygon
- A faster swing

Ripple and wave gaits Keep more feet down. Switch to the ripple gait (duty 2/3) and the wave gait (duty 5/6), count the feet in the air, and trade speed for a stability margin almost twice as wide. | 50 min

- The ripple gait
- Two feet up
- The wave gait
- Speed against margin
- A longer stride

Turning and terrain Turn on the spot by walking the two sides opposite ways, add an arc turn, lift higher for rough ground, and move the center of mass forward until the tripod would tip. | 60 min

- Turn on the spot
- An arc turn
- Lift for rough ground
- A heavy battery up front
- Switch gaits to stay up
- Shift down on its own

### Materials

- Arduino Uno R3
- Hobby servo x 12
- Limit switch, lever microswitch
- Servo driver, PCA9685 16-channel

### Check for understanding

Each student finishes "Turning and terrain" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Shift down on its own".

Chapter 3. About 1 h 10 min

## Project: a walking demo

A scripted demo from one button, extended and made safe.

Lesson | Time | What students do

Project: a walking demo Script a demo the robot runs from one button: tripod forward, a turn, a careful wave. Add a turn, raise the lift for the careful part, and make a second press stop it safely. | 70 min

- Press the button
- The turn
- The end
- Add a turn back
- High steps for the careful part
- A stop button
- Show it

### Materials

- Arduino Uno R3
- Hobby servo x 12
- Limit switch, lever microswitch
- Servo driver, PCA9685 16-channel

### Check for understanding

Each student finishes "Project: a walking demo" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Show it".

Your class

## Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
