Optimization of Path Tracking Robot
Optimization of Path Tracking Robot
Abstract— Line following robot has been considered to have a rapidly developed in both East and West as the demand from
tremendous applicative utilization. Path tracking robots usually the Cold War for missile control systems had increased [2].
deals with errors of following an uneven line or having an erratic
movement. Moreover, deals with slow speed and faces The basic meaning of ‘Control Systems’ is to control or
unsteadiness because of different thickness to the line with edges. manipulate something. It could be something mechanical or
This paper defines the use of PID (Proportional Integral electronic. It deals with is a specific input through which we
Differential) which is implemented on the line following Robot get a specific or a desired output. The engineer is to develop a
through the use of Arduino. The PID helps in smoothing the data certain system which can take an input by the user and produce
with the use of values assigned to it by the user and the robot a certain type of output which is required by the user.
follows more effectively and efficiently then before showing a
consequential result. The proposed cost effective design works on
two sensors which is programmed to detect a black line in order
to follow its path, the resultant we perceive by it is that it has
many promising merits as it is cost efficient, simplicity to its
building and errors are reduced momentously.
1
International Journal of Conceptions on Information Technology and Computing
Vol. 4, Issue. 2, March’ 2016; ISSN: 2345 - 9808
[3]. Open loops will be used for far simpler systems where the desired set point value. For example if we consider an
there is no need for compensating for the errors; the cost is the ON/OFF controller which can be used in operating a
main issue. thermostat inside a heater which is considered to be as an open
loop system within the controller receives the input and
A. Proportional Integral Derivative
compares it with the set value, deciding whether to turn it on if
PID (Proportional Integral Derivative) has three basic the input value is below set value or to turn off if the input
components which are Proportional, integral and derivative. value is above set point value in this type of control there is
neither any error created or any error rectified.
1) Proportional: It is dependent upon the error term which is
the difference between process variable and a set point. However if we go deep, there are many types of controller
There is term called proportional gain and the from a simple ON-OFF controller to a Proportional Controller
mathematical symbol for it is (Kc), it is used for whereas alternatives to this type of controllers are Proportional
calculating the ratio between the output response and the Integral and the most famous one Proportional Integral
error signal. This term is used for increasing the speed of Derivative Controller, the basics of these controllers are
the response that the control system generates. Generally it applied inside Industrial Controllers for controlling huge
can be concluded that it acts as a multiplier. The value of industrial plants.
proportional gain is very crucial it can stable or unstable
C. Applications
the whole system [4].
An application of controllers using a feedback system or
2) Integral: Its function is to sum up the error with respect to
say a closed loop system is the controlling of cruise in an
time. The error increases the response of integral slowly. automobile in which the driver or the operator selects the
As it will increase of time unless it reaches to the value of desired speed or the set value for the cruise control system
zero, so what we intend to do is make the steady-state upon which an output speed is generated which is then
error reach zero. Steady-State error is defined as the end
compared with the set value and the error is sent to the
difference between a settled point and processing variable, controller which manipulates the error and makes adjustments
so the function of the integral component is to saturate the accordingly in order to obtain the set value [6].
controller without its error signal being reached towards
zero [5]. Other applications of controllers include autopilot
controller in an aircraft system whose purpose is to maintain
3) Derivative: Its basic function is to decrease the output if flight path, stability and trajectory of the plane. PH controller is
has been increasing rapidly. Increasing the derivative time
used when we want water treatment in which we want to
which is denoted by (Td) will cause the whole system to maintain the pH value of the water. Temperature controllers are
speed up. This component is very sensitive to noise so used inside a boiler in order to maintain the temperature inside
when there is an error in the feedback and the loop is filled the boiler [7].
with noise or is slow; it will make the whole system go
towards the instability. When we take a look at the controllers designed for
Industries which take the basic of controllers, are said to be
B. Controllers
Industrial Control Systems which are now a major part in
If we define a controller it is basically a device which industrial production reducing the need for man-power. Such
makes use of mechanical pneumatic hydraulic or other Industrial Systems include SCADA (Supervisory Control and
electronic instruments also in various combinations but more Data Acquisition), DCS (Distributed Control System) and even
recently they are applied using microprocessor or in the form other smaller control systems like PLC (Programmable Logic
of a computer, their main purpose is to monitor and control the Controller) which works on the basic principle of relays.
conditions of operating a system which has dynamic variables.
Such type of Systems that incorporate controllers are
Controllers work in different principles one as an open widely used in gas plants, power plants, food manufacturing
loop controller system other as a closed loop/feedback plant and also in the power industry. When data is received
controller system. In an Open Loop system a controller is from stations that are remote i.e. from the field, based upon that
basically used as a switching device meaning only to turn it on data these control systems automate according to the operator
or off. In a Closed Loop system the output of system which is set values by sending the desired data to the remote control
known as the controlled variable is fed back to the controller stations also known as field devices. These devices are usually
which compares the output with the input and deals with any found controlling the local field operations which is to open or
error if generated. closing breakers and valves, or to collect data from various
sensors and also to monitor the environment for any alarming
After the dynamic variables are applied inside a control conditions.
system it evaluates the set point and the actual output after
receiving the error which is between the set value and the
output value it will then try to regulate and control output
behavior. This is achieved by either amplifying or attenuating
the input signal to the entire plant so that the output matches
2
International Journal of Conceptions on Information Technology and Computing
Vol. 4, Issue. 2, March’ 2016; ISSN: 2345 - 9808
B. Main Controller
The main controller’s function is to oversee the general
function of the robot [10]. For our Line follower applications,
Figure 3: Basic Description the microcontroller chosen is the ATmega328 microcontroller
also known as Arduino UNO manufactured by Arduino. It has
III. EXPERIMENTAL SETUP an operating voltage of 5V; it takes around 7 to 12 input
Figure 4 shows the basic setup of the line follower. voltages which maximum of 6 to 20 input voltages and it
contains 14 I/O pins of which 6 are PWM pins. It weighs 25 g.
The experiments were made using a plastic chassis. It will The rational reason behind this is simply because that the
be a two-wheeled mobile robot with motors and sensors were
Arduino is easily obtainable with a reasonable cost.
custom made to suit the purpose of this research. The Line
Follower robot would consist of the following electronic
components:
3
International Journal of Conceptions on Information Technology and Computing
Vol. 4, Issue. 2, March’ 2016; ISSN: 2345 - 9808
Figure 6 shows what an Arduino UNO looks like: that we did on our Arduino UNO. Nevertheless, it was powered
by two 9V DC motor linked to an H Bridge Motor Driver I.C
whose description is already mentioned above. The Line
Follower which we built to examine the results of proposed
technique is shown in Figure 9 and Figure 10.
C. Sensors
The sensors used in the experiment are custom made which
consist of an IR LED, Photodiode, IC LM358M and LED to
indicate it’s on. There are only two sensor boards so there are
in total two sensors used they are built upon the circuit as
shown in Figure 7. Figure 8: Movement Pattern of the LFR PID Robot 1
Figure 7. IR Circuitry
D. PID Algorithm
The algorithm is simple, the input is compared with the set Figure 9 Real Cart Top View
value (set point) upon which if there is any error it rectifies it
by creating an output equal to the difference between the set
value and the input. However if there is no difference between
the set value and the input, the output is generated in such a
manner that the difference remains zero [15].
Laplace Transform of the PID Equation: Although much better results could have been achieved with
the help of more infrared sensors we opted to use only two of
the sensors on our L.F.R and tried to achieve the best possible
Where
result with the help of a P.I.D Controller. However for the sake
= Proportional Gain
of comparing & achieving results we first used the L.F.R
= Integral Gain without the P.I.D controller and the result was somewhat as
= Derivative Gain follows
e(t) = Error
4
International Journal of Conceptions on Information Technology and Computing
Vol. 4, Issue. 2, March’ 2016; ISSN: 2345 - 9808
The result,in Figure 11, L.F.R was like an On-Off movement [4] John W. Webb and Ronald A. Reis “PID Control of Continuous
Processes” onProgrammable Logic Controllers, 4th ed., Prentice Hall
depicting the existence of an On-Off Controller [12]. PTR.
[5] Matt Krass, PID Control Theory, Matt Krass 2nd ed., 2006.
Then we developed the P.I.D controller with the help of the [6] Li Y., Ang K.H and Chong G.C.Y, PID Control system analysis and
Arduino’s PID library we uploaded the code inside our design, IEEE Control System Magzine, 2006, pp.32-41.
Arduino UNO so that it can act as the PID controller and [7] Astr¨om, K.J., Hang, C.C., Persson, P., Ho, W.K., Towards intelligent
immediately the results were vastly improved and the L.F.R PID control, Automatica, vol. 28, 1992, 1-9.
became more efficient which can be seen in Figure 12: [8] Lancet Mit “Introductuon to D.C. Motors” User conference, Austin
texas Vol 11 2004
[9] B.C. Kuo "Automatic Control Sytems" (sixth edition), Prentice Hall,
1991.
[10] M. Zafri Baharuddin, Izham Z. Abidin, S. Sulaiman Kaja Mohideen,
Yap Keem Siah, and Jeffrey Tan Too Chuan. “Analysis of Line Sensor
Configuration for the Advanced Line Follower Robot.” Universiti
Figure12: Movement of LFR with PID Tenaga Nasional, Malaysia
Now even you can notice the on-off or the Zig-Zag pattern [11] Choi, Y., Chung, W.K., PID Trajectory Tracking Control for
has disappeared and a much smoother response to the path that Mechanical Systems, Springer, 2004
has to be followed can be observed [13]. Plus as we compared [12] Ang K., Chong G., Li Y., “PID control system analysis, design, and
technology”, IEEE Trans. Control System Technology, vol. 13, p. 559 –
a single lap time for our L.F.R Robot when the controller was 576, Jul. 2005.
using the On-Off algorithm with the P.I.D algorithm [14], time [13] Astrom, K., T. Hagglund, “PID Controllers; Theory, Design and
taken for the L.F.R to complete a single lap was noticeably Tuning”, Instrument Society of America, Research Triangle Park, 2005.
halved. Hence our objective was achieved and our L.F.R robot [14] J. J. D’Azzo and C. H. Houpis, “Linear control system analysis and
became more efficient and responsive [16]. design”, McGraw-Hill, New York, 1995.
[15] Otto Mayr, The Origins of Feedback Control. Cambridge, MA: M.I.T.
REFERENCES Press, 1970.
[16] Borenstein, J., Everett, H.R. , Feng, L., and Wehe, D."Mobile Robot
[1] C.C Bissel: A History of Automatic Control, Part 4, Springer. Positioning: Sensors and Techniques." Invited paper for the Journal of
[2] Stuart Bennett, A History of Control Engineering 1800-1930. Stevenage: Robotic Systems, Special Issue on Mobile Robots. Vol. 14, No. 4, April
Peter Peregrinus, 1979. 1997
[3] Graham C. Goodwin, Stefan F. Graebe and Mario E. Salgado“Classical
PID Control” in Control System Design, Prentice Hall PTR.