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.
- Comments(0)
- Likes(11)
-
martin buskirk
May 21,2025
-
Engineer
Apr 29,2025
-
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
-
BaBot: Build Your Own Ball-Balancing Robot——Base Board
Note from PCBWay: This page corresponds to the base board. For plate board, please check BaBot: Buil...
-
BaBot: Build Your Own Ball-Balancing Robot——Plate Board
This is the plate board for project BaBot: Build Your Own Ball-Balancing Robot, for more details and...
-
Ball Balancing PID System
### DESCRIPTIONThis system holds a ball in balance on a plate. A webcam films the system and a pytho...
-
-
AEL-2011 Power Supply Module
322 0 1 -
AEL-2011 50W Power Amplifier
296 0 1 -
-
-
Custom Mechanical Keyboard
565 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
230 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
236 0 1 -
-
-
Top Solder Mask
Top Paste Mask
Top Overlay
Top Copper Layer
Keep Out Layer
Bottom Solder Mask
Bottom Overlay
Bottom Copper Layer
Bottom







