Line Follower Robot
Line Follower Robot
Line Follower Robot
Author: vahid_you2004 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
step 6: Wheels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
step 8: RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
http://www.instructables.com/id/Line-Follower-Robot/
Author: vahid_you2004
Author: vahid_you2004 Visit dihav.com
I'm a mechanical engineer, and I like computer programming, mechanics, electronics and specially the robotics.
http://www.instructables.com/id/Line-Follower-Robot/
step 1: First Step
Before everything you must know how to make a Printed Circuit Board and how to solder components on it. You also need to know how to program a PIC16F84A IC.
Here are the links to good instructables about making a PCB and Soldering:
A 4 AA battery holder
U1 = PIC16F84A Microcontroller + Socket
U2 = 7805 = 5V Voltage Regulator
U3 = LM324 Comparator
U4 = L298 Motor Driver + Aluminum Radiator
http://www.instructables.com/id/Line-Follower-Robot/
XT = 4MHz Crystal
C1 = C2 = 22pF Ceramic Capacitors
C3 = 100uF Electrolyte Capacitor
C4 = C5 = 100nF Ceramic Capacitors (104)
D = 8 x 1N4148 Diodes
R1 = 4.7K Resistor
R2 = R3 = 10K Resistors
R4 = R5 = R6 = R7 = 1K Resistors
R8 = 10K Resistor
R9 = 1K Resistor
R10 = R11 = 47K Resistors
R12 = R13 = R14 = R15 = 100ohm Resistors
R16 = R17 = R18 = R19 = 10K Resistors
RP = LP = MP = FP = 10K Potentiometers
L Motor = R Motor = 60rpm MiniMotors with Gearbox (6V)
R Sensor = L Sensor = M Sensor = F Sensor = TCRT5000 Infrared Sensors
ModeLED = LBLED = RBLED = Small Red LEDs
LFLED = RFLED = Small Green LEDs
Mode = Left = Right = Small Buttons
SW = Toggle Switch = On/Off Switch
J = Jumper = A piece of wire
http://www.instructables.com/id/Line-Follower-Robot/
Image Notes
1. A dead LED as front wheel
File Downloads
http://www.instructables.com/id/Line-Follower-Robot/
FrontBottom.wmf (18 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'FrontBottom.wmf']
http://www.instructables.com/id/Line-Follower-Robot/
Image Notes Image Notes
1. A piece of paper 1. A piece of paper
2. A piece of paper
3. Motor
http://www.instructables.com/id/Line-Follower-Robot/
Image Notes Image Notes
1. Front-Top board connections 1. Back-Top board connections
http://www.instructables.com/id/Line-Follower-Robot/
step 6: Wheels
Connect 2 plastic wheels to the motors and cover them with a rubber band.
Attach a wheel to the Back board in front of the robot with some glue, I used a dead LED as front wheel but it makes the robot move slow and I recommend to use a
spherical wheel.
Cover the gearboxes with sheets of thin plastic.
Image Notes
1. A dead LED as front wheel
http://www.instructables.com/id/Line-Follower-Robot/
File Downloads
Code.zip (6 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Code.zip']
step 8: RUN
Put 4 AA batteries into the battery holder, make a path, and turn on the robot.
If the robot does not work check soldering carefully.
Now you must adjust potentiometers to robot be able to detect black and white areas. Turn all potentiometers to leftmost position then turn back about 90 degrees to the
right. Hold the robot on the line, move it over a turning if the motors state does not changed change the potentiometers value.
Now put the robot on the path to follow it.
1. Default state
2. Forward (Green LED is on)
3. Backward (Red LED is on)
4. Stop (Both Green and Red LEDs are on)
http://www.instructables.com/id/Line-Follower-Robot/
step 10: How it works?
This robot has 4 IR sensors that scan the path.
If the Right and Left sensors has same values and the values of them are different from the Middle or Front sensors the robot is on the line and motors running forward.
Else the robot is out of line so the robot keeps moving till one of the side sensors value changes then it turns to the direction that its sensor value changed.
You can read the program source code (Code.bas) to understand it better.
Related Instructables
Arduino Arduino
eyeRobot - The My Arduino Line Controlled Line Controlled Line
Adaptive
Robotic White Following Robot Following Robot Following Robot
Mapping and
Navigation with Cane by shrimpy Belvedere - A !!! - With Pololu (video) by (video) by
iRobot Create Butler Robot by QTR-6A IR earthshine earthshine
by wolffan Reflectance
societyofrobots Sensor Array
(video) by
DuFFxP93
Advertisements
Comments
37 comments Add Comment
http://www.instructables.com/id/Line-Follower-Robot/
xap_psp says: Sep 29, 2010. 8:16 AM REPLY
thanks alot...it was really confusin since i'm new to all these things..... thanks
http://www.instructables.com/id/Line-Follower-Robot/
rabbitkillrun says: Aug 4, 2010. 9:23 AM REPLY
That it is. I enjoy programming, and programming something which physically does something is even better. However, I also like the
most basic of approaches too (basic as in parts used). Even if they are not at all practical, it's still fun every once in a while to see what is
possible.
RL
http://www.instructables.com/id/Line-Follower-Robot/