Society of Robots - Robot Forum
Software => Software => Topic started by: cooldog on November 12, 2007, 06:07:30 PM
-
does anyone know a algorithm for a single sharp Ir wall avoidance or a tutorial
-
I would mount the unit on a servo that rotates the sensor to the left side, takes a reading, rotates the sensor to the middle, takes a reading, rotates the sensor to the right side, takes a reading, then determines what action to take based on the data it just collected from the three readings. Then continuously repeat the process.
-
OK but where can i get a algorithm for that ( i don't know how to program )
-
you should do tutorials on programming and learn other stuff, not just take other people's work
if you're doing that and not learning , whats the point of making a robot?
you do want to learn right???
-
the programming is pretty straight forward for the approach I suggested... what microcontroller are you using?
-
AT MEGA 8 form the $50 robot
-
A simple if statement like this:
if( irRange > 120){
turn
}
Works. I am using that for my object avoidance bot right now using the Sharp IR sensor until I turn it into a mapping bot.