My first arduino rover.
This is my first robot rover I built with an arduino duemilanove and an Adafruit motorshield. It is not my first attempt however. The motors, tracks and metal frame were bought as a kit. The rover uses a Parallax Ping))) sensor to detect objects.
I plan to add infrared refectors and bumper switches in the future to make sure it does not drive of the table.



@ Sat, 2010-01-09 06:23
hey there.
@ Wed, 2009-12-30 00:58
hi there i to am building
@ Wed, 2009-12-30 20:34
This is the main loop of my
This is the main loop of my rover code:
void loop() {lookForward(); // position robot head so it looks forward
while(distanceInCentimeters() > FORWARD_TRESHOLD) {
moveForward();
delay(500);
}
stopMotors();
scanAround(); // find an exit
if(leftScan > LEFT_TRESHOLD) {
if( leftScan >= rightScan) {
turnLeft();
} else {
turnRight();
}
} else if(rightScan > RIGHT_TRESHOLD) {
if(rightScan > leftScan ) {
turnRight();
} else {
turnLeft();
}
} else {
// move backwards until the robot can make a turn
do {
moveBackward();
scanAround();
}
while(leftScan <= LEFT_TRESHOLD && rightScan <= RIGHT_TRESHOLD);
if(leftScan > LEFT_TRESHOLD) {
turnLeft();
} else {
turnRight();
}
}
}
@ Tue, 2009-11-03 18:08
Hi.
nice bot. video would be great. it looks nearly like my bot. i look for a task .. cause only drive around is lame
greez from germany