PID Ball Balancer



This is a simple 1-Axis Ball Balancer. A spherical Object (preferably a ping-pong ball) is placed on a beam attached to a servo on one end and an ultrasonic sensor on the other end. The objective is to always make sure the ball is at the center of the beam.
The original inspiration for this project came from Electronoobs YouTube Channel, especially the series about PID Controllers.


Not a PID Controller
This is Not the Type of Controller I'm referring to!

This Project will be Continued Later!

Before getting into all the complex controls and stuff, the first thing I did-after building the mechanical contraption-was writing code that checks the overall function of all the included sensors and actuators.
Simply put, I wrote an Arduino program that reads the Ultrasonic Sensor to check that it is working as it should; the program also moves the servo up and down between 30 and 130 degrees to ensure the arm/lever/beam was moving up and down freely and thus allowing the ping-pong ball to roll along the lever freely.
Check out the Code Here.

TLDR

I couldn't get the Ultrasonic Sensor (HY-SRF5) to work as it should and therefore the project cannot proceed. Until I get my hands on a better proximity sensor (or a better way of implementing feedback), this project is PAUSED

Please Refer to The Github Wiki here, for more information about the challenges and overall progress of the project.

For any Questions or Comments, Feel free to Contact Me.