Society of Robots - Robot Forum

Software => Software => Topic started by: JoseS13 on December 10, 2007, 07:58:34 PM

Title: $50 line following robot (working).
Post by: JoseS13 on December 10, 2007, 07:58:34 PM
Well I started this project as a photovore and ended up with a line follower. I used the same code as the photovore but instead of using the photo resistors I used two QTI IR sensors http://itp.nyu.edu/physcomp/sensors/Reports/QTILineSensor (http://itp.nyu.edu/physcomp/sensors/Reports/QTILineSensor). I had to use a 10kohm resistor on each sensor for them to work with the program (check link for reference). I also changed the threshold value in the source code from 8 to 50. It works like a dream. I'll post a video of the robot later. The robot follows a Black line on a white surface.
Thanks admin for the wonderful tutorials and this great forum. I had to build this project for class and would not have been able to finish if it wasn't for all the useful information on your site and forum. Im finishing my electronics major this week and don't know crap about C language. Well I learned a little from experimenting with your codes.
Thanks,
Jose
 ;D
Title: Re: $50 line following robot (working).
Post by: Admin on December 10, 2007, 08:10:40 PM
 :D
Title: Re: $50 line following robot (working).
Post by: airman00 on December 10, 2007, 10:09:42 PM
Just curious,

the robot cannot do sharp turns ( more than 60 degree turns)  and 90 degree turns are out of the question



cant wait to see the video
Title: Re: $50 line following robot (working).
Post by: JoseS13 on December 10, 2007, 10:47:44 PM
I didn't test how sharp it could turn yet. I have to show it in front of the class Wed. I guess that will be a good time to find out. Those sensors are only 6 dollars a pop from Parallax.
Title: Re: $50 line following robot (working).
Post by: Admin on December 11, 2007, 05:55:54 AM
If you want it to do sharp turns, just change the servo speeds to be faster when it turns.
Title: Re: $50 line following robot (working).
Post by: airman00 on December 11, 2007, 09:11:22 PM
oh heres a line following / object avoiding robot i built
(http://i273.photobucket.com/albums/jj202/erobot/Picture6.jpg)
its a bit crude but I'm redoing it out of plexiglass next week.