DengFOC Balance Bot
A self-balancing robot based on DengFOC motor driver and SimpleFOC, featuring Bluetooth control via a WeChat mini-program.
- Wheeled
- Open source
- arduino
- 3D printable
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).
- Hardware license
- AGPL-3.0-only (opens in a new tab)
- Software license
- AGPL-3.0-only (opens in a new tab)
- Commercial use
- Allowed
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)
What it can do
Written by Robotheca from the project's documents.
- 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
Bill of materials
This repository has no parts list Robotheca can read yet.
Build guide
The creator's steps, each with its instructions.
- 1Gather required components
- 2Wire components according to the wiring table
- 3Assemble the robot structure
- 4Upload the balance bot code
- 5Calibrate the gyroscope and motors
- 6Test 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.
Wiring and electronics
Notes written by Robotheca from the project's documents.
Main parts
- 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
- 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