cancel
Showing results for 
Search instead for 
Did you mean: 

Using the UltraLightDriver for VL53L1X in Arduino IDE, there is an important fluctuation of values even at low range - it increases with the range. Time budget used is 100ms, range is Long. What is the possible explanation for this?

IMIHN.1
Associate

orange -VL53L1X

blue - HCSR04

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

A couple dollar sensor really is not able to measure down the the few pico second accuracy one would need to get down to millimeters. So we use statistics. And with all statistical models there is going to be some variation. I'm going to guess that is what you are seeing. Increasing the timing budget can help, but you are still going to see some variance in the answers. Long term averaging of the data can also help.

  • john

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

A couple dollar sensor really is not able to measure down the the few pico second accuracy one would need to get down to millimeters. So we use statistics. And with all statistical models there is going to be some variation. I'm going to guess that is what you are seeing. Increasing the timing budget can help, but you are still going to see some variance in the answers. Long term averaging of the data can also help.

  • john

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.