Author Topic: $50 robot GP2D15 IR Range Sensor Help  (Read 2124 times)

0 Members and 1 Guest are viewing this topic.

Offline madhatterTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
$50 robot GP2D15 IR Range Sensor Help
« on: December 09, 2008, 07:07:01 PM »
Hi i have built the $50 robot and she works just like the one in the tutorial , well a little slower than that one as my wheels are tiny. I am at the stage of the build where i want to add the Sharp IR, but i have gone and got the digital GP2D15 not the GP2D12 it was last min ebay thing, I am not a programing expert more of a builder at the moment so can any one help me get this working with some code ? or  just point me in the right direction please.


[/URL]
« Last Edit: December 10, 2008, 05:53:20 PM by madhatter »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,658
  • Helpful? 169
    • Society of Robots
Re: $50 robot GP2D15 IR Range Sensor Help
« Reply #1 on: December 13, 2008, 08:05:09 AM »
Got a bigger image? :P

Read the first paragraph from here:
http://www.acroname.com/robotics/info/ideas/adjust15/adjust15.html

Quote
This sensor has a factory pre-set range of 24cm.  When an object is closer than 24cm, the digital output is high.  When an object is beyond 24cm, the digital output is low.


It doesn't actually give a range, it just tells you that an object is more or less than 24 cm away. You can still run the Stampy algorithm on it, don't worry. Open up the source code for it and look for the sharp IR threshold value. Change it to 128. And your done. ;D

If you want to do mapping, you'd need the analog Sharp IR.

Offline madhatterTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
Re: $50 robot GP2D15 IR Range Sensor Help
« Reply #2 on: December 14, 2008, 04:34:20 PM »
Thank you for your help that fixed it  ;)








Try that image i will take some new snaps and upload them soon. Once i have fixed the new servo into position.




This is what it looks like at the moment  ;D
« Last Edit: December 14, 2008, 05:11:25 PM by madhatter »

 


Get Your Ad Here