http://www.adafruit.com/products/164
I have a GP2D12 (I think it's the same device).PiGraham wrote:...
This sensor outputs 0.3V to 3V so you could use it as a fixed distance sensor that would change a digital input 0 - 1 at some distance 10cm - 80cm.
...
Thanks for the help, but this is irrelevant. I have Arduino piping the analog number to pi through the piserial into python. Does anyone know the equation that will decode it from analog to range?joan wrote:I have a GP2D12 (I think it's the same device).PiGraham wrote:...
This sensor outputs 0.3V to 3V so you could use it as a fixed distance sensor that would change a digital input 0 - 1 at some distance 10cm - 80cm.
...
I hooked it up to the Pi (5V, GND, gpio4). It gives logic 1 at about 12 cms and closer.
oh thanks... missed that... right now I'm using the digital which works finejoan wrote:PiGraham posted a blog link which gives that information.