Autonomous Arduino Rover 5
Intro: Autonomous Arduino Rover 5
This is my very first Arduino http://youtu.be/4KKbA1m54Y4project, I wanted to learn C and C++ programming while having fun. So I decided to put together an autonomous toy capable of driving itself around and avoid obstacles. Again I am in the process of learning still a rookie, my codes work for now but could use some improvements. I used the Dagu Rover 5 tank chassis with two motors. I also have two ultrasonic distance sensor ( HC-SR04), one in the bottom for emergency stop, and one on top scan while in autonomous mode. They are mounted on two servos, bottom servo for left and right, top servo for up and down. I have an On and OFF switch. I used a potentiometer connected to analog pen 0. All the way to the left mean Autonomous mode, and all the way to the right mean programming. Like I say it is still a learning process, I try to improve my codes as much as I can. It help me avoid the robot crawling around my desk when the USB is connected. I will post a more detail guide when time permit.
here is the code https://www.dropbox.com/s/3o6rlnctjgi28h9/pj_ping_rover.ino
This was my very first boot, as seen on the video, code needed some review. As it get confuse when it approach an obstacle.
outdoor grass testing
codes were updated, now able to scan and decided the safest direction without obstacles.
here is the code https://www.dropbox.com/s/3o6rlnctjgi28h9/pj_ping_rover.ino
This was my very first boot, as seen on the video, code needed some review. As it get confuse when it approach an obstacle.
outdoor grass testing
codes were updated, now able to scan and decided the safest direction without obstacles.
10 Comments
JGlielmi 7 years ago
Hi I'm working on something similar as well and would like to see the code involved. the link is no longer functioning...thanks and Kudos on all the hard work
marcusmithus 8 years ago
Hi...working on something similar and would love to see your code...but the above download link no longer works...thanks!
ayyoush.mehyar 9 years ago
please can you check the code i cant find it !!
JamesM1 9 years ago
Where can you download the code? DropBox no longer posts it.
Shredder1227 10 years ago
Shredder1227 10 years ago
pjdtechy 10 years ago
I wanted to published a How to guide, but most of the components I used were laying around my house. It turn out ok, but it was more of a sporadic built. Unfortunately not everything is documented. Give me a couple days, I will see what I can do.
r5sb 10 years ago
Hey..nice project...I was wondering whether you used the webcam that is mounted on the distance sensor?
pjdtechy 10 years ago
Yes, usually I turn it on and let it run loose around the house. Wireless Cam allow me to see what it is doing and where it is.
c2kpierce 10 years ago
Could you make available your code? I am having trouble with mine and would like to see how you did it.