Let's Make Robots!

RoverBot

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
When i was at engineering camp we made a program similar where, when it runs into an obstical it will look left and right and compare the 2 distances and depending on which ones closer it will either turn left or right.....not bad for someone who learned (Some) C language in 1 day!
you should really consider using geared motors from pololu because tamiya is just too slow

don't matter, i got the general idea from your work, and mated it with my ada fruit motor shield...

now to figureout why one side will go in reverse but the other will not.

maybei built it badly or something. :)

I am trying to figure out your code, i am very new at this, but when i put it into the ide i get an error:

error:redefinition of 'long insigned int echo' in fuction 'void setup()': in function "void loop()":

any ideas?

 

Do you have the diagram of the custom board that you build using a SN754410, which is an L293-compatible chip?
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?
buhatkj's picture

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 

:-)

jklug80's picture
is ServoTimere1.h misspelled? May it is ServoTimer1.h?
mattmitch's picture
what motor driver are you using ? ~Matt
buhatkj's picture

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.

:-)