Introduction: Autonomous Line Follower Robot

This is a line follower which i had built in the first year of my undergraduate engineering program. The robot uses arduino as it's brain and is able to follow black line drawn on a white surface i.e it's a black line follower with simple logic for everyone to understand.

Step 1: Materials Required

*Arduino UNO
*L293d motor driver module(provotech)
*Ir sensor modules(provotech)
*Motors 200 rpm
*Male to male jumper wire
*Female to male jumper wire
*Scrap mouse (PC mouse not the actual alive one)
*Castor wheel (small)
*12v/5v power supply

Step 2: Chassis

I used a scrap computer mouse for my robot chassis. It was perfect because it was light small and was available to me at no cost.

Step 3: Assembling the Parts

At first i connected the castor wheel below the mouse base as shown. Then used some plyboard to extend the width of the rear part so that i can connect the motors to it.Then the motor driver was intalled at the centre of the mouse. The sensors were first attached to a piece of cardboard and then they were also joined to the main chassis. Now the entire hardware part is done.

Step 4: Connections

Just connect the pins as follows:
Enable left motor pin to pin :9
Enable right motor pin to pin:10
left sensor :6
centre sensor:3
right sensor:5
Left motor (from motor driver board):A0
Right motor(from motor driver board):A1
*Connect all the power supplies according to datasheet of the respective devices
* All pins are available on the Arduino Uno board.

Step 5: Arduino IDE

Just copy the above shown code.

Step 6: Complete Robot

Comments

author
Thunder+Power made it!(author)2016-07-17

hey seth

author
sseth6 made it!(author)2016-09-10

Hi !

author
Thunder+Power made it!(author)2016-07-17

plz how to connect cables to the arduino plz give me a full picture

email:kavishkanirmal7@gmail.com

author
satvik.gupta.129 made it!(author)2015-06-25

What's ur email address

author
sseth6 made it!(author)2015-06-25

Please wait if you're unable to get it.Today i will be uploading the code for anyone to download it.

author
satvik.gupta.129 made it!(author)2015-06-25

What's ur email address

author
satvik.gupta.129 made it!(author)2015-06-25

Hey I didn't got the program can u pls send me again

author
sseth6 made it!(author)2015-06-20

I've already sent it to the email address given by you....
email:satvik.agg@gmail.com

author
satvik.gupta.129 made it!(author)2015-06-20

When will u send me the code I am waiting.

author
sseth6 made it!(author)2015-06-17

I will send you the code as early as possible.

author
satvik.gupta.129 made it!(author)2015-06-17

I matched the code but it is correct.

author
satvik.gupta.129 made it!(author)2015-06-17

Can u please mail me your code.

satvik.agg@gmail.com

author
sseth6 made it!(author)2015-06-17

I think you have some problem in definition of command blocks...just go through the images once again and match it with the code you have typed. Due to use of large number of command blocks it may happen that some of the blocks are not defined well in "{}". The code is perfect and worked for me. You should also ensure that the arduino board selected in the ide must be same as the board you are using.

author
satvik.gupta.129 made it!(author)2015-06-17

In the program thi error is coming-

Arduino: 1.6.5 Hourly Build 2015/05/15 04:50 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

line.ino: In function 'void loop()':

line:94: error: expected '}' at end of input

line:94: error: expected '}' at end of input

line:94: error: expected '}' at end of input

line:94: error: expected '}' at end of input

expected '}' at end of input

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

author
amberrayh made it!(author)2015-06-09

Very cool. Thanks for sharing!

About This Instructable

3,204views

14favorites

License:

Bio: Electronics & Communication Engineering Student.
More by sseth6:Plane Wave propagation in Lossy medium analysis using MATLABCheap lighting solution(LED light)Autonomous Line follower robot
Add instructable to: