Self-Balancing Robot Using Raspberry Pi and PID Controller
Self-Balancing Robot Using Raspberry Pi and PID Controller
ISSN No:-2456-2165
Abstract:- An In essence, a self-balancing robot is an two-wheeled robot that can stand upright on its own. The aim
inverted pendulum. If the center of mass is higher than of this research is to show that a PID controller with more
the wheel axels, it can balance better. A higher center of controllability and adjustability outperforms a conventional
mass translates to a higher moment of inertia, which PID controller. The research revealed the most suitable
translates to a lower angular acceleration. It functions like definition for implementing PID- on a real-world device.
a self-balancing robot. The experiment necessitates the
use of a Raspberry Pi and the L293D driver module. The 1.1 Relevance
robot's balance can be achieved with the aid of feedback Several researchers have collaborated on the creation of
and a correction factor. The feedback element is the a PID controller for the Raspberry Pi. The feedback (as an
component that informs the Raspberry Pi about the axis) from accelerometers is used to align the robot in three
robot's current orientation. The experiment primarily directions. We'll use the Raspberry Pi to create a PID
employs a PID controller with gains Kp, Ki, and Kd. PID controller. We present a self-balancing Robot to represent the
corrects the difference between the desired and real controlling role.
values. Error is the difference between input and output.
By changing the output, the PID controller reduces the 1.2 Objective
error to the smallest value possible. The current tilt of the Our main goal is to find a low-cost way to build a PID
robot is read by system dynamics and fed to the PID controller using the Raspberry Pi. To illustrate this
algorithm, which performs calculations to power the controlling feature, we use a self-balancing robot. Here are
motor and hold the robot upright. some of the goals for the self-balancing robot:
To get the robot to stand up in the shortest amount of time
Keywords:- Self-Balancing Robot; Raspberry Pi; PID with the least amount of overshoot.
Controller; Robot; Feedback Element; Correction Factor. To get the robot to roll along the horizontal a
predetermined distance while remaining upright.
I. INTRODUCTION To guide the robot so that it circles the corn. ers, if there is
time.
As with the well-known small personal transporter
known as the "Segway," the self-balancing robot stands on II. LETERATURE REVIEW
two wheels and maintains its balance without crashing. In
recent years, self-balancing robots based on the inverted Rajeshwari Madli [1] el al in “Automatic Detection and
pendulum principle have become a common research subject. Notification of Potholes and Humps on Roads to Aid Drivers”
Since the mechanism is non-linear and fully unstable, an Ultrasonic sensors are used to detect potholes and humps, as
inverted pendulum is a difficult control issue. To compensate well as to determine their depth and height. Using a global
for the robot's angular displacement, an external force type positioning system receiver, the proposed system captures the
motor is needed to keep it upright. A controller is the most geographical location coordinates of the potholes and humps.
critical component in stabilising the robot's system. A PID Flash notifications with an auditory beep are used to send out
controller (proportional integral-derivative controller) is the alerts.
most commonly used and simple controller, and it can be
used to improve both transient and steady-state responses. Moazzam et al. [2] “Metrology and visualization of
With a high order and high external noise system, however, potholes using the microsoft Kinect sensor,” a low-cost model
the PID controller is less powerful. This project shows how to for analysing 3D pavement distress images has been proposed
control the angular speed of the motor to hold the robot It employs a low-cost Kinect sensor that provides direct depth
upright using data from the accelerometer sensor to create a measurements, lowering computational costs. A RGB camera
III. ARCHITECTURE AND IMPLEMENTATION [1]. An and Y. Li, "Simulation and control of a two-
wheeled selfbalancing robot," 2013 IEEE International
The key criterion of research is equilibrium with a two- Conference on Robotics and Biomimetics (ROBIO),
wheeled robot. To achieve the task of balancing a two- Shenzhen, 2017, pp. 456-461.
wheeled robot, a microcontroller, DC motors, and inertial [2]. J. Fang, "The LQR controller design of two-wheeled
sensors will be used. In Figure 1, you can see a block diagram self-balancing robot based on the particle swarm
of the robot's structure design. A gyroscope and optimization algorithm", Math. Problems Eng., vol.
accelerometer sensors are used in the implementation of a 2014, May 2016.
balanced two-wheeled robot. IMU optical combination board [3]. M. O. Asali, F. Hadary, B. W. Sanjaya, "Modeling
sensor 6-degrees of freedom ITG 3200 / ADXL 345 was used simulation and optimal control for two-wheeled self-
as the sensor. A motor is a component that allows the robot to balancing robot", International Journal of Electrical and
move in order to reach equilibrium. It is critical to choose a Computer Engineering (IJECE), vol. 7, no. 4, pp. 2008-
strong DC motor. The perfect DC motor is one that has a high 2017, 2017.
torque and has quickly made the rounds of a two-wheeled [4]. K.Juang and K. Lurrr, "Design and control of a two-
robot system. This robot makes use of 12V DC motors. wheel selfbalancing robot using the arduino
Raspberry Pi is an analogue and digital input/output microcontroller board," 2013 10th IEEE International
controller. Raspberry Pi is a line of single-board computers Conference on Control and Automation (ICCA),
with a small form factor. The Raspberry Pi is used as the key Hangzhou, 2013, pp. 634-639
controlling device in this project. The self-balancing robot's
motion control needs three states to be controlled: pitch, pace,