Society of Robots - Robot Forum

Software => Software => Topic started by: scarecrow90 on May 17, 2013, 02:56:15 AM

Title: Arduino UNO
Post by: scarecrow90 on May 17, 2013, 02:56:15 AM
How can i make an source code for a "object following robot"on Arduino UNO board? I already made the 50$ robot functional, but i want to make one using arduino UNO. Can u help me a bit with code?

Thx for your time!
Title: Re: Arduino UNO
Post by: obiwanjacobi on May 17, 2013, 04:21:45 AM
With the info you give it sounds like you have the software and the hardware and just need to marry the two..?

- Port your code to C or C++ if its not already.
- Replace interactions with functions calls to the arduino library (http://arduino.cc/en/Reference/HomePage) Note that there are also a lot of 3rd party libraries to choose from.
- Compile, upload and run.
Title: Re: Arduino UNO
Post by: scarecrow90 on May 18, 2013, 04:36:05 AM
i just want to know the digital and analog pins. For example: Pin 13 from Arduino is PC3 for microcontroller.
Title: Re: Arduino UNO
Post by: jwatte on May 18, 2013, 10:00:35 AM
Here's the mapping: http://arduino.cc/en/Hacking/PinMapping168 (http://arduino.cc/en/Hacking/PinMapping168)
Title: Re: Arduino UNO
Post by: scarecrow90 on May 20, 2013, 01:23:49 AM
thx
Title: Re: Arduino UNO
Post by: calinezul on May 21, 2013, 12:32:11 AM
You can find programming code and steps in these tutorials:
Programming code: [size=78%]http://git.hax0r.se/?p=Arduino/.git;a=blob;f=LineFollowingPID/LineFollowingPID.pde;h=06b1aae6398fab504a9cf1479ec654dce50041eb;hb=master (http://git.hax0r.se/?p=Arduino/.git;a=blob;f=LineFollowingPID/LineFollowingPID.pde;h=06b1aae6398fab504a9cf1479ec654dce50041eb;hb=master)[/size]
http://snipt.org/lRY/ (http://snipt.org/lRY/)
https://code.google.com/p/robafis-2011-ensibs/source/browse/LineFollower.java (https://code.google.com/p/robafis-2011-ensibs/source/browse/LineFollower.java)




Tutorials:
http://arduinobasics.blogspot.de/2011/05/arduino-uno-flex-sensor-and-leds.html (http://arduinobasics.blogspot.de/2011/05/arduino-uno-flex-sensor-and-leds.html)
http://www.intorobotics.com/line-following-robot-tutorials-how-to-build-programming-code-and-resources/ (http://www.intorobotics.com/line-following-robot-tutorials-how-to-build-programming-code-and-resources/)