Professional Documents
Culture Documents
SUBMITTED TO
MAM ANUM ZULQARNAIN
SECTION
BEET 5B
DATE
12/25/2020
1|P ag e
MICRO CEA
TASK STATEMENT
A maze solving robot is designed to move in a maze and escape through it by following different
paths. A maze solving robot is quite similar to a line follower. Like a line follower has to follow
black strip lines, a maze follower finds a path and starts following it until it finds an escape route.
INTRODUCTION
A Robot is any machine which is completely automatic, i.e. it starts on its own, decides its own
way of work and stops on its own. It is actually a replica of human being, which has been designed
to ease human burden. It can be controlled pneumatically or using hydraulic ways or using the
simple electronic control ways. Robots can be fixed robots or mobile robots. Mobile Robots are
robots with a mobile base which makes the robot move freely in the environment. One of the
advanced mobile robots is the Line Follower Robot. It is basically a robot which follows a
particular path or trajectory and decides its own course of action which interacts with obstacle.
The path can be a black line on the white floor (visible) or a magnetic field (invisible). Its
applications start from basic domestic uses to industrial uses, etc. The present condition in industry
is they are carrying the parcels or materials one place to another place using the crane system.
Sometimes lifting of big weights at that time may cause the breakage of lifting materials and will
be cause damage to the parcels also. The line following robots is commonly used for carry children
through shopping malls, homes, entertainment places, industries. The use of line following robotic
vehicle is transport the materials from one place to another place in the industries. This robot
movement completely depends on the track. The robot can do anything you set them to do. Like
in factories all they have to do with making their products is make the robot.
However, a line following robot is a robot which follows a certain path controlled by a feedback
mechanism. Basically, line follower robot is a mobile machine that can detect and follow the line
drawn on the floor. Generally, the path is predefined and can be either visible like a black line on
a white surface with a high contrasted color or it can be invisible like a magnetic field. Definitely,
this kind of robot should sense the line with its infrared ray (IR) sensors that installed under the
2|P ag e
MICRO CEA
robot. After that, the data is transmitted to the processor by specific transition buses. Hence, the
processor is going to decide the proper commends and then it sends them to the driver and thus
the path will be followed by the line follower robot. Building a basic Line Follower Robot involves
the following steps.
For our CEP, we only need to understand the control of the robot. The control of the robot is the
most important aspect of its working. Here the term control refers to the robot motion control,
i.e. controlling the movement of the wheels. A basic line follower robot follows certain path and
the motion of the robot along this path is controlled by controlling the rotation of wheels, which
are placed on the shafts of the two motors. So, the basic control is achieved by controlling the
motors. The control circuitry involves the use of sensors to sense the path and the microcontroller
or any other device to control the motor operation through the motor drivers, based on the sensor
output. However, there are two ways of controlling a line following robot
As per our course and complex engineering problem, we are concerned with the control using
microcontrollers.
3|P ag e
MICRO CEA
APPLICATIONS
• Industrial Applications:
These robots can be used as automated equipment carriers in industries replacing traditional
conveyer belts.
• Automobile applications:
These robots can also be used as automatic cars running on roads with embedded magnets.
• Domestic applications:
These can also be used at homes for domestic purposes like floor cleaning etc.
• Guidance applications:
These can be used in public places like shopping malls, museums etc to provide path
guidance.
DESIGN
This circuit mainly consists of 8051 microcontroller, 4 IR sensors, 2 motors and motor driver IC
(l298N module). The line follower robot needs mechanical arrangement of the chassis. we have
used a 2WD Acrylic chassis. Four IR sensors are mounted on the front of the robot facing towards
Earth.
When robot is placed on the fixed path, it follows the path by detecting the line. The robot
direction of motion depends on the sensors outputs. When the middle two sensors are on the line
of path and corner sensors are on white surface, robot moves forward. If the left corner sensor
gives zero (i.e. there is left turn), robot moves towards left. Similarly, If the right corner sensor
gives zero (i.e. there is right turn), robot moves towards right. But we are giving left turn priority
i.e. whenever left and right or left and straight paths come, robot will turn left.
4|P ag e
MICRO CEA
5|P ag e
MICRO CEA
The table according to which we control the speed of our motor according to our design.
6|P ag e
MICRO CEA
LINE FOLLOWER
Programming Code:
#include<reg52.h>
sbit s1=P2^1; \\ Address to bit addressable special function register for pin 2.1
sbit s2=P2^2; \\ Address to bit addressable special function register for pin 2.2
sbit MP_1 = P3^0; \\ Address to bit addressable special function register for pin 3.0
void main ()
P3=0x00;
if((s1==0)&(s2==0)) \\ if condition when pin 2.1 work, and pin2.2 not work
MP_1 = 1;
MP_2 = 0;
MP_3 = 1;
MP_4 = 0;
7|P ag e
MICRO CEA
else if((s1==0)&(s2==1))
MP_1 = 1;
MP_2 = 0;
MP_3 = 0;
MP_4 = 0;
else if((s1==1)&(s2==0))
MP_1 = 0;
MP_2 = 0;
MP_3 = 1;
MP_4 = 0;
else if((s1==1)&(s2==1))
MP_1 = 0;
MP_2 = 0;
MP_3 = 0;
MP_4 = 0;
8|P ag e
MICRO CEA
SCREENSHOTS
9|P ag e
MICRO CEA
PROTEUS CIRCUIT
10 | P a g e
MICRO CEA
MAZE FOLLOWER
Programming Code:
org 00h
main:
cjne A,#0,a1 \\ first compare, then jump if not equal for A and a1
a1:
cjne A,#01,a2 \\ first compare, then jump if not equal for A and a2
a2:
cjne A,#02,a3 \\ first compare, then jump if not equal for A and a3
a3:
cjne A,#03,a4 \\ first compare, then jump if not equal for A and a4
a4:
cjne A,#04,a5 \\ first compare, then jump if not equal for A and a5
a5:
11 | P a g e
MICRO CEA
cjne A,#05,a6 \\ first compare, then jump if not equal for A and a6
a6:
cjne A,#06,a7 \\ first compare, then jump if not equal for A and a7
a7:
cjne A,#07,a8 \\ first compare, then jump if not equal for A and a8
a8:
cjne A,#15,a15 \\ first compare, then jump if not equal for A and a15
a15:
cjne A,#8,a9 \\ first compare, then jump if not equal for A and a9
a9:
cjne A,#9,a10 \\ first compare, then jump if not equal for A and a10
a10:
cjne A,#10,a11 \\ first compare, then jump if not equal for A and a11
a11:
cjne A,#11,a12 \\ first compare, then jump if not equal for A and a12
a12:
cjne A,#12,a13 \\ first compare, then jump if not equal for A and a13
12 | P a g e
MICRO CEA
a13:
cjne A,#13,a14 \\ first compare, then jump if not equal for A and a14
a14:
cjne A,#14,a15 \\ first compare, then jump if not equal for A and a1
mov p2,#01h
mov p2,#0
call delay
mov p2,#04h
call delay
mov p2,#0
call delay
13 | P a g e
MICRO CEA
mov p2,#0Ah
call delay
mov p2,#0
call delay
delay:
mov r2,#5
loop3:
loop1:
mov r1,#250
loop2:
ret
14 | P a g e
MICRO CEA
SCREENSHOTS
15 | P a g e
MICRO CEA
16 | P a g e
MICRO CEA
PROTEUS CIRCUIT
CONCLUSION
In this CEP, we learnt
How to use micro-controller to control the speed of the motor as well as direction of robot
car.
We learnt to use assembly language in micro-controller to perform different tasks such as
made a maze solving robot in this task.
Also we can perform verity of tasks using AT89C51 (8051) microcontroller.
The construction of the maze solving robot was simple in terms of paper and pencil.
However, simulation was far more difficult than anticipated before we started the project,
but we managed to construct it and reach our goal. The resulted measured data supports
our expected result. We successfully construct maze solving robot with the help of
assembly language. Our data could have been improved if we had an on campus facility
for accommodation. But we hope that, for this robot, a new experiment will be added to
laboratory. We are happy that finally we able to fulfill the demand of the students.
17 | P a g e
MICRO CEA
18 | P a g e