alas it doesn't work that way. Setting he scaling to 3 means we get the range in mm, divide by 3 and hand you the result. Then you multiply the value by three to get the final range. You end up with worse resolution, but you can range farther.
Your best bet is to use the VL53L4CX. It uses histograms and they are proving to be a better way to go. It also collects photons for the entire time you allow. (The 6180 ranges until it gets enough photons, making it faster, but less accurate.)
You will get a far more consistent answer.
But there is phase error. If you do a Stop/Start the phase will be ever so slightly different. And that will lead to a difference of one or two mm. Only way around it that I can see is to range on a known target and do a mini offset calibration every time you start.
At that point you have eliminated most of the error. The rest is statistical in nature, so just take more ranges and average I suppose.
And one last thing.. As the sensor heats up, the distance will change. But every 2 degrees C we recalibrate the VHV (very high voltage) circuit, and you become more accurate again. This will lead to a 'saw tooth' sort of plot over time.
Best bet here is a massive heat absorbing ground plane to slow that cycle. Unless you have a better idea.
- 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.