Arduino-GP2Y0A21YK-library
Arduino-GP2Y0A21YK-library copied to clipboard
Sporadic Readings
Hi there, I hooked up my GP2Y0A21YK sharp IR sensor tomy arduino UNO and downloaded your latest library.I had some sporadic readings, which were far from the unexpected. I wish you could be of help. I checked out the voltage values and compared it with that on the datasheet and I realized that they were different from the centimeter readings I was getting from your library. Below are a sample of the centimeter readings and the voltage readings.
Also I would like to know if there are any best practices in using this sensor for measuring accurate distances. Thanks
Distance in centimers: 34 Distance in centimers: 30 Distance in centimers: 30 Distance in centimers: 34 Distance in centimers: 38 Distance in centimers: 31 Distance in centimers: 35 Distance in centimers: 32 Distance in centimers: 34 Distance in centimers: 35 Distance in centimers: 34 Distance in centimers: 35
ADC input mV: 347 ADC input mV: 244 ADC input mV: 542 ADC input mV: 386 ADC input mV: 391 ADC input mV: 386 ADC input mV: 366 ADC input mV: 327 ADC input mV: 342 ADC input mV: 371 ADC input mV: 420 ADC input mV: 532 ADC input mV: 366 ADC input mV: 400 ADC input mV: 366 ADC input mV: 347 ADC input mV: 347 ADC input mV: 347