
Photo and 3D model
3D preview converted from github.com/ToanTech/Balance_Bot_DengFOC at e8ae0bf, under AGPL-3.0-only. View the original files from GitHub (714 KB) (opens in a new tab)
DengFOC Balance Bot
Wheeled
A self-balancing robot based on DengFOC motor driver and SimpleFOC, featuring Bluetooth control via a WeChat mini-program.
Before you build
- Tools
- 3D printer, soldering iron
- Level
- Intermediate
- Licence
- AGPL-3.0-only (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 e8ae0bf. Something out of date? Tell us
Project information
- Buildability
- 63/100Buildable with some effort
- Parts
- A spreadsheet
- Works with
- Arduino
- Sensors
- IMU
Suggested by Robotheca, created by @ToanTech (opens in a new tab), from github.com/ToanTech/Balance_Bot_DengFOC (opens in a new tab), pinned to commit e8ae0bf (opens in a new tab). You buy the parts yourself; Robotheca doesn't sell robots. Last checked on GitHub on 1 December 2026; its last change there was on 7 January 2023.
Build it
- Gather required components
- Wire components according to the wiring table
- Assemble the robot structure
- Upload the balance bot code
- Calibrate the gyroscope and motors
- Test self-stabilization and Bluetooth control
The guide appears here as you scroll.
Guide by @ToanTech (README.md), under AGPL-3.0-only. The English translation is by Robotheca, shared under the same license.
What to buy
The parts list is a spreadsheet in the repository. Robotheca can't read this file, so its quantities and prices are not checked here.
Open 平衡车BOM表.xlsx (opens in a new tab)Why it scores 63
63/100
Buildable with some effort
How complete the published files are for rebuilding this robot, measured by Robotheca at commit e8ae0bf. 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 files5 printable parts (STL, 3MF).Most points to gain: Add the CAD source (STEP, or the CAD program's own files) so people can change the design.10/20
- 2Parts listA parts list in the repository as a spreadsheet (平衡车BOM表.xlsx): Robotheca can't read its quantities, prices or shop links.Add the parts list as a CSV or a Markdown table too, so its prices and shop links can be checked.10/20
- 4DocumentationREADME of 1,257 characters with 0 pictures; 6 build steps.Write a README of at least 1,500 characters: what the robot does and how to build it. Show the robot and its assembly in pictures in the README.5/15
Full points: Software, Licenses; not counted: Robot description, Simulation
- 3SoftwareCode in this repository, instructions to install or run it, built on Arduino.15/15
- 5LicensesHardware: AGPL-3.0-only; software: AGPL-3.0-only.10/10
- –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
- DengsFOC V3 controller board
- Two 2204 gimbal motors with AS5600 magnetic encoders
- One MPU6050 gyroscope and accelerometer
- Bluetooth module for remote control
- Battery and power switch
Connections: Robotheca's summary
- Each 2204 motor wired to DengFOC M0 and M1 motor ports
- AS5600 encoders wired to SDA0/SCL0 and SDA1/SCL1 I2C buses with 3V3 and GND
- MPU6050 wired to SDA1/SCL1 I2C bus with 3V3 and GND
- Battery and power switch wired to DengFOC power terminals
What it can do: Robotheca's summary
- Balances itself upright while standing still
- Moves forward and backward by tilting the body
- Turns left and right by rotating the wheels in opposite directions
- Adjusts speed and direction via a Bluetooth-connected app
- Calibrates gyroscope and motors automatically on startup
Software
- Framework
- Arduino
- Languages
- Arduino
- License
- AGPL-3.0-only
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.
- 1Open the Arduino IDE and load the provided balance bot sketch
- 2Connect the DengFOC board to the computer via USB
- 3Select the correct board and port in the Arduino IDE
- 4Upload the sketch to the DengFOC board
- 5Power on the robot and wait for gyroscope and motor calibration
- 6Pair the robot with the Bluetooth app and start controlling it
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 e8ae0bf.
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/dengfoc-balance-bot) [](https://robotheca.org/robots/dengfoc-balance-bot)
Licence and credits
Robot ID
RobothecaDengFOC Balance Bot
A self-balancing robot based on DengFOC motor driver and SimpleFOC, featuring Bluetooth control via a WeChat mini-program.
- Type
- Wheeled
- Level
- Intermediate
Licence: AGPL-3.0-only, hardware and softwareCommercial use: Allowed
Buildability: 63/100, Buildable with some effort
Licences read from the files at commit e8ae0bf
- Licenses
- AGPL-3.0-only (opens in a new tab), hardware and software
- Commercial use
- Allowed
- Made by
@ToanTech (opens in a new tab), in github.com/ToanTech/Balance_Bot_DengFOC (opens in a new tab) at commit e8ae0bf
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.