Skip to the content
2 layers42 × 59.5 mmPID Seesaw, the printed circuit board in 3D

A simple project to understand the basics of a PID Controller.

Size
42 × 59.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
31
Pads
45
Tracks, vias
27, 0
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
17 Jun 2025
Updated
4 Jul 2025

Overview

PID Seesaw is an open-source printed circuit board by VSSUT-Robotics-Society, from the VSSUT-Robotics-Society/PID-Seesaw repository on GitHub. It is a 2-layer board of 42 × 59.5 mm with 10 parts on 31 nets, routed with 27 tracks and 0 vias.

It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

README.md

PID Seesaw

Overview

The PID Seesaw project demonstrates the application of a Proportional-Integral-Derivative (PID) controller to balance a seesaw (inverted pendulum) system. The objective is to maintain the ball's position by dynamically adjusting the control input based on real-time feedback from the system.

Figure 1: Seesaw CAD Model Figure 2: Seesaw IRL Model Figure 3: Seesaw with Ball

System Description

  • Plant: The system consists of a seesaw with a ball mounted on a pivot, which is inherently unstable and requires active control to maintain balance.
  • Sensor: A distance sensor is used to measure the distance of the ball from an extreme end of the seesaw.
  • Actuator: A servo applies corrective torque or force to bring the ball back to the set point.
  • Controller: The PID controller processes the error signal (difference between the desired and actual position) and computes the control action.

PID Control Algorithm

The PID controller output is given by:

text
u(t) = Kp * e(t) + Ki * ∫e(t)dt + Kd * de(t)/dt

Where:

  • e(t): Error signal (desired position - measured position)
  • Kp: Proportional gain (reacts to current error)
  • Ki: Integral gain (reacts to accumulated error)
  • Kd: Derivative gain (reacts to rate of error change)

Tuning these gains is essential for achieving a balance between responsiveness and stability.

Implementation Steps

  1. System Modeling: Derive and linearize the equations of motion for the seesaw.
  2. Sensor Integration: Connect and calibrate the distance sensor for accurate feedback.
  3. Controller Design: Implement the PID algorithm in software (e.g., Arduino, MATLAB, or Python).
  4. Tuning: Adjust Kp, Ki, and Kd to minimize overshoot, settling time, and steady-state error.
  5. Testing: Apply disturbances and observe the system's ability to return to equilibrium.
  6. Analysis: Record and analyze the system's response to various test cases.

Results and Discussion

  • The PID controller can effectively stabilize the seesaw when properly tuned.
  • The proportional term provides immediate correction, the integral term eliminates steady-state error, and the derivative term helps dampen oscillations.
  • Challenges include sensor noise, actuator limitations, and non-linearities in the physical system.
  • Experimental results show that the system can reject small disturbances and maintain balance, with performance depending on the quality of tuning and hardware.

Applications

  • Robotics and automation
  • Educational demonstrations of feedback control
  • Research in control systems and mechatronics

References

PID Seesaw - Report - A detailed report on the PID Seesaw project, including mathematical modeling, implementation details, and experimental results.

Parts

10
QtyValueFootprintReferences
112V_INTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ8
1Arduino_Nano_v3.xModule:Arduino_NanoA1
1LOGORS Branding:RS Logo (10mm)G***
1ServoConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ7
1Sharp0Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1Sharp1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1VIN+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ1
1VIN-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ2
1VOUT+Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ4
1VOUT-Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ3

Similar boards

  • 2 layers57 × 55.2 mmLogicAnalyzer, the printed circuit board in 3D

    LogicAnalyzer

    gusmanb/logicanalyzer

    24 channel, 100Msps logic analyzer hardware and software

    10 parts5.1kGPL-3.0
  • 2 layers32.2 × 15.4 mmProtector, the printed circuit board in 3D

    Protector

    byrantech/laptop

    anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

    10 parts4.3kMIT
  • 2 layers26 × 18 mmConn, the printed circuit board in 3D

    Conn

    yaqwsx/KiKit

    Automation tools for KiCAD

    10 parts2.1kMIT
  • 2 layers44.3 × 30.5 mmLime2-SATA RevA, the printed circuit board in 3D

    Lime2-SATA RevA

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    10 parts1.5k
  • 2 layers17.8 × 43.2 mmNano Adapter, the printed circuit board in 3D

    Nano Adapter

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    10 parts1.1kGPL-3.0
  • 2 layers53.9 × 23.2 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    10 parts1kGPL-3.0

Questions

How big is the PID Seesaw PCB?

It measures 42 × 59.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the PID Seesaw use?

10 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 PID Seesaw KiCad files?

From the VSSUT-Robotics-Society/PID-Seesaw repository on GitHub, at the commit this page was made from: the board is PCB/PID Seesaw.kicad_pcb and its schematic PCB/PID Seesaw.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the PID Seesaw design in my own project?

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