← All projects

Robotics & feedback control

Two-Wheel Robot: Learning PID Balance Control

Designing a two-wheel balancing robot to learn how pitch sensing, motor response, and PID tuning interact. A character-inspired shell comes after the balance controller works.

In progressIn development · Design & component selection

Personal learning project · Mechanical design and control-system planning

Concept diagram of a two-wheel balancing platform showing pitch and a feedback loop
Concept sketch, not a finished CAD assembly. The frame, drivetrain, and control loop are still being planned.

My contribution

I’m planning the drivetrain, printed chassis, power system, and test sequence around learning feedback control. The design calls for an IMU, encoder-equipped motors, adjustable component placement, and telemetry so each tuning change can be compared with measured behavior.

Current progress

The project is in design and component selection. Candidate motors and drivers have been compared, but the final power system and mass distribution are not settled. No assembled robot or balancing performance has been demonstrated yet.

Make it balance, then give it a personality

The main goal is learning PID control on a physical system. I want a character-inspired robot, but the first version will prioritize a rigid chassis, reliable sensing, and accessible electronics. The cosmetic shell comes after repeatable balancing.

Designing around the control loop

The plan combines pitch estimation from an IMU with two driven wheels and encoder feedback. Adjustable battery and electronics mounts would let me study how mass placement affects the response. Motors, drivers, and the battery must be selected together; candidate parts are not yet a completed drivetrain.

Measure the tuning, not just the wobble

The planned firmware will record pitch, setpoint, motor command, wheel motion, and loop timing. Output limits, integral anti-windup, and fall shutdown are design requirements. I want to compare tuning changes using logs instead of judging success from one lucky balancing attempt.

A staged test plan

The sequence is sensor calibration, motor characterization, supported balance tests, and then free balancing on a level surface. A repeatable 30-second balance with drift recorded is an initial target, not an achieved result. Final battery capability, frame mass, and controller hardware still need confirmation.

Tools & methods

  • PID control
  • IMU sensing
  • Encoder feedback
  • Motor sizing
  • Power-system planning
  • CAD
  • 3D printing
  • Embedded programming
  • Telemetry
  • Control-loop timing
  • Experimental tuning
  • System integration