Quadruped Assembly#

Chapter 13 drives an 8-servo quadruped from your own OS.

../_images/quadruped_walk.gif

The quadruped walking on your own OS, driving 8 servos (1.5x speed)#

Item

Qty

Notes

FEETECH STS3215 serial bus servo (12V)

8

Akizuki Denshi 130969

Bus servo driver board (Waveshare 25514)

1

Akizuki Denshi 131227

12V 5A AC adapter

1

enough for walking too

3D-printed body & legs

1 set

STL downloads below

Arduino UNO R4 WiFi

1

🛒 Bill of materials and where to buy

8 STS3215 servos + driver board + power supply, about ¥35,100. Links to the shop pages, choosing a battery, and 3D-printing settings.

Bill of materials (BOM) — 8-DoF quadruped
🔧 Assembly (3D viewer)

Step through the assembly as a 3D animation in the browser. A PDF version is available too.

Assembly — 8-DoF quadruped
🚶 Learning to walk (reinforcement learning)

The training side that did not fit in the book, with a MuJoCo (physics simulator) simulation of the trained policy (the learned neural network that decides how the robot walks) in the browser.

Learning to walk (reinforcement learning)
🧠 Training the policy yourself

Retrain with different rewards or speed limits. Works end to end on Google Colab (Google’s service for running Python in the browser) on its free T4 (a GPU model) even without a GPU of your own.

Training the walking policy yourself
🔁 Train in Genesis, walk in MuJoCo

Train the same task in a different physics simulator, Genesis, and walk the policy in MuJoCo in the browser (sim2sim), with the same policy measured in both simulators.

Train in Genesis, walk in MuJoCo (sim2sim)
🧭 Balancing with an IMU

Put an IMU (a sensor for tilt and rotation rate) on the body and walk with a policy trained on it. It braces with its legs to recover from pushes and keeps standing while stopped.

Balancing with an IMU
🦿 Building with Kondo Kagaku KRS servos

A version built with KRS-3302 ICS servos and an RCB-4mini instead of the STS3215. Setting IDs with the Dual USB Adapter, aligning the zero point, assembling with the 3D viewer, and wiring on a single AC adapter or battery.

Building with Kondo Kagaku KRS servos (RCB-4mini version)

STL downloads#

Print quantities: body ×1, bracket ×4, link ×4 (left and right legs use the same parts). Units are millimeters.

Photos#

All parts: 9 printed parts, 8 STS3215 servos, and the bundled screws

All parts: 9 printed parts, 8 STS3215 servos, and the bundled screws#

Body with four servos fixed

Body with four servos fixed#

Four servos with leg brackets attached

Four servos with leg brackets attached#

Driver board: A/B jumper (yellow), USB Type-C and DC jack

Driver board: A/B jumper (yellow), USB Type-C and DC jack#

Interactive assembly guide#

An interactive 3D assembly viewer shows every step as an animation:

Open the 3D assembly viewer ↗