Hybrid quadruped robot
I built a quadruped with a powered wheel at each foot. I can walk it on its legs or drive it like a car.


Try it
Choose Start model, then Walk and move forward. Choose Drive and move again to roll on the wheels.

A model of my hybrid quadruped, with estimated dimensions and motion.
A kinematic illustration built from my photos. No hardware is connected.
- Role
- Personal projectMechanicalElectricalSoftware
- Timeline
- 2025-26 (Grade 12)
- Tools
- Arduino Nano ESP32, FreeRTOS, ESP-NOW, Logitech F310
- Actuators
- Twelve leg servos and four DC wheel motors
- Status
- The robot walks on its legs and drives on its wheels in car mode.
How it's built
I designed the printed hardware, laid out the power distribution, calibrated the legs and added wheel control and a wireless gamepad link.
The earlier purple spider robot walked on its feet. On the green build I put a driven omni wheel at the end of each leg. A foot now has two jobs. During a step the leg has to pick up and place the wheel. In car mode the leg supports the body while the wheel turns. The hardware walked and drove in separate runs. The model above lets you compare the two movements.
Wheels at the ends of the legs
Each leg has three servo joints and ends in an omni wheel with its own DC motor. Four legs give the chassis twelve joint actuators and four independent wheel motors. The upright photo shows the wheel assemblies and how the leg wiring returns to the body.
Servo signals and wheel power
I used a PCA9685 at I2C address 0x40 to generate the signals for all twelve leg servos. That leaves the Nano ESP32 with two I2C lines for the leg driver. The servos have a separate supply and share a ground with the logic. Two TB6612FNG drivers handle the four DC wheel motors.
The two kinds of actuator need different commands. The gait controller asks a joint to reach an angle. The wheel driver has to keep a motor turning in the selected direction. Bringing up a single joint or wheel separately lets me check its connection before asking several actuators to move together.
Gait timing and joint calibration
I ported the walking loop from code by SunFounder, Regis Hsu and Anuchit. The loop specifies where a foot should go, converts that position to joint angles and uses the calibration values to command the servos. The earlier AVR controller used a timer interrupt. In my ESP32 port, a 50 Hz FreeRTOS task updates the legs.
A separate task services the ESP-NOW receiver every 5 ms. That keeps incoming F310 gamepad commands available while a gait step is running. The right stick asks the robot to walk and the left stick asks it to turn. The bumpers request standing and sitting. If no packet arrives for 500 ms, the controller requests a sit. The ESP32 sketch in my archive runs the walking controller. The earlier AVR sketch contains the walking and wheel-control code.
Testing
I wrote four bring-up sketches. The I2C scan finds the servo driver. The centring tool positions the servos for horn installation. The calibration tool saves and prints the reference pulses. The hardware tester exercises one servo or motor at a time.
These tools follow the path from the controller to the foot. Finding the board confirms it answers on the bus. Centring establishes the mechanical starting position before I fit a horn. The saved pulse table then gives the gait code a reference for that particular joint. The individual actuator test leaves the other legs still, which makes it easier to see exactly which joint received the command.
| Bring-up tool | What it checks |
|---|---|
| I2C scanner | Servo driver responds on the bus. |
| Servo centring | Sets the horn installation position. |
| Servo calibration | Saves and prints each joint’s reference pulse. |
| Actuator tester | One joint or wheel moves at a time. |
Links
Source codeCode on GitHub
Interactive demoTry the demo


