Skip to the content
2 layers90 × 70 mmPerfboard, the printed circuit board in 3D

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

1

README

README.md

2DoFSBP

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
  • 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

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
QtyValueFootprintReferences
4100 nFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC7, C8, C11, C12
2330 nFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC5, C6
247 nFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC9, C10
2470 uFCapacitor_THT:CP_Radial_D10.0mm_P5.00mmC2, C3
1220 uFCapacitor_THT:CP_Radial_D8.0mm_P3.50mmC1
147 uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC4
1CONN_ESP32_LConnector_PinSocket_2.54mm:PinSocket_1x19_P2.54mm_VerticalJ4
1CONN_ESP32_RConnector_PinSocket_2.54mm:PinSocket_1x19_P2.54mm_VerticalJ5
1CONN_MPU6050Connector_PinSocket_2.54mm:PinSocket_1x08_P2.54mm_VerticalJ6
1CONN_NIDEC_0Connector_JST:JST_EH_S8B-EH_1x08_P2.50mm_HorizontalJ2
1CONN_NIDEC_1Connector_JST:JST_EH_S8B-EH_1x08_P2.50mm_HorizontalJ3
1Conn_Coaxial_PowerConnector_BarrelJack:BarrelJack_HorizontalJ7
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU3
1MODULE_NODEMCU-32SModules:MODULE_NODEMCU-32SMCU
1MPU-6050Modules:MPU-6050IMU
1Perfboard_90x70_2.54mmPerfboards:Perfboard_90x70_2.54mmPB

More from eduardo-ufmg/2DoFSBP

1
  • 2 layers94 × 61 mm2DoFSBP, the printed circuit board in 3D

    2DoFSBP

    eduardo-ufmg/2DoFSBP

    A two degrees of freedom self balancing pendulum.

    19 partsMIT

Similar boards

  • 2 layers23 × 120 mmFeather multi oled, the printed circuit board in 3D

    Feather multi oled

    idlehandsdev/volumetric_display

    TENEX OLED Displays

    72 parts312CC-BY-SA-4.0
  • 4 layers95 × 50 mmControl board, the printed circuit board in 3D

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

    BluePhil

    pms67/BluePhil

    STM32-based development board with various sensors.

    106 parts53MIT
  • 2 layers36 × 43 mmAsac fc rev a, the printed circuit board in 3D

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

    ControlBoard

    paradise-fi/RoFI

    Distributed Metamorphic Robots

    224 parts42
  • 2 layers98.5 × 17.8 mmWeeSpindel, the printed circuit board in 3D

    WeeSpindel

    c-/weeSpindel

    Smaller, simpler version of the iSpindel. NOTE: Work-in-progress

    22 parts17
  • 2 layers36.2 × 36.2 mmDrone PCB, the printed circuit board in 3D

    Drone PCB

    PlumPot55/PCB_Designs

    Source Files of our PCB we did as a community

    50 parts15
  • 2 layers26 × 21.3 mmPModBoard, the printed circuit board in 3D

    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).