

Esp32 self balancing robot
ESP32-S3 (N16R8) drivable self-balancing robot with a custom Kalman filter & PID control system. Built on PlatformIO featuring an MPU6050 IMU, DRV8833 motor driver to drive 2 BDC TT Motors, and 2S LiPo battery. Includes active battery safety monitoring, lighting, and onboard speakers.
- Size
- 80 × 66 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 36
- Nets
- 57
- Pads
- 116
- Tracks, vias
- 117, 0
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 2 Sep 2026
- Updated
- 29 Sep 2026
Overview
Esp32 self balancing robot is an open-source printed circuit board by arthurlawson, from the arthurlawson/self-balancing-robot-v2 repository on GitHub. It is a 2-layer board of 80 × 66 mm with 36 parts on 57 nets, routed with 117 tracks and 0 vias.
It is built around the ESP32-S3-DEVKITC-1-N8 and BC337. Its parts include 8 resistors, 6 connectors, 5 capacitors and 2 transistors. It belongs with the robots and motor control and power boards and the ESP32 boards of this library.
Main components
2README
README.md🤖 Self-Balancing Robot V2
A Drivable Self-Balancing Robot That Screams When It Falls!
An advanced self-balancing robot utilizing the ESP32-S3 (N16R8) computing core, driven by a custom Kalman Filter and high-frequency PID control loop system.
This project features a fully custom-designed main controller PCB, proudly sponsored and manufactured by JLCPCB.
Built entirely within the PlatformIO ecosystem, this hardware platform integrates an MPU6050 IMU, DRV8833 motor driver, 2S LiPo battery safety logic, lighting, and onboard speaker playback systems.
Core Features
- Advanced Estimation: Custom Kalman Filter implementation paired with an MPU6050 IMU for precise roll angle determination.
- Wireless Remote Control: Directional steering control handled over a dedicated ESP-NOW wireless connection.
- Motion: Dual-motor balancing algorithms with custom gain scheduling to aid in active control.
- Hardware Protection: Automated motor shutdown constraints to prevent destructive runaway crashes.
- Power Management: Active voltage checks safeguarding the 2S LiPo system from dropping beneath unsafe cell margins.
- Audio & Visuals: Integrated 2P edison filament LED's with status animations alongside audio playback to make the robot scream.
Quick Navigation Hub
To get started with assembling or programming the robot, navigate to the specific setup guides below:
- Firmware Setup & Deployment: Complete code overview, configuration walkthrough for
config.h, custom audio formatting parameters, and PlatformIO flashing instructions. - Hardware Production & Assembly: Access to print-ready
.3mffiles, raw SolidWorks CAD models, custom KiCad schematics, and factory-ready Gerber packages. - Bill of Materials (BOM): The complete physical and electrical component checklist required to buy, print, and manufacture the robot.
Project License
This repository is distributed under a custom Non-Commercial Open-Source License.
- Personal & Educational Use: Freely allowed to modify, merge, and run the code/hardware assets.
- Commercial Use: Strictly prohibited from being sold, leased, or utilized for paid product development without explicit written consent from the copyright holder.
See the full terms inside the accompanying LICENSE file.
Parts
36| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 47 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R7, R8, R9, R10 |
| 3 | 0.1uf | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C3, C4, C5 |
| 2 | 220 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4, R5 |
| 2 | BC337 | Package_TO_SOT_THT:TO-92_Inline | Q1, Q2 |
| 2 | LOGO | Project_Logo:robot_logo | G***, G*** |
| 1 | 1000uF | Capacitor_THT:CP_Radial_D8.0mm_P3.80mm | C1 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2 |
| 1 | 20k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | 470uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C2 |
| 1 | DRV8833_Breakout | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J4 |
| 1 | ESP32-S3-DevKitC | PCM_Espressif:ESP32-S3-DevKitC | J1 |
| 1 | LED+ | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H5 |
| 1 | LED- | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H6 |
| 1 | LEFT_MOTOR | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J5 |
| 1 | LIPO+ | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H1 |
| 1 | LIPO- | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H2 |
| 1 | MPM3610_Breakout | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | MPU6050_Breakout | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J2 |
| 1 | RIGHT_MOTOR | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J6 |
| 1 | SPDT_IN | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H3 |
| 1 | SPDT_OUT | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H4 |
| 1 | SPEAKER+ | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H7 |
| 1 | SPEAKER- | Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_Vertical | H8 |
The 31 most common of 36 parts.
Similar boards
- 2 layers189.2 × 148.6 mm

- 2 layers85 × 90 mm

KiCad pcb telemetria
thegm-Gabriel/instrumentacao-ElectricCarUFSM
Projeto Carro Elétrico UFSM-CS
40 parts - 2 layers207 × 104 mm

Marble sequencer main circuits
felicien-brochu/midi_marble_sequencer
A MIDI sequencer using marbles.
42 parts - 4 layers95 × 95 mm

Cube motherboard
willem-pennings/balancing-cube
A cube that balances itself in a corner or edge using reaction wheels
52 parts1.1kGPL-3.0 - 2 layers129.9 × 63.6 mm

Traeger rev 2.3.0.kicad pro
jazzmonger/Traeger-PID-Controller
Traeger Smoker/Grill Controller based on an
45 parts36 - 2 layers168.8 × 78.9 mm

Gameboy3
ohasanov-hbrw/tribit32-advanced
A tri-microcontroller, overengineered GameBoy Advance clone. More value was given to the controls and the exterior look, which is cool!
61 parts8 - 2 layers134.6 × 49.5 mm

- 2 layers90 × 102 mm

Questions
How big is the Esp32 self balancing robot PCB?
It measures 80 × 66 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Esp32 self balancing robot use?
36 parts, built around the ESP32-S3-DEVKITC-1-N8 and BC337. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Esp32 self balancing robot KiCad files?
From the arthurlawson/self-balancing-robot-v2 repository on GitHub, at the commit this page was made from: the board is hardware/electronics/source/esp32_self_balancing_robot.kicad_pcb and its schematic hardware/electronics/source/esp32_self_balancing_robot.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Esp32 self balancing robot design in my own project?
Its repository states no licence, so its author keeps all rights: ask arthurlawson before reusing the design.