Skip to content

2D beam ball balance using PID controller implemented on an arduino

License

Notifications You must be signed in to change notification settings

JFBarryLi/PID_BallBalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PID_BallBalancer

2D beam ball balance using PID controller implemented on an arduino.

The aim of the PID_BallBalancer is to use a PID controller to adjust the location of the ball to a desired point on the beam.

To determine the location of the ball, an ultrasonic sensor will be used.

The calculated distance from the sensor is then fed into the PID algorithm implemented on an Arduino, which outputs a value corresponding to a change of angle on the servo motor.

The constants of the PID controller is determined by finding the transfer function of the system and then designed using an arbitrary percent overshoot and settling time.

The constants can also be determined by manually tuning the system.

Materials Used

  • Arduino microcontroller (Uno R3)
  • Ultrasonic sensor (HC-SR04)
  • Servo Motor (SG90)
  • Balsa Wood Frame

Arduino Connections

Arduino Connections Image

Dimensions [in]

Dimensons Image

SolidWorks Rendering

SolidWorks Rendering Image

About

2D beam ball balance using PID controller implemented on an arduino

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published