
Photo and 3D model
3D preview converted from github.com/FranHawk/simplefoc_balance_car at 4fd3b23, under MIT. View the original files from GitHub (350 KB) (opens in a new tab)
SimpleFOC Balance Car
Wheeled
A self-balancing robot car driven by two BLDC motors using the SimpleFOC library and ESP32 microcontroller.
Before you build
- Tools
- 3D printer, soldering iron, screwdriver, wire cutters/strippers
- Level
- Intermediate
- Licence
- MIT (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 4fd3b23. Something out of date? Tell us
Project information
- Buildability
- 75/100Buildable with some effort
- Parts
- 10 lines
- Works with
- Arduino
- Sensors
- IMU
- Power
- 12 V
This repository contains executable files that Robotheca doesn't check. Only run them if you trust the creator.
Suggested by Robotheca, created by @FranHawk (opens in a new tab), from github.com/FranHawk/simplefoc_balance_car (opens in a new tab), pinned to commit 4fd3b23 (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 28 June 2022.
Build it
- Assemble the circuit boards
- Prepare the mechanical components
- Assemble the motor units
- 3D print the wheels and mounts
- Mount the electronics and battery
- Connect all components
- Flash the firmware
- Calibrate and test the balance car
The guide appears here as you scroll.
Guide by @FranHawk (readme.md), under MIT. The English translation is by Robotheca, shared under the same license.
What to buy
10 of 10 parts shown
| Item | Part | Qty | Unit price | Amount | Source |
|---|---|---|---|---|---|
| 01 | 100nf | 1 | – | – | – |
| 02 | 10u | 1 | – | – | – |
| 03 | HDGC1002WR-S-4P | 1 | – | – | LCSC |
| 04 | HDGC1002WR-S-3P | 1 | – | – | LCSC |
| 05 | HDR-F-2.54_1x3 | 1 | – | – | LCSC |
| 06 | HDR-M-2.54_1x4 | 1 | – | – | LCSC |
| 07 | 短路连接点 | 3 | – | – | MONIK2020 |
| 08 | 4.7k | 2 | – | – | – |
| 09 | 10K | 1 | – | – | – |
| 10 | AS5600-ASOM | 1 | – | – | LCSC |
- 1100nf––
- 110u––
- 1HDGC1002WR-S-4P–LCSC
- 1HDGC1002WR-S-3P–LCSC
- 1HDR-F-2.54_1x3–LCSC
- 1HDR-M-2.54_1x4–LCSC
- 3短路连接点–MONIK2020
- 24.7k––
- 110K––
- 1AS5600-ASOM–LCSC
10 of 10 needed parts have no price in the source, so there is no parts total.
Why it scores 75
75/100
Buildable with some effort
How complete the published files are for rebuilding this robot, measured by Robotheca at commit 4fd3b23. 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.
- 2Parts list10 lines: 0 with a price, 0 with a shop link.Most points to gain: Add prices to 10 lines. Add shop links to 10 lines.5/20
- 4DocumentationREADME of 7,118 characters with 0 pictures; 8 build steps.Show the robot and its assembly in pictures in the README.10/15
Full points: 3D and CAD files, Software, Licenses; not counted: Robot description, Simulation
- 13D and CAD files2 printable parts (STL, 3MF), 2 CAD source files.20/20
- 3SoftwareCode in this repository, instructions to install or run it, built on Arduino.15/15
- 5LicensesHardware: MIT; software: MIT.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
- ESP32 microcontroller
- Two L6234P three-phase H-bridge motor drivers
- Two AS5600 magnetic encoders via I²C
- Two INA240A1 current sensors
- MPU6050 6-axis IMU
- WS1802B addressable RGB LEDs on two strips
- ESP-CAM module for Wi-Fi video transmission
- TPS5430 12 V to 5 V buck converter
- AMS1117 5 V to 3.3 V linear regulator
- 3S 900 mAh LiPo battery
Connections: Robotheca's summary
- ESP32 I²C bus to AS5600 encoders (SDA, SCL)
- ESP32 analog inputs to INA240A1 current sensors
- ESP32 GPIO to WS1802B LED strips
- ESP32 UART to ESP-CAM module
- ESP32 PWM outputs to L6234P motor drivers
- 12 V battery to TPS5430 input, TPS5430 output to 5 V rail, AMS1117 input from 5 V rail
Schematics, boards and diagrams
- 1.hardware/pcb/encoder_board/Gerber_PCB_as5600-16mm_2022-05-23.zipGerber (PCB manufacturing)
- 1.hardware/pcb/encoder_board/Schematic_as5600-16mm_2022-05-23.pdfDiagram
- 1.hardware/pcb/main_board/Gerber_PCB_balance_car_esp32_simplefoc.zipGerber (PCB manufacturing)
- 1.hardware/pcb/main_board/Schematic_balance_car_esp32_simplefoc_2022-05-23.pdfDiagram
- 1.hardware/pcb/rgb_board/Gerber_PCB_RGB_strip.zipGerber (PCB manufacturing)
- 1.hardware/pcb/rgb_board/Schematic_RGB_strip_2022-05-23.pdfDiagram
What it can do: Robotheca's summary
- Self-balances on two wheels
- Moves forward, backward and turns via Bluetooth app
- Shows RGB light effects on two LED strips
- Streams video over Wi-Fi using an ESP-CAM module
Software
- Framework
- Arduino
- Languages
- C++, C, Arduino, Shell, Python
- License
- MIT
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 VSCode and PlatformIO
- 2Open the project in PlatformIO
- 3Edit hw_bldc.cpp to remove parameters from motor.initFOC() calls
- 4Flash the firmware to the ESP32
- 5Read the serial output to obtain motor calibration values
- 6Edit hw_bldc.cpp again to insert the calibration values into motor.initFOC() calls
- 7Flash the firmware a second time
- 8Power on the robot and pair the Bluetooth app to control 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
- 3D printable parts1.hardware/stl/
- CAD files1.hardware/stl/
- Parts list file1.hardware/pcb/encoder_board/BOM_PCB_as5600-16mm_2022-05-23.csv
- Robotheca metadatarobotheca.yaml
Every file of the project, at commit 4fd3b23.
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/simplefoc-balance-car) [](https://robotheca.org/robots/simplefoc-balance-car)
Licence and credits
Robot ID
RobothecaSimpleFOC Balance Car
A self-balancing robot car driven by two BLDC motors using the SimpleFOC library and ESP32 microcontroller.
- Type
- Wheeled
- Level
- Intermediate
Licence: MIT, hardware and softwareCommercial use: Allowed
Buildability: 75/100, Buildable with some effort
Licences read from the files at commit 4fd3b23
- Licenses
- MIT (opens in a new tab), hardware and software
- Commercial use
- Allowed
- Made by
@FranHawk (opens in a new tab), in github.com/FranHawk/simplefoc_balance_car (opens in a new tab) at commit 4fd3b23
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,467
- Ready to build

- Ready to build

Open source · free files
Sawppy the Rover
Wheeled · Intermediate
- Score
- Buildability 94 out of 100
- Cost
- $500≈ €458
- 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 1 Dec 2026. The creator's original price always comes first.