Autonomous Line Follower Robot

by sseth6 in Circuits > Robots

5607 Views, 14 Favorites, 0 Comments

Autonomous Line Follower Robot

temp_992320430.jpg
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.

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

Chassis

temp_-165393864.jpg
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.

Assembling the Parts

temp_-1264067055.jpg
temp_-810570740.jpg
temp_1944104824.jpg
temp_583480780.jpg
temp_1988971427.jpg
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.

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.

Arduino IDE

temp_-493930178.jpg
temp_963536327.jpg
temp_569429605.jpg
temp_-138618273.jpg
temp_1277840511.jpg
temp_-1971059690.jpg
temp_-1126741263.jpg

Just copy the above shown code.

Downloads

Complete Robot

temp_1582515798.jpg