Author Topic: wall avoidance  (Read 2412 times)

0 Members and 1 Guest are viewing this topic.

Offline cooldogTopic starter

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
wall avoidance
« on: November 12, 2007, 06:07:30 PM »
does anyone know a algorithm for a single sharp Ir wall avoidance or a tutorial
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline Steve Joblin

  • Supreme Robot
  • *****
  • Posts: 405
  • Helpful? 2
Re: wall avoidance
« Reply #1 on: November 12, 2007, 06:32:17 PM »
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.

Offline cooldogTopic starter

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
Re: wall avoidance
« Reply #2 on: November 12, 2007, 06:37:39 PM »
OK but where can i get a algorithm for that ( i don't know how to program )
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
Re: wall avoidance
« Reply #3 on: November 12, 2007, 06:52:49 PM »
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???
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Steve Joblin

  • Supreme Robot
  • *****
  • Posts: 405
  • Helpful? 2
Re: wall avoidance
« Reply #4 on: November 12, 2007, 08:31:51 PM »
the programming is pretty straight forward for the approach I suggested... what microcontroller are you using?

Offline cooldogTopic starter

  • Supreme Robot
  • *****
  • Posts: 751
  • Helpful? 4
  • be nice to nerds, one day they will be your boss
Re: wall avoidance
« Reply #5 on: November 12, 2007, 08:49:19 PM »
AT MEGA 8 form the $50 robot
robot will rule the world and i will be building them
-admin

favorite web sites
http://www.societyofrobots.com/
http://www.instructables.com/

Offline Half Shell

  • Robot Overlord
  • ****
  • Posts: 225
  • Helpful? 0
Re: wall avoidance
« Reply #6 on: November 13, 2007, 12:45:35 PM »
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.

 


Get Your Ad Here

data_list