Arduino Projects    |   Raspberry Pi  |     Electronic Circuits   |   Electronics Reference Design Library  |   AVR    |    PIC    |    8051    |    Electronic Projects

Line Follower Robot

Description

Table of Contents:

Contributor: 
Dishant Shah
·         CIRCUIT DIAGRAM OF LINE FOLLOWER ROBOT
 Check the Circuit Diagram Tab
·         CIRCUIT CONNECTIONS
 
1.      There are three sensors. They are connecter with microcontroller P89V51RD2BN as
a.       Left sensor= Pin P0.2
b.      Middle sensor=Pin P0.1
c.       Right sensor=Pin P0.0
 
2.      Motor driver IC L293 gets four inputs from P89V51RD2BN as
a.       M1-A=P2.0
b.      M1-B=P2.1
c.       M2-A=P2.2
d.      M2-B=P2.3
 
3.      Left side motor is M1 and right side motor is M2.
 

 

·         IMP GUIDLINES
 
(1.  Usually three sensors cannot provide sufficient accuracy because if one sensor fails to detect a line, robot will be out of the track.

The most efficient solution is to increase the number of sensors. This change can change the program more complex.
The best way is to use more sensors and use the program of three sensors given below. Let us see how this is possible.
Suppose we wish to use three sensors (l1, l2, l3) on left side, two sensors (m1, m2 )at middle and three sensors (r1, r2, r3) on right side.
Now left sensor= l1+l2+l3
         Right sensor=r1+r2+r3
        Middle sensor=m1+m2
+ shows Boolean or operation.
Now eight sensors can be represented using three sensors only and the given code can be used. Such arrangement will improve the accuracy of the robot.
(2.   Assume black line to be followed in white area.
Analyse the track to be followed. If it does not contain the missing lines than when all the sensors shows white area, it means robot has gone out of the track. At such condition provide the reverse motion to robot so robot will automatically detect the find the line again. If you will not provide reverse motion, you may have to face penalty. Using this idea you can avoid it.
 

Circuit Diagram

Source Code

This Code is only visible to Registered users. Please Login/Register

 

Comments (34)

keep it up.  

keep it up.

 

simple but use full 

simple but use full

 

Thanks.

Thanks.

it is quit simple 

it is quit simple

 

it cannt be excuted 

it cannt be excuted

 

why can't it?

why can't it?

Check with connections...We

Check with connections...

We have tested it before uploading...

effective ^^

effective ^^

(y)

(y)

give full code plzzzzzzz 

give full code plzzzzzzz

 

which controller u hv used in

which controller u hv used in this project?

 

 

You are welcome :)

You are welcome :)

Its based on 8051

Its based on 8051 controller...!!
Program was tested on P89V51RD2BN.

Thanks for sharing this

Thanks for sharing this simple line follower robot project. It is very useful for me

You are welcome Madhavi :)

You are welcome Madhavi :)

wow its working and making

wow its working and making fast line follower

 

You are welcome :)Its fast

You are welcome :)

Its fast because its using less complex yet effective way of testing the sensors and providing output.

Hello Am new at this. I've

Hello Am new at this. I've made several circuits but I've never done programming. There's a CODE2 link given, what is that for? And if that is for programming can you tell me the software and hardware I should buy? And how to program it

i want code for avrstudio

i want code for avrstudio atmeg8

Hi,If you have worked on the

Hi,

If you have worked on the given code, you can easliy make the same for AVR also.

 

Actually programming in AVR is easier than 8051

thanks

thanks

You are welcome

You are welcome

ala code free ma al ne...! 

ala code free ma al ne...!

 

hiiii

hiiii

please i need help for line

please i need help for line following autonomous vehicle, how write the codes using 8051 microcontroller  

 

Hi, For basic understanding

Hi,

 

For basic understanding of software, refer the tutorials section. 

You will find very nice tutorials with videos..

 

Feel free to contact us on any query...

Hi, For understanding Keil,

Hi,

 

For understanding Keil, refer the tutorial section.

 

Working code of line follower robot is given in this article already.

could anyone send me the

could anyone send me the whole code I am using Atmega8 in my bot...It would be really helpful if someone send me the code.Please send me at ajay.dusa@gmail.com 

Hi, It will be nice if you

Hi,

 

It will be nice if you give a try and ask us if you are facing any issue.

We will help our best to solve it...

HELLO AM NEW I SHOULD GET 2

HELLO AM NEW I SHOULD GET 2 CODES FREE

Hi, If you have not used it,

Hi,

 

If you have not used it, you will get 2 codes free...!!!

source code not open.but add

source code not open.

but add in this site.

please open source code.

 

Check with the login and try

Check with the login and try again.

 

If not happening, send a mail to support department of this site.

great code. Thanks. 

great code. Thanks. 

You are here