### DESCRIPTIONThis 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 / COMPONENTSThe 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 led 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 INSTRUCTIONShttps://www.instructables.com/id/Ball-Balancing-PID-System/