Author Topic: GP2D12 vs GP2D120 for Obstacle Avoidance  (Read 4258 times)

0 Members and 1 Guest are viewing this topic.

Offline ParthTopic starter

  • Full Member
  • ***
  • Posts: 71
  • Helpful? 0
GP2D12 vs GP2D120 for Obstacle Avoidance
« on: June 08, 2008, 11:43:13 AM »
Hey everybody! I'm mapping out to build an obstacle avoiding robot and I have a small problem. For my 'eyes', should I use the Sharp GP2D12 or the Sharp GP2D120 to avoid obstacles.

In my opinion, the GP2D12 can see objects further, so it seems like the obvious choice. However, it obscures obstacles that are close. But, why wait to turn when you could see the object before? You know what I mean?

Does anybody have any opinions on which sensor I should use? (PS: I am only willing to pay up to $20 for any sensor; I'm on a strict budget!) Thanks!

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #1 on: June 08, 2008, 05:49:11 PM »
Quote
But, why wait to turn when you could see the object before?
Thats fine if you are going in a straight line. What happens if you see something 50cm away and start to turn and, ' bang', you;ve just turned into something that is NOW directly ahead of you?

In my opinion all robots need to deal with the 'up close and personal stuff' first - be it via short range IR or even microswitches - and then push out the envelope so that these will be required less. But they WILL still be required.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline ParthTopic starter

  • Full Member
  • ***
  • Posts: 71
  • Helpful? 0
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #2 on: June 08, 2008, 05:53:25 PM »
Oh, I see. With the GP2D12 it could hit something while it's turning. I get it now. So, it seems like the GP2D120 (although having to be closer) would be best for the kind of robot I'm planning to build. Thanks for the help!

PS: I would use the GP2D12 with microswitches, but I'm not a big fan of microswitches...

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #3 on: June 08, 2008, 11:03:14 PM »
I have done this already with the $50 robot. i have the gp2d12. just follow the sharp IR upgrade on the robot. mount the servo far back enough on your robot to cancel out the close distance it can't see. the servo will constantly scan left and right. then you just need code to do object avoidance. its really simple 3 or 4 lines of code. let me know if u need help with the code.

Offline ParthTopic starter

  • Full Member
  • ***
  • Posts: 71
  • Helpful? 0
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #4 on: June 09, 2008, 04:29:11 PM »
OK, thanks for the help!

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,704
  • Helpful? 173
    • Society of Robots
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #5 on: June 16, 2008, 12:47:07 PM »
Why not get both sensors? One for really close up, and one for really far away.

Offline ceruleanplains

  • Full Member
  • ***
  • Posts: 57
  • Helpful? 0
  • Got Wumpus?
    • Project Log
Re: GP2D12 vs GP2D120 for Obstacle Avoidance
« Reply #6 on: June 17, 2008, 10:10:03 AM »
from experience with scanners... it's a good idea to try and calibrate your drive servos for your forward/back/left and right subroutines well (or use an encoder to help).  Otherwise you get nasty drift to the left or right that over a distance of about 2' can move a few inches.  This can result in you banging into the the walls if you aren't scanning all the time (which eats up battery and also introduces the 'faith' factor)... 

All being said and with your budget.. I'd recommend adding something on the side to help you keep a fixed distance from the wall also. You could make a half descent system yourself with an IR LED / IR receiver pair for about $3.



 

 

SMF spam blocked by CleanTalk