pololu / vl53l0x-arduino

Pololu Arduino library for VL53L0X time-of-flight distance sensor
https://www.pololu.com/product/2490
Other
346 stars 162 forks source link

Range offset #51

Open MassiPi opened 3 years ago

MassiPi commented 3 years ago

Hello, just got the sensor. Using this library, the free sensor returns values more or less 80mm bigger that real. I did not cover the sensor, just a ranging test and i get this big offset. I was wondering if this is common, because i see the library has not implemented the offset command provided for by the sensor. Thanks

kevin-pololu commented 3 years ago

Hello, MassiPi.

We generally don't find it necessary to do any offset calibration with these sensors, so I am surprised you are getting such inaccurate results. Are you using a VL53L0X carrier from Pololu? If so, have you made sure to remove the protective film from the front of the sensor (which can affect the measurement results)?

Do you have multiple VL53L0X boards you can compare to see if the problem is unique to one sensor or different for each sensor? Also, you might try some other libraries like Adafruit's VL53L0X library to see if the same offset shows up there too.

Kevin