Tuesday, 7 January 2014

Line Following Robot Or Line Tracker Using ATtiny2313

 line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.

In this post we will learn how to make line following robot or line Line Tracker using ATtiny2313.


line following robot or Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
line following robot or Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.



Here i am going to explain a very simple well known and Interesting project "Line Tracking Robot or Line Following Robot".Line Following is a machine that can follow a path. The path can be visible like a black line on a white surface  or it can be invisible like a magnetic field.





How to Sense or judge Line??

Line can be Black on a White surface or White on a Black surface.To sense the line or track we can use LDR, IR Sensor etc. The basic concept is that when light falling on that Sensors they get activated.

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
LED

When light falls on a black surface it will completely absorbed by the black surface. And when this light fall on the white surface it will be reflected through it. I am using IR TX. Rx. pair to sense the black line. IR TX  continuously spread IR light (Not visible to human Eye) and when this falls on IR Rx. it will generate output in milli volt.

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
                                          


I am using very low cost AVR series 20 pin Tiny2313 Micro-controller. We know that MCU understand TTL logic +5 v for HIGH and 0 v for LOW. The output of the IR sensor is fed to the MCU  pins but the output of the sensor is in millivolt ; MCU always consider it as LOW. Hence we require an Amplifier to amplify the sensor's output at TTL level.

We can use comparator which compares potentials at its Inverting and Non-inverting terminals and gives +5 V or 0 V signal at the output, now we can fed the output of comparator to MCU i/o pins. One major  advantage is to select Comparator as amplifier is that we can adjust the sensitivity of our sensors. LM324 is a 14-pin quad comparator IC.

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
LM324 Pin details


According to sensors outputs MCU takes decision and moves the Motors. Here again one thing  is to remember that the output current of MCU is not sufficient to drive the DC-Motors hence we require a Motor Driver IC. I am using very popular L293D Motor Driver IC.
Block Diagram according to above discussion-

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
block diagram
                              

IR Sensor and LM324 Connection.Repeat this circuit three times.The Output of LM324 is fed to the PORTS (PD0,PD1,PD2) of Tiny2313.

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
configuration

 Make the array of  IR sensors according to circuit below.Look the images in making steps which describes it clearly.



line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
IR sensor array


 Motor Driver L293D Connections : The MCU generates outputs according to sensors input; output of MCU from PORT B(PB0,PB1,PB2,PB3) connected to pin 2,7,15,10 of L293D respectively.


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
IC L293D


  Look the table's below to understand how it work.

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
Table 1

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
sensor or LM324 output  


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
Table 2


Complete Circuit Diagram :

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
Circuit Diagram


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
power supply
 How to make :

 step:1


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
 step:1

 step:2


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
 step:2

step:3


line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:3

 step:4

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:4

 step:5
line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:5

 step:6

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:6

 step:7

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:7

 step:8

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:8

 step:9

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:9

 step:10
line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:10

 step:11

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:11

 step:12

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:12

 step:13

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:13

 step:14

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:14

 step:15
line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:15


 step:16

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:16

 step:17

line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:17
 step:18



line following robot or line Line Tracker using ATtiny2313  with complete project report, code and circuit diagram.
step:18
Download

click to begin

click to begin

No comments:

Post a Comment

must read

NOTE:-we don't make all projects, all are of from different website.we also don't know where they have taken from.we just helping student and needed people .we are don't responsible for any harm from our website.thank you.