Skip to content

Photo and 3D model

This repository has no photo of the robot yet.

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)

Open source · free filesRobot ID

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

The creator's 6 steps, each linked to its instructions
  1. Gather required components
  2. Wire components according to the wiring table
  3. Assemble the robot structure
  4. Upload the balance bot code
  5. Calibrate the gyroscope and motors
  6. 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

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

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.

  1. 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
  2. 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
  3. 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
  1. 3SoftwareCode in this repository, instructions to install or run it, built on Arduino.15/15
  2. 5LicensesHardware: AGPL-3.0-only; software: AGPL-3.0-only.10/10
  3. –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
  4. –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

  • 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

Written by Robotheca from the project's documents, not by its creator
  • 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.

  1. 1Open the Arduino IDE and load the provided balance bot sketch
  2. 2Connect the DengFOC board to the computer via USB
  3. 3Select the correct board and port in the Arduino IDE
  4. 4Upload the sketch to the DengFOC board
  5. 5Power on the robot and wait for gyroscope and motor calibration
  6. 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

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/dengfoc-balance-bot/badge.svg)](https://robotheca.org/robots/dengfoc-balance-bot)
[![Robotheca buildability](https://robotheca.org/robots/dengfoc-balance-bot/score.svg)](https://robotheca.org/robots/dengfoc-balance-bot)

Licence and credits

Robot ID

Robotheca
No photo yet

DengFOC 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

robotheca.org/robots/dengfoc-balance-bot

Licenses
AGPL-3.0-only (opens in a new tab), hardware and software
Commercial use
Allowed

Other wheeled robots

All 95 wheeled robots
  • Ready to build

    Open source · free files

    LeKiwi

    Wheeled · Intermediate

    Score
    Buildability 95 out of 100
    Cost
    €545.80
  • 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

    Open source · free files

    Just1

    Wheeled · Intermediate

    Score
    Buildability 94 out of 100
    Cost
    $250≈ €229
  • Ready to build

    Open source · free files

    Sawppy the Rover

    Wheeled · Intermediate

    Score
    Buildability 94 out of 100
    Cost
    $500≈ €459

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