2020-09-30 05:18 AM
Could someone explain me what's going on when this sensor is placed in front of uneven surface such as stairs in open area. i'm attaching images of readings X-axis is sample number and y-axis is distance in mm. Samples are taken for every 100msec. Reading are varying from 200 to 4000 mm. I want to know just where the object is. It is tested in ambient light.
2020-10-05 03:15 PM
In order to understand the distance measurement, you have to read the RangeStatus as well.
The RangeStatus will tell you if there is anything odd about your data.
You might find that the signal is completely swamped by the ambient light.
(remember that the only ambient light that counts is at 940nm. Sunlight and strong halogen lights are the only real sources of this.)
Try increasing your timing budget. 4x the timing budget = 2x the accuracy.
If you have the evaluation kit, use that, and turn on logging. Then go to the log tab, and look at the data. Instead of clicking on the log file, try right-clicking and hitting open. It will open the a spreadsheet.
You answer is sure to be in there.
2020-10-05 08:39 PM
Thank you @John E KVAM