Professional Documents
Culture Documents
Line Tracking Robot System
Line Tracking Robot System
Line Tracking
DUMKAL
INSTITUTE
OF
ENGINEERIN LINE TRACKING ROBOT SYSTEM
Robot System
G AND
TECHNOLOG
Y
ACKNOWLEDGEMENT
The satisfaction and elation that accompany the successful completion of any task
would be incomplete without the mention of the people who have made it
possible. It is my great privilege to express my gratitude and respect to all those
who have guided me and inspired me during the course of the project work.
Firstly, I express my sincere gratitude to our Principal Mr. Jayanta Roy, and also
thank our Director Mr. Dipendu Ghosh for providing us the necessary facilities for
the completion of the project.
I am indebted to our Head of the Department Mr. Hasanujjaman, for being a
constant source of support and encouragement for the completion of the project.
I also express my sincere thanks to our internal guide Mr Sahadev Roy for his
constant guidance and supervision during the entire period of the project.
OBJECTIVE
To design a mobile vehicle which moves on a track path.
The vehicle will move through a dark line on a light background as it may lead to.
INTRODUCTION
The idea is to build a robotic system which will move on a track path (basically on
a black coloured path on a white background). For an omnidirectional path, the
robot will use its own in-built intelligence to recognize the direction of the
aforesaid.
The system will consist of the following components primarily:
• Microcontroller
• IR sensor and detector pair
• Stepper motor
• Power source
We will use a panel of five IR sensors to detect any turning of the path. This panel
would be fixed to the system such that as it moves it will maintain a 90˚ angle
with the track, horizontally. As it moves the angle changes. The microcontroller
gets input from the sensors on the panel that the path has got a turn. The in system
programming will act such that it will guide the mechanical part to make itself and
adjust and compensate for the turn.
THEORY
Modeling of the wheel
From equation (2) it is clear that driving force increases with the increase in
weight of the wheel.
The total weight of the vehicle is applied on the wheels. Hence, m indicates the
net weight of the wheels and the vehicle.
The total weight of the vehicle is distributed on the wheels provided the track is
smooth and not inclined.
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 8
LINE TRACKING ROBOT SYSTEM
Hence the total weight is distributed upon two wheels, since the third one is just
for stability.
m=M/2+mw.
Rewriting equation (2) and substituting,
F=(M/2+mw)(ÿ+µg)
=(M/2+mw)µg+(M/2+mw)ÿ
=Fv+mÿ
Here, (M/2+mw)=m is fixed for a vehicle with fixed load.
µ is fixed for a given track.
We assume that µ is average for all road conditions for simplicity of calculation.
So, F force is applied to bring an acceleration ÿ for which Fv is required to
overcome its initial state.
Figure below describes the force versus acceleration curve of mobile vehicle.
Kinematics of a wheel
Kinematics of a wheel
Coordinate Frame
In deriving the equations of motion of the robot, we assume that the wheel is a
rigid, homogeneous disk which rolls over a perfectly flat surface without slipping.
We model the actuation mechanism, suspended from the wheel bearing, as a two-
link manipulator, with a spinning disk attached at the end of the second link. The
first link of length L1 represents the vertical offset of the actuation mechanism
from the axis of the Gyrover wheel. The second link of length L2 represents the
horizontal offset of the spinning fly wheel and is relatively smaller compared to
the vertical offset.
Next, we assign four coordinate frames as follows:
1. The initial frame ∑O, whose x-y plane is anchored to the flat surface,
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 12
LINE TRACKING ROBOT SYSTEM
Let vA and wB denote the velocity of the centre of mass of the single heel and
its angular velocity with respect to the inertia frame ∑O. Then we have,
The constraints required that the disk rolls without slipping on the horizontal
plane, i.e. the velocity of the contact point on the disk is zero at any instant
Where vc is the velocity of contact point of the single wheel. Now we can
express vA as,
The equations concerned with Ẋ and Ẏ are nonintegrable and hence are
nonholonomic while the last equation is integrable.
Keeping the above in mind, our purpose will be solved using a differential
drive for our wheel base.
Differential drive
The differential drive design has two motors mounted in fixed positions on the
left and right side of the robot, independently driving one wheel each. Since
three ground contact points are necessary, this design requires one or two
additional passive caster wheels or sliders, depending on the location of the
driven wheels.
Differential drive is mechanically simpler than the single wheel drive,
because it does not require rotation of a driven axis. However, driving control
for differential drive is more complex than for single wheel drive, because it
requires the coordination of two driven wheels.
The minimal differential drive design with only a single passive wheel cannot
have the driving wheels in the middle of the robot, for stability reasons. So
when turning on the spot, the robot will rotate about the off-center midpoint
between the two driven wheels. The design with two passive wheels or sliders,
one each in the front and at the back of the robot, allows rotation about the
center of the robot. However, this design can introduce surface contact
problems, because it is using four contact points.
The figure demonstrates the driving actions of a differential drive robot. If
both motors run at the same speed, the robot drives straight forward or back-
ward, if one motor is running faster than the other, the robot drives in a curve
along the arc of a circle, and if both motors are run at the same speed in oppo-
site directions, the robot turns on the spot.
The following are expressions for different movements of the differential drive:
• Driving straight, forward: vL=vR, vL>0
• Driving in a right curve: vL>vR, e.g. vL=2vR
• Turning on the spot, counter clockwise: vL=-vR, vL>0
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 16
LINE TRACKING ROBOT SYSTEM
Block Diagram
PIN DESCRIPTION:
VCC Supply voltage.
GND Ground.
RST Reset input A high on this pin for two machine cycles while the
oscillator is running
resets the device.
ALE/PROG Address Latch Enable is an output pulse for latching the
low byte of the address during
accesses to external memory. This pin is also the
program pulse input (PROG) during
Flash programming.
In normal operation, ALE is emitted at a constant rate of
1/6 the oscillator frequency and
may be used for external timing or clocking purposes.
Note, however, that one ALE
pulse is skipped during each access to external data
memory.
If desired, ALE operation can be disabled by setting bit
0 of SFR location 8EH. With the
bit set, ALE is active only during a MOVX or MOVC
instruction. Otherwise, the pin is
weakly pulled high. Setting the ALE-disable bit has no
effect if the microcontroller is in
external execution mode.
program memory.
When the AT89S8252 is executing code from external
program memory, PSEN is acti-
vated twice each machine cycle, except that two PSEN
activations are skipped during
each access to external data memory.
Special Function
Registers A map of the on-chip memory area called the Special
Function Register (SFR) space is
shown in Table 1.
Note that not all of the addresses are occupied, and
unoccupied addresses may not be
implemented on the chip. Read accesses to these
addresses will in general return ran-
dom data, and write accesses will have an indeterminate
effect.
User software should not write 1s to these unlisted
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 24
LINE TRACKING ROBOT SYSTEM
Data Memory –
EEPROM and RAM The AT89S8252 implements 2K bytes of on-chip
EEPROM for data storage and 256
bytes of RAM. The upper 128 bytes of RAM occupy a
parallel space to the Special
Function Registers. That means the upper 128 bytes
have the same addresses as the
SFR space but are physically separate from SFR space.
When an instruction accesses an internal location above
address 7FH, the address
mode used in the instruction specifies whether the CPU
accesses the upper 128 bytes
of RAM or the SFR space. Instructions that use direct
addressing access SFR space.
For example, the following direct addressing instruction
accesses the SFR at location
0A0H (which is P2).
MOV 0A0H, #data
Instructions that use indirect addressing access the upper
128 bytes of RAM. For exam-
ple, the following indirect addressing instruction, where
R0 contains 0A0H, accesses the
Programmable
Watchdog Timer The programmable Watchdog Timer (WDT) operates
DESCRIPTION
The ULN2801A-ULN2805Aeach contain eight darlington transistors with
common emitters and integral suppression diodes for inductive loads. Each
darlington features a peak load current rating of600mA (500mA continuous) and
can withstand atleast50V in the off state.Outputsmay be paralleled
for higher current capability. Five versions are available to simplify interfacing to
standard logic families : theULN2801Ais designe for general purpose applications
with a current limitresistor ; theULN2802Ahas a 10.5kΩ input resistor and zener
for 14-25V PMOS; theULN2803Ahas a 2.7kΩ input resistor for 5V TTL and
CMOS ; the ULN2804A has a 10.5kΩ input resistor for 6-15V CMOS and the
ULN2805A is designed to sink a minimum of 350mA for standard and Schottky
TTL where higher output current is required. All types are supplied in a 18-lead
plastic DIP with a copper lead from and feature the convenient input-opposite-
output pinout to simplify board layout.
For connecting the microcontroller with a computer in order to program it, we use
MAX232 dual driver/receivers. This is chosen for its features listed below:
• Meets or exceeds ITU recommendations v2.28
• Operates from a single 5V power supply with 1μF charge-pump capacitor
• Operates upto 120kbps
• Two drivers and two receivers
• ± 30V input levels
• Low supply current (8mA typical)
Circuit diagram
As shown in the figure above, the Darlington pairs are coupled such that they
drive the two stepper motors.
Apparatus required
• AT89S52 microcontroller 1 pc
• ULN2803A 1 pc
• MAX232 1 pc
• 10A BJT 4 pcs
• 7812 power supply 1 pc
• 12V, 200mA stepper motor 2 pcs
• Veroboard (6”x6”) 1 pc
• RS232 male female connector 1 pc
• IR sensor and detector pair 1 pc
• Potentiometer 1 pc
• Crystal oscillator (11.0592MHz) 1 pc
• Capacitor (4.7pF) 2 pcs
• Resistor (1.5kΩ) 4 pcs
• Transistor BC107 1 pc
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 38
LINE TRACKING ROBOT SYSTEM
Programming
Program 2
void initialize(void);
extern void set_location(unsigned char);
extern void lcd_display(void);
extern void put_msg(char * msg);
void init_val(void)
{
T2CON = 0x34;
RCAP2H = 0xff;
SCON = 0x50;
P0 = 0x00;
}
void main()
{
initialize();
init_val();
put_msg("SPEED =>");
set_location(0x80);
lcd_display();
while(1);
}
Observation
On the course of this project, we have used different types of integrated circuits
and came across many types of microcontrollers. While we attempted to choose
one, we came across the different aspects of these. Since, the choice of the
microprocessor was one of the main tasks, we went through different data sheets
of different manufacturers like ST Microelectronics, Philips, Atmel, Fairchild,
Motorola and NXP. Our project guide Mr Sahadev Roy helped us unconditionally
to resolve the challenge.
Though the project went well, we came across numerous difficulties for the first
time. We had to learn system programming with embedded C and connectivity of
the microprocessor with the PC.
We further observed that though our idea on robotics was that of a novice, there
are many more challenges beyond our project. We would be elated to deliver a
project on robot imaging, robotic intelligence and robotic reactions. We look
forward for co operations from masterminds.
Discussion
While a small thought was being converted into reality, we got introduced to
world class authors like Karl Williams, Ming C Lin, R.R. Murphy and Stephan
Florczyk. There volumes inspired us to study further on Robotics and Embedded
Systems. Since Mechatronics played a very vital role in our project, we are keen
to work with projects related with it.
We realized that the completion of the project would have been smoother if the
thought was made earlier. We also observed the extensive research work related
and required to successfully complete a project on Robotics. Not only it includes
knowledge on Microprocessors and Embedded systems, it also requires a great
depth in Image processing and Aerodynamics and related fields as well.
We would have been luckier if we got the scope to research upon a few more
projects of the class.
Bibliography
Books:
• George Pelz, Mechatronic Systems, John Wiley & Sons
• Thomas Braunl, Embedded Robotics, Springer
• Yans Heng Xu & Yongs Heng Ou, Control of Single
Wheel Robots, Springer
• Charles M. Bergren, Anatomy of a Robot, McGraw Hill
Websites:
• www.google.com
• www.yahoo.com
• www.ask.com
• www.8052.com
• www.myrobotics.com
PREPARED BY STUDENTS OF DUMKAL INSTITUTE OF ENGINEERING AND
TECHNOLOGY Page 46