Autonomous Arduino Rover 5

9,467

90

10

Introduction: Autonomous Arduino Rover 5

About: I like to think of myself as multitasking, altruistic , certified computer geek. Computer and customer service have always been my two great passions in life and I dedicated my life’s work in bringing thes...
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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

123D Circuits Contest

Participated in the
123D Circuits Contest

Be the First to Share

    Recommendations

    • Magnets Challenge

      Magnets Challenge
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    10 Discussions

    0
    JGlielmi
    JGlielmi

    3 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

    0
    marcusmithus
    marcusmithus

    4 years ago

    Hi...working on something similar and would love to see your code...but the above download link no longer works...thanks!

    0
    JamesM1
    JamesM1

    4 years ago on Introduction

    Where can you download the code? DropBox no longer posts it.

    0
    Shredder1227
    Shredder1227

    5 years ago

    Could you please publish how to make it. I am a student and would like to make this robot as I am getting better at arduino. A step by step process and parts list would be nice. Nice page. Thank you

    0
    pjdtechy
    pjdtechy

    Reply 5 years ago on Introduction

    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.

    0
    r5sb
    r5sb

    5 years ago on Introduction

    Hey..nice project...I was wondering whether you used the webcam that is mounted on the distance sensor?

    0
    pjdtechy
    pjdtechy

    Reply 5 years ago on Introduction

    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.

    0
    c2kpierce
    c2kpierce

    5 years ago on Introduction

    Could you make available your code? I am having trouble with mine and would like to see how you did it.