Skip to content

This project demonstrates how to balance a two-wheeler bot using PID control.

Notifications You must be signed in to change notification settings

Ariful17/Self-Balancing-Robot-with-PID-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Self-Balancing-Robot-with-PID-Control

Hardware used-

  • Arduino Mega
  • mpu6050 gyro sensor
  • LCD display with keypad
  • L298n motor driver
  • 12V DC motor
  • 12v lipo battery
  • Sonar sensor(optional-for obstacle avoiding)

The code uses PID control parameters to balance the bot. PID stands for propostional-integral-derivative
Kp-parameter for tuning proportional part
Ki-parameter for tuning integral part
Kd-parameter for tuning derivative part
Value of these parameters are choosen by trial and error and then fine tuned for the maximum stability.

The code uses standard algorithm to smooth and filter the gyro sensor data, otherwise there will be too much jerking. One may use Kalman filter for better filtering but it may introduce complexity in the code. Arduino Mega or better microcontroller is recommended

For the structure- 3D printed parts are used(designed in solidworks), GrabCad link for STL files will be given soon

IMG_20210521_075809

About

This project demonstrates how to balance a two-wheeler bot using PID control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages