Line Following Robot With Arduino PDF
Line Following Robot With Arduino PDF
Table of Contents
Step 2: Assembly... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Step 5: Conclusion... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
http://www.instructables.com/id/Line-following-Robot-with-Arduino/
Intro: Line following Robot with Arduino
In this tutorial we are going to go over building a arduino line following robot using Proportional control as the control method. Similar to PID but simpler. I reccommend
checking out the Wiki on both control systems.
Proprotional Control
http://en.wikipedia.org/wiki/Proportional_control
PID
http://en.wikipedia.org/wiki/PID_controller
http://http://www.societyofrobots.com/programming_PID.shtml
http://www.instructables.com/id/Line-following-Robot-with-Arduino/
Step 2: Assembly...
After assembling the chassis secure the battery, Arduino and Ardumoto shield to the chassis ( I used zip ties). Next secure the QTR sensor so that it is just slightly above
the surface that the robot is going to be moving on. I used thin wire so that it was easy to adjust the sensors position but strong enough to hold it, as it might take some
adjusting when tuning your completed robot. Also take notice of the position of the sensor, header pins towards the inside so that the sensor pins match the Arduino
sketch.
## These files do not work with newer versions of Arduino Ide 1.0 and above ##
https://www.box.com/s/c26rsnfenj1ifd2gtyvg
And add it you your libraries folder located in your Arduino folder. If you are unfamiliar with this step or the location of your folder go here for help. >>>
http://arduino.cc/en/Guide/Libraries
Inside the QTRRCExamples folder is the sketch you are going to be using. You can use use the Arduino Ide to find and import the sketch or copy and paste the sketch
from a text editor into the Ide then upload it to your UNO.
http://www.instructables.com/id/Line-following-Robot-with-Arduino/
Step 4: Test and Tune...
After uploading the sketch, and remove it from USB. Then place the robot on a white surface (off the line) and reset the Arduino. Resetting the Arduino reboots the sketch
which for the first few seconds begins calibration of the sensors. Now once the wheels start to move again hold the robot off the surface and just above the black line
moving it left to right to see how well it adjusts the wheels to keep up with the line. You may find your robot reacts sporadically at first but continue to adjust the height
your sensor and resetting the Arduino every time until you notice a height which seems to react best. This is Usually about 2/16 of an inch but may vary, also the black
line width should be close to or around 3/4 of an inch. Obviously some of these conditions can be changed with some minor editing of the PololuQTRSensors library files
and or the original sketch.
Step 5: Conclusion...
Hopefully with this tutorial, you have gained some basic understandings of control methods like Proportional control and or PID. Which can be useful in robotics and
automated control systems. Here is a short video of the robot maneuvering under conditions I suggested previously.
Related Instructables
Advertisements
http://www.instructables.com/id/Line-following-Robot-with-Arduino/