EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: electrolux on February 04, 2014, 11:15:11 am

Title: Robotics
Post by: electrolux on February 04, 2014, 11:15:11 am
Can anyone supply me with circuit diagram and code for a Arduino line following robot? :-//
Title: Re: Robotics
Post by: Rerouter on February 04, 2014, 11:29:00 am
There should be plenty of examples online if you go searching, other than that it is as simple as a staggered if statement, you have 2 spaced sensors and your on a line with only 1 sensor getting a reading, if the second sensor sees the line it is curving one way, if the first sensor looses it without the second picking anything its either end of line or curving the other direction

(a basic test like this is why so many spin in one direction when they loose the line)
Title: Re: Robotics
Post by: Kohanbash on February 04, 2014, 03:03:41 pm
Hi
Here is a line following robot and its code from the Society of Robots using an Atmega.

http://www.societyofrobots.com/robot_mobot_2007.shtml (http://www.societyofrobots.com/robot_mobot_2007.shtml)
http://www.societyofrobots.com/downloads/Mobot_2007_v1.zip (http://www.societyofrobots.com/downloads/Mobot_2007_v1.zip)
Title: Re: Robotics
Post by: electrolux on February 11, 2014, 10:23:11 am
Hi
Here is a line following robot and its code from the Society of Robots using an Atmega.

http://www.societyofrobots.com/robot_mobot_2007.shtml (http://www.societyofrobots.com/robot_mobot_2007.shtml)
http://www.societyofrobots.com/downloads/Mobot_2007_v1.zip (http://www.societyofrobots.com/downloads/Mobot_2007_v1.zip)
Thanks it's brilliant the robot even looks good. I don't really mind it being Atmega.