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.

Walking and wheel drive in the browser model. The two physical modes used separate firmware runs.
Simulation Walking and wheel drive in the browser model. The two physical modes used separate firmware runs.Hardware clip in progress
Current green robot resting on a wooden surface, with four jointed legs, wheels and exposed wiring.
The green robot with twelve leg servos and an omni wheel on each foot.
Rendered 3D model of my green hybrid quadruped
3D model built from my photos, with estimated dimensions.

Try it

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

Rendered model of my green hybrid quadruped

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.

Hardware demo · in progress

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.

Hardware photo · in progress
One wheeled leg Schematic of the three servo joints, wheel motor and omni wheel on one leg. Joint positions show the chain only. Body Servo 1 Servo 2 Servo 3 DC motor Omni wheel
One wheeled leg. Three servos position the leg. A separate DC motor turns the omni wheel.

The earlier purple build shows the leg geometry before I added wheels.

Purple V1 spider robot on a table, with four legs and exposed wiring above its frame.
V1, the earlier purple spider robot.

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.

Green quadruped held upright to show its leg joints, wheels and wiring.
Held upright to show the joints, wheels and wiring.

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.

Screen recording · in progress

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 toolWhat it checks
I2C scannerServo driver responds on the bus.
Servo centringSets the horn installation position.
Servo calibrationSaves and prints each joint’s reference pulse.
Actuator testerOne joint or wheel moves at a time.