Skip to the content
2 layers88 × 51.5 mmSelf Balanced Inverted Pendulum, the printed circuit board in 3D

Self Balanced Inverted Pendulum

tdestebe/Self_Balanced_Inverted_Pendulum

Self Balanced Inverted Pendulum

Size
88 × 51.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
33
Pads
67
Tracks, vias
5, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Jan 2026
Updated
4 Apr 2026

Overview

Self Balanced Inverted Pendulum is an open-source printed circuit board by tdestebe, from the tdestebe/Self_Balanced_Inverted_Pendulum repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 88 × 51.5 mm with 21 parts on 33 nets, routed with 5 tracks and 0 vias.

Its parts include 3 resistors, 2 connectors, 1 capacitor and 1 transistor.

README

README.md

Self_Balanced_Inverted_Pendulum

Self Balanced Inverted Pendulum

This project aims to build an inverted pendulum stabilized by a single reaction wheel. The position of the pendulum is detected by a 3-axis analog gyroscope sensor (MPU6050 module). The position is analyzed inside an Arduino Nano that sends appropriate signals to a motor (Nidec 24H404H160).

3D CAD Model

The assembly of the CAD models and parts are designed with FreeCAD. Following worbenchs are used:

  • Part design to design 3D mechanical parts

  • Assembly 4.1 based on local axis systems

  • Fasteners for all screws and nuts

  • Mesh to create and export STL files

thumbnail

Inverted pendulum - FreeCAD mesh export

FreeCAD files are available at freeCad

STL 3D files are at STL_files

Simulation with openModelica

Simulation is performed through an openModelica implementation into the package SelfBalancedWheelPackage. Main Modelica model SingleWheelRobot calls model Dynamics in which PID, Motor, etc are implemented and calls model Animation to display rotation of 3D models of the reaction wheel and the arm.

thumbnail

Inverted pendulum - Modelica main model

thumbnail

thumbnail
Inverted pendulum - Modelica Dynamics model

Inverted pendulum - Modelica Animation model

Source files are available at Self Balaced Wheel Package

Arduino code and circuits

Code (.ino)

The source code for Arduino is provided at code. It is similar to the code written by Remigijus (see remrc - One-Axis-Reaction-Wheel-Stick).

Fritzing schema

The schema is also identical to the original one posted by Remigijus. I just rewrote it with Fritzing, including a breadboard and stored the source at circuit.

thumbnail

thumbnail
Fritzing schema - Original

Fritzing schema - Breadboard

KiCad circuit

In addition to Fritzing schema, I implemented KiCad schematic circuit and generated a KiCad PCB for visualisation into the 3D CAD assembly.

Kicad project is stored at kiCAD.

thumbnail

thumbnail
KiCad circuit - Schema

KiCad circuit - PCD 3D view

Parts

21
QtyValueFootprintReferences
42.6mmArduino_MountingHole:MountingHole_3.2mmHole, Hole, Hole, Hole
4MountingHole_65milArduino_MountingHole:MountingHole_65milMH1, MH2, MH3, MH4
23.6mmArduino_MountingHole:MountingHole_3.2mmHole, Hole
1100nF 35VCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1 (100nF 35V)
122 kOhmResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1 (22 kOhm)
12N2222Package_TO_SOT_THT:TO-92L_InlineQ1 (2N2222 - BC547)
133 kOhmResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2 (33 kOhm)
16.8 kOhmResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3 - 6.8 kOhm
1AnalogConnector_PinHeader_2.54mm:PinHeader_1x15_P2.54mm_VerticalJ1
1Battery 500 mAh Lipo (11.1 V)TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal500 mAh Lipo 11.1 V
1Buzzer 5VBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1 (Buzzer 5V)
1DigitalConnector_PinHeader_2.54mm:PinHeader_1x15_P2.54mm_VerticalJ2
1~Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalMPU-6050
1~Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalNidec_24H404H160

Similar boards

  • 2 layers28.3 × 39.8 mmLevelShifter, the printed circuit board in 3D

    LevelShifter

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    21 parts5.1kGPL-3.0
  • 2 layers171.2 × 72.9 mmAmiga gfxcard before pour, the printed circuit board in 3D

    Amiga gfxcard before pour

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    21 parts1k
  • 2 layers93.9 × 46 mmRectifier, the printed circuit board in 3D

    Rectifier

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    21 parts990GPL-3.0
  • 2 layers45.5 × 42.9 mmEsphome han reader, the printed circuit board in 3D

    Esphome han reader

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    21 parts915
  • 2 layers31.8 × 14.5 mmEsp prog, the printed circuit board in 3D

    Esp prog

    drandyhaas/KiCadRoutingTools

    A set of Python/Rust tools to aid routing in KiCad

    21 parts744MIT
  • 2 layers23.5 × 15.8 mmQuiverAttachPCB, the printed circuit board in 3D

    QuiverAttachPCB

    Arrow-air/project-quiver

    Project Quiver documentation, designs, and project artifacts.

    21 parts617CERN-OHL-S-2.0
  • 2 layers69.9 × 41.3 mmHeaterMeterLCD, the printed circuit board in 3D

    HeaterMeterLCD

    CapnBry/HeaterMeter

    HeaterMeter and LinkMeter Arduino BBQ Controller

    21 parts557MIT
  • 2 layers161.3 × 111.8 mmDoj, the printed circuit board in 3D

    Doj

    kelu124/echomods

    Open source ultrasound processing modules and building blocks

    21 parts463

Questions

How big is the Self Balanced Inverted Pendulum PCB?

It measures 88 × 51.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Self Balanced Inverted Pendulum use?

21 parts. 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 Self Balanced Inverted Pendulum KiCad files?

From the tdestebe/Self_Balanced_Inverted_Pendulum repository on GitHub, at the commit this page was made from: the board is kiCAD/kiCAD.kicad_pcb and its schematic kiCAD/Pendulum/Pendulum.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Self Balanced Inverted Pendulum design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).