

Perfboard
A two degrees of freedom self balancing pendulum.
- Size
- 90 × 70 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 22
- Nets
- 41
- Pads
- 851
- Tracks, vias
- 0, 0
- Routed
- Not yet
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 26 Aug 2025
- Updated
- 22 Nov 2025
Overview
Perfboard is an open-source printed circuit board by eduardo-ufmg, from the eduardo-ufmg/2DoFSBP repository on GitHub, published under the MIT licence. It is a 2-layer board of 90 × 70 mm with 22 parts on 41 nets.
It is built around the MPU-6050. Its parts include 12 capacitors, 6 connectors and 1 IC. It belongs with the ESP32 boards of this library.
Main components
1README
README.md2DoFSBP
A two degrees of freedom self balancing pendulum. 3D Drawing: https://cad.onshape.com/documents/dcaab3bd08b5da9e1fdd55d0/
TODO
Printing
- Print a half-wheel pair
- Conclude motor identification before proceeding
- Print and test a motor connector
- Print and test the base
- Print and test a connector for the wheel guard
- Print and test a wheel guard
- Print and test the second set
Motor Identification
- Test motor
- Gather the following information
- Is the PWM signal active low or active high?
- Which level in the motor's DIR pin makes it rotate counterclockwise (from the motor's perspective, rather than facing its front)?
- When the motor is rotating counterclockwise, does the encoder output from this api increment or decrement? (use attachFullQuad and consider 400 pulses per revolution)
- Create a class for the motor
- Input signal must be a float in [-1, 1]
- -1 → max speed clockwise, 1 → max speed counterclockwise
- Create a class for the encoder
- Counterclockwise movement increments its position, clockwise decrements it
- Test both classes
- Write the code for the identification procedure
- Microcontroller
- Not supposed to compute speed online. Simply collect and transmit the encoder position readings.
- Use a series of steps large enough for it to approach steady state, but not enough for it to reach it. (See PRBS identification)
- Collect the input signal to the motor's object and the output signal from the encoder's object at 10 ms
- Send data to the host at each sampling
- Avoid blocking operations
- Host
- Listen for the experiment data
- Store the experiment data when it is finished
- Preprocess it
- Remove invalid lines
- Compute speed and acceleration from the position
- Fit a standard DC motor transfer function
- Store it and any available statistic about it
- Extend it so U(s) is the input signal to the motor's object and Y(s) is the wheel torque
- Microcontroller
- Write the code for the model validation procedure
- Microcontroller
- Use the same code that was used for the identification
- Host
- Same acquisition and preprocessing as in the identification procedure
- Simulate the model for the collected input
- Compare its output to the captured output from the system
- Microcontroller
Pendulum Modeling
- Capture a simplified geometric model
- Model the MIMO system with inputs T1 and T2 and outputs Theta and Phi, where:
- T1 is the torque of the motor that controls Theta
- T2 is the torque of the motor that controls Phi
- Theta is the pitch angle
- Phi is the roll angle
- Coupling is to be considered
Parts
22| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100 nF | Capacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mm | C7, C8, C11, C12 |
| 2 | 330 nF | Capacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mm | C5, C6 |
| 2 | 47 nF | Capacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mm | C9, C10 |
| 2 | 470 uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C2, C3 |
| 1 | 220 uF | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C1 |
| 1 | 47 uF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C4 |
| 1 | CONN_ESP32_L | Connector_PinSocket_2.54mm:PinSocket_1x19_P2.54mm_Vertical | J4 |
| 1 | CONN_ESP32_R | Connector_PinSocket_2.54mm:PinSocket_1x19_P2.54mm_Vertical | J5 |
| 1 | CONN_MPU6050 | Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_Vertical | J6 |
| 1 | CONN_NIDEC_0 | Connector_JST:JST_EH_S8B-EH_1x08_P2.50mm_Horizontal | J2 |
| 1 | CONN_NIDEC_1 | Connector_JST:JST_EH_S8B-EH_1x08_P2.50mm_Horizontal | J3 |
| 1 | Conn_Coaxial_Power | Connector_BarrelJack:BarrelJack_Horizontal | J7 |
| 1 | LM7805_TO220 | Package_TO_SOT_THT:TO-220-3_Vertical | U3 |
| 1 | MODULE_NODEMCU-32S | Modules:MODULE_NODEMCU-32S | MCU |
| 1 | MPU-6050 | Modules:MPU-6050 | IMU |
| 1 | Perfboard_90x70_2.54mm | Perfboards:Perfboard_90x70_2.54mm | PB |
More from eduardo-ufmg/2DoFSBP
1- 2 layers94 × 61 mm

Similar boards
- 2 layers23 × 120 mm

- 4 layers95 × 50 mm

Control board
ZhuYanzhen1/MM32_CLion
本项目是全国大学生智能车竞赛GDUT 2022年极速越野组的项目文件。采用了LQR控制器和多速率卡尔曼融合算法,并在单片机上实现。This project is the project document for the GDUT 2022 Extreme Off-Road Category of the National Student Intelligent Vehicle Competition.
129 parts58AGPL-3.0 - 2 layers50 × 66 mm

- 2 layers36 × 43 mm

Asac fc rev a
victorhook/asac-fc
asac fc is an rp2040 based flight controller made for FPV drone flying
119 parts52GPL-3.0 - 4 layers305 × 208.3 mm

- 2 layers98.5 × 17.8 mm

- 2 layers36.2 × 36.2 mm

- 2 layers26 × 21.3 mm

PModBoard
pms67/PModlet
PMOD PCB with USB-to-UART converter and IMU (MPU-6050, I2C) for FPGAs.
19 parts15MIT
Questions
How big is the Perfboard PCB?
It measures 90 × 70 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Perfboard use?
22 parts, built around the MPU-6050. 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 Perfboard KiCad files?
From the eduardo-ufmg/2DoFSBP repository on GitHub, at the commit this page was made from: the board is Electronics/perfboard/perfboard.kicad_pcb and its schematic Electronics/PCB/PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Perfboard design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).