All paths

Build a hexapod walker

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.

Arduino Uno R3Free7 lessons7 h3 chapters2,493 XPRobotics · Advanced+250 XP

0 of 7 done

What you will build

2 projects, built step by step

7 lessons in 3 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

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.

Open it in the simulator
Chapter 2 project

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.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Legs and servos

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

  1. Open288 XP

    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.

    0 of 6 steps

  2. Locked288 XP

    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.

    0 of 6 steps

  3. ProjectLocked500 XP

    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.

    0 of 5 steps

5 questions, graded as you go.
Chapter 2

Gaits

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

  1. Locked288 XP

    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.

    0 of 6 steps

  2. Locked250 XP

    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.

    0 of 5 steps

  3. ProjectLocked576 XP

    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.

    0 of 6 steps

5 questions, graded as you go.
Chapter 3

Project: a walking demo

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

  1. Locked303 XP

    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.

    0 of 7 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Legs and servos

  1. Leg geometrySix 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.
  2. Servo maps and calibrationAn 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.
  3. The current budgetMeter 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.
Chapter 2

Gaits

  1. Tripod gaitTwo 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.
  2. Ripple and wave gaitsKeep 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.
  3. Turning and terrainTurn 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.
Chapter 3

Project: a walking demo

  1. Project: a walking demoScript 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.
Keep going

The next course on your track

Build a hexapod walker is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a line-following racer

A line-following race car taught as real control engineering: a five-sensor array, the line’s position in millimeters, differential drive on a TB6612, P then PD steering, speed against grip, and lap timing with a wheel encoder.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a hexapod walker

Is Build a hexapod walker free?

Yes. All 7 lessons of Build a hexapod walker are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a hexapod walker take?

About 7 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: The current budget and Turning and terrain.

Where do I start?

With "Leg geometry", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.