Skip to the content
2 layers90 × 65.5 mmNew SBR, the printed circuit board in 3D

A two-wheeled self-balancing inverted pendulum robot built using an STM32 microcontroller. The robot utilizes an MPU6050 Inertial Measurement Unit (IMU) to sense its orientation, processes this data through a PID loop…

Size
90 × 65.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
60
Nets
84
Pads
228
Tracks, vias
420, 33
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
19 May 2026
Updated
14 Oct 2026

Overview

New SBR is an open-source printed circuit board by Robbie-2055, from the Robbie-2055/Self-Balancing-Robot-STM32- repository on GitHub. It is a 2-layer board of 90 × 65.5 mm with 60 parts on 84 nets, routed with 420 tracks and 33 vias.

It is built around the L298N, MPU-6050 and JUMPER3, with the LM1117T-3.3 among its other parts. Its parts include 22 capacitors, 10 diodes, 9 resistors, 3 ICs and 3 connectors. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

4

README

README.md

STM32 Self-Balancing Robot

Project Status Platform Language

A two-wheeled self-balancing inverted pendulum robot built using an STM32 microcontroller. The robot utilizes an MPU6050 Inertial Measurement Unit (IMU) to sense its orientation, processes this data through a PID loop, and drives two DC shaft motors via an L298N motor driver to maintain perfect equilibrium.

This project is split into two distinct execution phases: prototyping with off-the-shelf modules and migrating to a custom-designed Printed Circuit Board (PCB).


📌 Project Roadmap

  • Phase 1: Breadboard Prototype
    • Wire STM32, MPU6050, and L298N on a chassis.
    • Implement basic I2C communication and PWM motor control.
  • Phase 2: Firmware Optimization
    • Tune the PID parameters ($K_p$, $K_i$, $K_d$).
  • Phase 3: Custom PCB Layout
    • Design a compact, integrated schematic in KiCad

🛠️ Hardware Architecture

Phase 1: Prototype Components

  • Microcontroller: STM32 (e.g., STM32F103C8T6 "Blue Pill") — Handles high-speed sensor parsing, PID calculation, and PWM generation.
  • IMU Sensor: MPU6050 — Configured via I2C to read accelerometer and gyroscope raw data.
  • Motor Driver: L298N Dual H-Bridge — Regulates power and direction to the motors based on logic signals from the STM32.
  • Actuators: 2x DC Gear Shaft Motors (equipped with quadrature encoders for speed feedback).
  • Power Supply: 3S LiPo battery (11.1V) to power the motors, stepped down via buck converter to 5V/3.3V for logic.

Phase 2: Custom Board Upgrades

To reduce wiring complexity, eliminate inductive noise, and minimize the physical footprint:

  • Integrated MCU: STM32 chip placed directly on-board with dedicated decoupling capacitors and an external crystal oscillator.
  • On-board Sensors: Hardwired MPU6050 footprint to prevent I2C signal degradation over jumper wires.
  • Motor Driver: The L298N Motor driver together with all support components placed directly on the custom board

Current developments

https://github.com/user-attachments/assets/f44257d5-607a-4bce-967d-3fb6638ffd92

Screenshot 2026-05-20 002936

https://github.com/user-attachments/assets/f6ba3c8e-9986-4cd3-9cd2-4a73ed5fd0c9

Parts

60
QtyValueFootprintReferences
81N4007Diode_SMD:D_SMAD4, D5, D6, D7, D8, D9, D10, D11
7100nFCapacitor_SMD:C_0603_1608MetricC1, C2, C4, C23, C24, C25, C26
4MountingHoleMountingHole:MountingHole_2.2mm_M2H1, H2, H3, H4
30.1uFCapacitor_SMD:C_0402_1005MetricC3, C19, C20
310KResistor_SMD:R_0603_1608MetricR3, R4, R7
21.5pFCapacitor_SMD:C_0603_1608MetricC12, C13
220pFCapacitor_SMD:C_0603_1608MetricC10, C11
2220uFCapacitor_SMD:C_0603_1608MetricC17, C18
24.7KResistor_SMD:R_0402_1005MetricR1, R2
24.7kResistor_SMD:R_0402_1005MetricR6, R8
24.7uFCapacitor_SMD:C_0603_1608MetricC14, C16
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalMotor1, Motor2
10.01uFCapacitor_SMD:C_0603_1608MetricC15
110uFCapacitor_SMD:C_0603_1608MetricC27
11KResistor_SMD:R_0603_1608MetricR5
11kResistor_SMD:R_0402_1005MetricR9
12.2nFCapacitor_SMD:C_0402_1005MetricC21
12.2uFCapacitor_SMD:C_0603_1608MetricC9
125MHZ 9PFCrystal:Crystal_HC49-U_VerticalY1
132.768K 6PFCrystal:Crystal_C38-LF_D3.0mm_L8.0mm_VerticalY2
1Conn_01x04_SocketConnector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ6
1Conn_01x06_SocketConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ4
1Jumper_3Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical9v_PWR1
1L298NPackage_TO_SOT_THT:TO-220-15_P2.54x5.08mm_StaggerOdd_Lead4.58mm_VerticalU4
1LEDLED_SMD:LED_0603_1608MetricD12
1LEDLED_SMD:LED_0402_1005MetricD1
1LM1117T-3.3Package_TO_SOT_THT:TO-220-3_Vertical3.3V_Reg1
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_Vertical5v_Reg1
1MPU-6050Sensor_Motion:InvenSense_QFN-24_4x4mm_P0.5mm_NoMaskU3
1STM32F411RCTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU1
1SW_PushButton_Switch_SMD:SW_SPST_TL3305ARESET1
1SW_SPDTButton_Switch_THT:SW_Slide_SPDT_Straight_CK_OS102011MS2QPWR_SW3
1Screw_Terminal_01x03TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_HorizontalJ3

Similar boards

  • 2 layers99.5 × 99.5 mmSchematicKiCadProyect, the printed circuit board in 3D

    SchematicKiCadProyect

    dduarteCE/Robot-vacuum

    Embedded Linux robotic vacuum system built with Yocto on Raspberry Pi 4, featuring autonomous navigation, audio playback, and remote control through a web interface.

    42 parts1MIT
  • 2 layersPlan, the printed circuit board in 3D

    Plan

    runariel/Fuzzy_Car

    Planing to make a self driving car by Arduino

    67 parts1
  • 2 layers43.2 × 17.8 mmBeaverworksGit, the printed circuit board in 3D

    BeaverworksGit

    AyaanZ1/beaverworksGit

    hello.

    9 parts
  • 4 layers53.3 × 59.6 mmProject-04-Predictive Maintenance system PCB, the printed circuit board in 3D

    Project-04-Predictive Maintenance system PCB

    Darshan7052006/PCB-Design-Projects

    Collection of PCB designs created using KiCad. Includes power supplies, embedded systems, sensor boards, and hardware projects with schematics, PCB layouts, manufacturing files, and documentation.

    32 parts
  • 2 layers120 × 110.5 mmGoyala Fang PCB, the printed circuit board in 3D

    Goyala Fang PCB

    prasannan-robots/Goyala_Fang

    13 parts
  • 2 layers100 × 80 mmMotor monitor pcb, the printed circuit board in 3D

    Motor monitor pcb

    shanalaufer/motor-monitor

    AI-powered motor fault detection system

    11 parts
  • 2 layers68.6 × 53.3 mmDw probe tht, the printed circuit board in 3D

    Dw probe tht

    felias-fogg/dw-link

    An Arduino-UNO-based debugWIRE hardware-debugger

    28 parts90GPL-3.0
  • 2 layersT41-Main+RF board V012, the printed circuit board in 3D

    T41-Main+RF board V012

    DRWJSCHMIDT/T41

    This is the repository for the officially released V10, V11, and V12 versions of the T41 Software Defined Transceiver hardware and kits.

    255 parts66

Questions

How big is the New SBR PCB?

It measures 90 × 65.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the New SBR use?

60 parts, built around the L298N, MPU-6050, JUMPER3 and LM1117T-3.3. 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 New SBR KiCad files?

From the Robbie-2055/Self-Balancing-Robot-STM32- repository on GitHub, at the commit this page was made from: the board is New_SBR/New_SBR.kicad_pcb and its schematic New_SBR/New_SBR.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the New SBR design in my own project?

Its repository states no licence, so its author keeps all rights: ask Robbie-2055 before reusing the design.