Trouble with GP2D12 sensor and Basic Stamp 2
Suraj
Posts: 10
Hi everyone, I am new here.
I need help with getting a GP2D12 sensor working.... I currently have it connected to a parralax stamps in class board and its giving me 1s and 0s, while i am trying to measure distance....Please help me on this aspect.... anyway to get it working would be appreciated!
Thanks
email: sixstring@gmail.com
I need help with getting a GP2D12 sensor working.... I currently have it connected to a parralax stamps in class board and its giving me 1s and 0s, while i am trying to measure distance....Please help me on this aspect.... anyway to get it working would be appreciated!
Thanks
email: sixstring@gmail.com
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
The Stamp doesn't have one built in, so you will need to:
1) hook up an ADC unit to the stamp
or
2) use another Sharp sensor such as the GP2D02, which returns a byte value proportional to distance.
two other possible solutions-
There used to be a Sharp sensor that returned a PWM value proportional to distance that the Stamp can read-- you may still be able to find one.
I suppose you may be able to use· a cap and RCtime to read the sensor,but I haven't tried.
Larry
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
That was super fast!!!!!
Thanks a lot guys.... I'll try what you said.....
-Suraj
THANKS A WHOLE LOT!
Here is a page I made about uising this sensor. You can see it at:
http://madlabs.info/gp2d12/sharp_gp2d12.shtml
Hope this helps!
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot