
Photo
PID Self-Balancing Car
Wheeled
A self-balancing robot car that uses PID control and features ultrasonic obstacle avoidance, ultrasonic following, and Bluetooth remote control.
Before you build
- Tools
- 3D printer, soldering iron, oscilloscope, multimeter
- Level
- Intermediate
- Licence
- No license, hardware and softwareCommercial use: Unknown
Not stated in the creator's files: total cost, shop links, time.
Read from the repository at commit 39c854d. Something out of date? Tell us
Project information
- Buildability
- 31/100Incomplete documentation
- Parts
- Not listed
- Sensors
- IMU
- Power
- 12 V
No license: all rights reserved by the creator.
No license is stated for part of this robot.
Suggested by Robotheca, created by @KeyL-SJ (opens in a new tab), from github.com/KeyL-SJ/BalanceCar (opens in a new tab), pinned to commit 39c854d (opens in a new tab). You buy the parts yourself; Robotheca doesn't sell robots. Last checked on GitHub on 30 November 2026; its last change there was on 1 January 2025.
Build it
- Assemble the chassis and motors
- Install the control board and sensors
- Connect and solder electronic components
- Upload the firmware to the STM32
- Calibrate the PID parameters
- Test balancing, obstacle avoidance, and remote control functions
The creator's guide is written in Chinese. It has no license, so all rights stay with the creator: Robotheca doesn't show it here or translate it, and gives its own notes about the robot instead.
Read the creator's guideAsk the creator on GitHub (opens in a new tab)What to buy
This repository has no parts list Robotheca can read yet.
Why it scores 31
31/100
Incomplete documentation
How complete the published files are for rebuilding this robot, measured by Robotheca at commit 39c854d. 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.
- 13D and CAD filesNo printable parts or CAD files.Most points to gain: Add the parts to print (STL or 3MF files). Add the CAD source (STEP, or the CAD program's own files) so people can change the design.0/20
- 2Parts listNo parts list in the repository or linked.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
- 3SoftwareCode in this repository, instructions to install or run it.Say which software framework it uses (ROS 2, LeRobot, Arduino…).10/15
- 5LicensesHardware: no license; software: no license.Add a license for the hardware (e.g. CERN-OHL-S-2.0 or CC-BY-SA-4.0). Add a license for the software (e.g. MIT or Apache-2.0).0/10
Full points: Documentation; not counted: Robot description, Simulation
- 4DocumentationREADME of 6,799 characters with 5 pictures; 6 build steps.15/15
- –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
- –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
Main parts: Robotheca's summary
- STM32F103C8T6 microcontroller
- MPU6050 IMU (accelerometer and gyroscope)
- TB6612 motor driver
- Two DC motors with encoders
- 12 V to 5 V buck converter module
- 0.96-inch OLED display
- Ultrasonic sensor
- 12 V 1900 mAh lithium battery
Connections: Robotheca's summary
- STM32 I2C pins emulate I2C to read MPU6050 data
- MPU6050 INT pin wired to STM32 external interrupt pin for 5 ms control loop timing
- TB6612 motor driver connected to STM32 GPIO and PWM outputs
- Encoders wired to STM32 TIM2 and TIM4 timer inputs
- OLED connected via GPIO pins
- Ultrasonic sensor connected to STM32 GPIO
- Buck converter provides 5 V from 12 V battery to electronics
Schematics, boards and diagrams
What it can do: Robotheca's summary
- Balances upright on two wheels
- Moves forward and backward by tilting
- Stops when picked up or tilted too far
- Supports ultrasonic follow and obstacle avoidance modes
- Shows status on an OLED display
- Uses dual-loop PID control (balance and speed)
- Detects low battery voltage
Software
- Framework
- Not stated
- Languages
- C, Assembly
- License
- NONE
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.
- 1Install STM32CubeIDE or Keil MDK-ARM
- 2Import the project from the software folder
- 3Configure the project for STM32F103C8T6 target
- 4Build the firmware image
- 5Flash the firmware to the board via SWD or USB
- 6Power the robot with the 12 V lithium battery
- 7Press the reset button to start the balance control loop
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 39c854d.
Community
- Issues on GitHub (opens in a new tab)
- Pull requests on GitHub (opens in a new tab)
- Are you the creator? Manage this robot
- Report outdated info
- Report this robot
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.
Markdown (one click selects it)
[](https://robotheca.org/robots/balancecar-2) [](https://robotheca.org/robots/balancecar-2)
Licence and credits
Robot ID
RobothecaPID Self-Balancing Car
A self-balancing robot car that uses PID control and features ultrasonic obstacle avoidance, ultrasonic following, and Bluetooth remote control.
- Type
- Wheeled
- Level
- Intermediate
Licence: NONE, hardware and softwareCommercial use: Unknown
Buildability: 31/100, Incomplete documentation
Licences read from the files at commit 39c854d
- Licenses
- No license, hardware and software
- Commercial use
- Unknown
- Made by
@KeyL-SJ (opens in a new tab), in github.com/KeyL-SJ/BalanceCar (opens in a new tab) at commit 39c854d
Other wheeled robots
All 95 wheeled robots- Ready to build

- Ready to build

Open source · free files
JPL Open Source Rover
Wheeled · Intermediate
- Score
- Buildability 94 out of 100
- Cost
- $1,600≈ €1,469
- Ready to build

- Ready to build

Open source · free files
Sawppy the Rover
Wheeled · Intermediate
- Score
- Buildability 94 out of 100
- Cost
- $500≈ €459
- Ready to build

Open source · free files
Agrofelis Agricultural Robot
Wheeled · Advanced
- Score
- Buildability 88 out of 100
- Cost
- €3,729.58
≈ € values are approximate, converted at the ECB euro reference rate of 30 Nov 2026. The creator's original price always comes first.