Hi there.
I'm new to everything electronics so I apologize in advance for any remedial questions. I just bought a Sharp GP2Y0A02YK0F distance sensor. the datasheet is found here:
http://www.sharpsma.com/webfm_send/1487
I *think* I've wired it up correctly... I'm getting data back and printing it out to a console (using an arduino board).
I have two questions / issues:
1. When the unit is lying with the lenses facing up, I'm getting back values that are between 180 and 190. There's nothing in front of it. it's facing the ceiling which is 7ft up. I've measured the voltage and it looks like I'm getting a reading of 0.49xx consistently. If I'm understanding the charts on page 5 of the manual properly, at 0.5 volts,shouldn't it be returning a value of 0 or max 10?
I'm not sure if I'm understanding the chart properly.
2. how would i convert the numbers that are coming back into cms?
I tried reviewing the second chart on page 3 but I can't make heads or tails of it.
Sorry, this is my first electronics project.
I'm new to everything electronics so I apologize in advance for any remedial questions. I just bought a Sharp GP2Y0A02YK0F distance sensor. the datasheet is found here:
http://www.sharpsma.com/webfm_send/1487
I *think* I've wired it up correctly... I'm getting data back and printing it out to a console (using an arduino board).
I have two questions / issues:
1. When the unit is lying with the lenses facing up, I'm getting back values that are between 180 and 190. There's nothing in front of it. it's facing the ceiling which is 7ft up. I've measured the voltage and it looks like I'm getting a reading of 0.49xx consistently. If I'm understanding the charts on page 5 of the manual properly, at 0.5 volts,shouldn't it be returning a value of 0 or max 10?
I'm not sure if I'm understanding the chart properly.
2. how would i convert the numbers that are coming back into cms?
I tried reviewing the second chart on page 3 but I can't make heads or tails of it.
Sorry, this is my first electronics project.