RoverBot

buhatkj's picture
Navigate around via ultrasound
Cost to build: 
$130
Time to build: 
16 hours

Description: 

This is my Roverbot.  He is a very simple robot, all he does is basically what the "Start Here" robot does, but with a casca tankbot chassis, an arduino, and a custom motor/servo driver board.

There is also 1 tiny innovation in his code, I made a very small circular buffer to record his last 10 decisions, which I use to prevent him from oscillating back and forth when he drives into a narrow dead end (he will instead just turn around ~180).

Also, I built his gearbox with the really high ratio so he is super slow, so I might rebuild it with the lower ratio to make him faster.

Code is attached for your downloading pleasure...

 Update - 12/18/2008

Roverbot had his gearbox rebuilt with the lower ratio, so he is faster now, but I need to update his timing constant in the code to make him not run into stuff as much.  Also, I have had some breakage issues with his chassis, the acrylic is very brittle, I wish it were lexan instead, that stuff is nearly unbreakable.  Will post a new vid soon-ish once I update his code...

Your rating: None Average: 4.8 (4 votes)
robologist's picture

Looks pretty slick!

Well thought out program, does a good check over obstacles.
voodoobot's picture

your comment made me want to

your comment made me want to take a look at the code....and when looking at it I found this...

//this should NEVER happen

<code>

I don't know how many times I"ve put something similar in mine...

I had to lol....

 

buhatkj's picture

heh yeh i wrote that code

heh yeh i wrote that code pretty quickly, having looked over similar code and considered the logic of what I wanted it to do, I iterated on a it a little bit, just to iron out some of the bugs, but didn't clean it up or refactor it much, i'm usually just so tired after coding all day at work!  Many of the constants still aren't quite right, but I think the basic behaviors are there...

:-)

mattmitch's picture

what motor driver are you using ?

what motor driver are you using ? ~Matt
buhatkj's picture

My motor driver for this bot

My motor driver for this bot is a custom board I made using an SN754410, which is an L293-compatible chip.   In this case the motor driver board also acts as a power bus for my 5v-based accessories, such as my servo and PING sensor.

:-)

I'm new to this

I downloaded the code and when I try to compile it, I get this 25 error: ServoTimere1.h:No such file or directory.  How would I solve that problem?
jklug80's picture

is ServoTimere1.h

is ServoTimere1.h misspelled? May it is ServoTimer1.h?
buhatkj's picture

need the servotimer lib for arduino

the servotimer library for arduino does not come with the stock arduino software.  You have to install it.  you can fgind it here:

http://www.arduino.cc/playground/ComponentLib/Servotimer1 

:-)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.