Skip to content

Photo and 3D model

Balance-Tech Self-Balancing Bike, photo from its repository
Photo@pxmkv (opens in a new tab)BSD-2-Clausesource file (opens in a new tab)

3D preview converted from github.com/pxmkv/Balance-Tech at ea44e93, under BSD-2-Clause. View the original files from GitHub (6.5 MB) (opens in a new tab)

Open source · free filesRobot ID

Balance-Tech Self-Balancing Bike

Other

A two-wheel self-balancing bicycle-like robot that balances with a reaction wheel using a Kalman filter and LQR control, and can move and turn.

Before you build

Tools
3D printer, soldering iron
Level
Advanced
Licence
BSD-2-Clause (opens in a new tab), hardware and softwareCommercial use: Allowed

Not stated in the creator's files: total cost, shop links, time.

Read from the repository at commit ea44e93. Something out of date? Tell us

Project information

Buildability
69/100Buildable with some effort
Parts
Not listed
Works with
Arduino
Sensors
IMU

Suggested by Robotheca, created by @pxmkv (opens in a new tab), from github.com/pxmkv/Balance-Tech (opens in a new tab), pinned to commit ea44e93 (opens in a new tab). You buy the parts yourself; Robotheca doesn't sell robots. Last checked on GitHub on 2 December 2026; its last change there was on 3 February 2026.

Build it

The guide appears here as you scroll.

Guide by @pxmkv (readme.md), under BSD-2-Clause.

More guides

What to buy

This repository has no parts list Robotheca can read yet.

Why it scores 69

It measures the published files, not the robot · How we score

69/100

Buildable with some effort

How complete the published files are for rebuilding this robot, measured by Robotheca at commit ea44e93. It isn't a rating of the robot. Counted out of 80 points and scaled to 100: the parts that don't apply to this robot are left out.

  1. 2Parts listNo parts list in the repository or linked.Most points to gain: Link to your parts list, or add it to the repository (a CSV or a Markdown table) with quantities, prices and where to buy each part.0/20
  2. 4DocumentationREADME of 10,787 characters with 10 pictures; 0 build steps.Split the build into at least 3 steps.10/15
Full points: 3D and CAD files, Software, Licenses; not counted: Robot description, Simulation
  1. 13D and CAD files22 printable parts (STL, 3MF), 18 CAD source files.20/20
  2. 3SoftwareCode in this repository, instructions to install or run it, built on Arduino.15/15
  3. 5LicensesHardware: BSD-2-Clause; software: BSD-2-Clause.10/10
  4. –Robot descriptionNo URDF. Not counted: the score is made of the parts that apply.Optional: add a URDF, and the robot can be seen in 3D and tried in the browser.Not counted
  5. –SimulationNo simulation files. Not counted: the score is made of the parts that apply.Optional: add a simulation model (MuJoCo, Gazebo, Webots or Isaac).Not counted

Wiring and electronics

Notes written by Robotheca from the project's documents, not by its creator

Main parts: Robotheca's summary

  • WeMOS D1 mini ESP32 (ESP-WROOM-32) microcontroller
  • MPU6050 IMU (accelerometer and gyro) read over I2C
  • Momentum wheel motor with quadrature encoder for speed and position
  • Drive motor driven through an H-bridge
  • Steering servo
  • Buck converter for adjustable supply and AMS1117 regulator for the MCU
  • Battery power supply, wired low to reduce center of mass

Connections: Robotheca's summary

  • Momentum wheel PWM on GPIO 26, enable/switch on GPIO 18, direction on GPIO 5
  • Encoder channels A and B on GPIO 19 and 23
  • Drive motor H-bridge PWM on GPIO 33 and GPIO 4
  • Steering servo PWM on GPIO 17 at 50 Hz
  • IMU on I2C with SDA on GPIO 21 and SCL on GPIO 22
  • Full wiring is given in the schematic PDF in the schematic folder

Schematics, boards and diagrams

What it can do: Robotheca's summary

Written by Robotheca from the project's documents, not by its creator
  • Balances as a two-wheel self-balancing bike using a reaction (momentum) wheel driven by a motor
  • Moves forward and backward with a rear drive motor and can turn with a steering servo
  • Estimates tilt by fusing accelerometer and gyro readings with a Kalman filter
  • Uses LQR state feedback to control the momentum wheel
  • Stops the momentum wheel motor when tilt exceeds 22 degrees
  • Controlled by a Bluetooth gamepad (Bluepad32) or by serial commands for live gain tuning and calibration
  • Balancing loop runs at about 100 Hz

Software

Framework
Arduino
Languages
Arduino
License
BSD-2-Clause

Robotheca doesn't review code. Read it before running it.

How to run it: Robotheca's summary

Written by Robotheca from the project's documents, not by its creator.

  1. 1Install the Arduino IDE or PlatformIO with the Arduino framework and select an ESP32 Dev Module board
  2. 2Install the libraries ESP32Encoder, I2Cdev with MPU6050, and Bluepad32
  3. 3Flash the main_LQR.ino firmware to the ESP32
  4. 4Power on the bike and connect a Bluetooth gamepad
  5. 5Calibrate the upright offset by pressing Y+B on the gamepad or sending c over serial
  6. 6Optionally tune gains live by sending newline-terminated serial commands such as a, s, d, f and o with values

Software that runs on this robot

No software from Robotheca's catalogue found in this robot's files yet. Links come from its robotheca.yaml, its dependency files read as text, or Robotheca's editors.

The code

Free files

Every file of the project, at commit ea44e93.

Community

Questions and improvements go to the creator's repository.

Add a badge to your README

For the creator: two badges that link back here. The second always shows this page's current label and score.

Listed on RobothecaRobotheca buildability

Markdown (one click selects it)

[![Listed on Robotheca](https://robotheca.org/robots/balance-tech-self-balancing-bike/badge.svg)](https://robotheca.org/robots/balance-tech-self-balancing-bike)
[![Robotheca buildability](https://robotheca.org/robots/balance-tech-self-balancing-bike/score.svg)](https://robotheca.org/robots/balance-tech-self-balancing-bike)

Licence and credits

Robot ID

Robotheca

Balance-Tech Self-Balancing Bike

A two-wheel self-balancing bicycle-like robot that balances with a reaction wheel using a Kalman filter and LQR control, and can move and turn.

Type
Other
Level
Advanced

Licence: BSD-2-Clause, hardware and softwareCommercial use: Allowed

Buildability: 69/100, Buildable with some effort

Licences read from the files at commit ea44e93

robotheca.org/robots/balance-tech-self-balancing-bike

Licenses
BSD-2-Clause (opens in a new tab), hardware and software
Commercial use
Allowed

Other other robots

All 98 other robots
  • Ready to build

    Open source · free files

    Koriobots

    Other · Intermediate

    Score
    Buildability 98 out of 100
    Cost
    $972.06≈ €891
  • Ready to build

    Open source · free files

    AmazingHand

    Other · Intermediate

    Score
    Buildability 88 out of 100
    Cost
    under €200
  • Ready to build

    Open source · free files

    DigiArm Prosthetic Hand

    Other · Advanced

    Score
    Buildability 85 out of 100
    Cost
    $250≈ €229
  • 3D render

    Open source · free files

    FloatingFace

    Other · Advanced

    Score
    Buildability 100 out of 100
    Cost
    $328.47≈ €301

≈ € values are approximate, converted at the ECB euro reference rate of 1 Dec 2026. The creator's original price always comes first.