
Ball Balancing PID System
### DESCRIPTION
This system holds a ball in balance on a plate. A webcam films the system and a python program analyzes the images to find the position of the ball. The python program calculates the tilting of the tray to prevent the ball from falling.
A proportional-integral-derivative (PID) regulator is used to compensate the movements of the ball. The position and speed of the ball are measured by the camera and these measurements are used by the PID regulator in the python program.
### TECHNICAL DETAILS / COMPONENTS
The PCB is powered with a 5-6v 2A power supply.
PCB components :
1X Atmega32u4 https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 1uf capacitor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 0.1uf capacitor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 10uf capacitor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
2X 22pf capacitor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 10K resistor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 1K resistor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
2X 22 resistor https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
1X 16mhz Quartz https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
usb connector https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
power jack https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
headers https://fr.aliexpress.com/item/ATMEGA32U4-AU-TQFP...
### LEARN / TOPIC / BUILD INSTRUCTIONS
https://www.instructables.com/id/Ball-Balancing-PID-System/
Ball Balancing PID System
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(9)

-
Engineer Mar 22,2025
-
Engineer Jun 13,2024
-
Alex Chorine Sep 15,2021
-
Engineer Jul 06,2020
-
Engineer May 07,2020
-
Yvon Sauvageau Jun 03,2019
-
Angel Genchev Feb 21,2019
-
Alexandr Feb 08,2019
-
Engineer Feb 02,2019
- 4 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10

-
10design
-
10usability
-
10creativity
-
10content

-
2design
-
1usability
-
7creativity
-
10content

-
10design
-
10usability
-
10creativity
-
10content

-
10design
-
9usability
-
10creativity
-
10content
More by Johan Link
-
Commodore 64 1541-II 1581 Floppy Disk Drive C64 Power Supply Unit USB-C 5V 12V DIN connector 5.25
161 1 3 -
Easy to print simple stacking organizer with drawers
87 0 0 -
-
-
-
Modifying a Hotplate to a Reflow Solder Station
1134 1 6 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
636 0 1 -
-
Nintendo 64DD Replacement Shell
494 0 2 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
1438 4 3