Introduction: A Simple and Cheap DIY Line Following Robot

If anyone wants to start to build robots , This robot is for them, Its easy to do, No knowledge of programming is required, Just a little bit of electronics knowledge is sufficient to finish this robot.

Key Ingredients:


1x Chassis

2x IR sensors

1x caster wheel

2x Wheels

2x Gear Motors

1x ULN 2003 IC

4x 1.5v battery or 9v battery

1x battery snap

1x battery holder

1x bread boardSpacers ,

stud and screws, and screw driver bread board connector wires

Step 1: How It Works?

What is a line following robot?

As the name suggest this robot will follow a line either black or white line.

What is the logic behind this?

This robot follows the logic of opaque and transparent surface, usually white surface reflects back the light and black surface absorb the light,

How this logic can be used in line following robot?

We can use a IR sensor , Its a pair of IR transmitter and emitter, IR rays are emits by the transmitter and received by the receiver, If the surface usually white or other color will reflect back the sensor and the receiver start to receiver by this way the sensor produce 5v as output, This output can be connected to any logic circuit to drive motor or other appliance, If the sensor meets black surface there is no reflected rays , so the logic output will be 0v.

This is a simple and cheap line following robot, This robot doesn't need any programming and can work without a microcontroller, hence this is a robot for a complete beginner ,
Main components of this robot is IR sensor and ULN 2003A IC

Whenever the IR sensor falls on a reflective surface or white surface it starts to give 5v as output. ULN 2003A is a high-voltage, high- current, darlington transistor array. In this circuit it act as a switch , whenever it receives 5v as input , the output switch opens. if there is no input, switch closes.

whenever IR sensor produces 5v as output, the output pin of IR sensor is connected with the input pin of ULN 2003 IC , so the motor starts to run, if there is no output , the motor stops.

Step 2: IR Sensor and Circuit

Step 3: Circuit Diagarm

Step 4: Logic Behind

CASE 1

When sensor 1 and 2 in white surface:

In the first case both the sensors are in white surface or reflective medium, which gives 5v as output and it drives both the left and right motors .

CASE 2

When sensor 1 in white surface and sensor 2 in black surface:

In this case sensor 1 is in white surface and the sensor will produce 5v as output and only one motor rotates, which makes the robot to take a turn in right side.

CASE 3

When sensor 2 in white surface and sensor 1 in black surface:

In this case sensor 2 is in white surface and the sensor will produce 5v as output and only one motor rotates, which makes the robot to take a turn in left side.

Step 5: Robot Track

We can use any track for the robot , the above one I used for the robot I made. Make sure The black line is opaque and the surface is transparent.

Step 6: Working Robot

IF you are looking for more simpler project like this take a look into this blog :http://learnhowtomakerobot.blogspot.in/

Comments

author
mudassir45642 (author)2016-10-14

bro can u tell me why the variable resistor is used.....?

author
VinayarunkumarK (author)2016-10-08

is 2 ir sensors necessary?

author
VinayarunkumarK (author)2016-10-08

Plz tell the components in the ir sensors circuit diagram.

author
VinayarunkumarK (author)2016-10-07

Do every kind of ir sensor work with this circuit?is it necessary that it should produce 5v ir radiation??

author
Fakrudeen (author)2016-08-28

Where to fit the ir sensor in step three

author
Sanchit Bahl (author)2016-05-31

Will LM 358 be OK for this projects?

Coz I can't find the ULN 2003A IC

author
robobot3112 (author)2015-02-01

really good . Without microcontroller is the best part.

author

It is only valid for small simple mazes.

otherwise you will need to implement the PID concept for which a microcontroller is neccessary

author
saarthak agarwal (author)2015-09-10

can i make it without using ir module and just by simply using the ir leds and photo diode

author

Nope.You need an Op-amp to amplify the output of photodiode otherwise it will produce a small voltage output.The Op-amp will amplify the output to 5 volts.

author
Prince Clash (author)2016-02-18

How much it will cost

author
MOD4 (author)2015-08-29

code ?

author
vysakhp (author)2015-08-11

where can i get the chassis

author
eagleanurag (author)2014-12-23

awesome creation man really like it so much
after all it is to simple to make

author

@eaglerobot thank you

author
seamster (author)2014-11-14

Nice work on your robot! I'm glad you included a video to show it in action. Pretty impressive stuff!

author

you are so encouraging thanks for your words :)

About This Instructable

26,349views

54favorites

License:

Bio: I make hobbyist stuffs and play with electronics follow me to know more https://www.facebook.com/arduinolabviewsolidworks https://twitter.com/learnrobotix
More by Magesh Jayakumar:Quick Start to Nodemcu (ESP8266) on Arduino IDECourse on MIT App Inventor and ArduinoHat for the Party
Add instructable to: