Hi all,
I have the Sharp GP2Y0A21YK IR proximity sensor.
I'm using it in a simple application, i.e to detect on object, with the arduino uno. I have power with the +5V line and then GND. The sensor takes a reading every 50ms. I've been monitoring the readings and of course there's a lot of variation. Example, the readings are varying from 0 to 100, but at one instant it'll just jump to around 160 without anything in the sensor's way. The sensor is not moving in any direction.
I've tried connecting a 10 micro-farad capacitor between +V and GND but no significant changes.
Summary: If I leave the system for let's say, 2 minutes alone and it taking readings, at some point it will get a reading as if there was an object in proximity..
Any help or advice please? Thanks in advance.
I have the Sharp GP2Y0A21YK IR proximity sensor.
I'm using it in a simple application, i.e to detect on object, with the arduino uno. I have power with the +5V line and then GND. The sensor takes a reading every 50ms. I've been monitoring the readings and of course there's a lot of variation. Example, the readings are varying from 0 to 100, but at one instant it'll just jump to around 160 without anything in the sensor's way. The sensor is not moving in any direction.
I've tried connecting a 10 micro-farad capacitor between +V and GND but no significant changes.
Summary: If I leave the system for let's say, 2 minutes alone and it taking readings, at some point it will get a reading as if there was an object in proximity..
Any help or advice please? Thanks in advance.