Skip to the content
2 layers80 × 66 mmEsp32 self balancing robot, the printed circuit board in 3D

Esp32 self balancing robot

arthurlawson/self-balancing-robot-v21

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

2

README

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 .3mf files, 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
QtyValueFootprintReferences
447Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR7, R8, R9, R10
30.1ufCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC3, C4, C5
2220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5
2BC337Package_TO_SOT_THT:TO-92_InlineQ1, Q2
2LOGOProject_Logo:robot_logoG***, G***
11000uFCapacitor_THT:CP_Radial_D8.0mm_P3.80mmC1
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
120kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1470uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC2
1DRV8833_BreakoutConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ4
1ESP32-S3-DevKitCPCM_Espressif:ESP32-S3-DevKitCJ1
1LED+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH5
1LED-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH6
1LEFT_MOTORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1LIPO+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH1
1LIPO-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH2
1MPM3610_BreakoutConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1MPU6050_BreakoutConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
1RIGHT_MOTORConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ6
1SPDT_INConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH3
1SPDT_OUTConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH4
1SPEAKER+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH7
1SPEAKER-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalH8

The 31 most common of 36 parts.

Similar boards

  • 2 layers189.2 × 148.6 mmEnlarger, the printed circuit board in 3D

    Enlarger

    ahradrhah/pcb

    65 parts
  • 2 layers85 × 90 mmKiCad pcb telemetria, the printed circuit board in 3D

    KiCad pcb telemetria

    thegm-Gabriel/instrumentacao-ElectricCarUFSM

    Projeto Carro Elétrico UFSM-CS

    40 parts
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    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 mmTraeger rev 2.3.0.kicad pro, the printed circuit board in 3D

    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 mmGameboy3, the printed circuit board in 3D

    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 mmMem esp, the printed circuit board in 3D

    Mem esp

    fread/visvitalis

    A very simple modular relay computer

    71 parts7
  • 2 layers90 × 102 mmPL Toon, the printed circuit board in 3D

    PL Toon

    pl-toon/pl-toon-codes

    PL-TOON material

    39 parts7

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.