cancel
Showing results for 
Search instead for 
Did you mean: 

ToF inaccuracy

karlacha
Associate II

Hi,

 

I was doing a distance test on the VL53L4CX sensor using ESP32 and the ST example codes on Arduino. I'm getting  inconsistent offset errors across the range. The setup is a brine tank with salt inside it. Any ideas on this?

 

Thank you.

1 REPLY 1
John E KVAM
ST Employee

When looking at water (briny or not) you have a problem with light penetrating the liquid, being slowed down, hitting the bottom of the tank and reflecting. If the liquid is deeper than about 15 cm, or if you paint the bottom with a non-reflective coating, this effect goes away.

Could you run the experiment again putting more than 15cm of water in the bucket?

Looking at your data, I'm going to guess you added some liquid to a bucket, then lifted your sensor and took measurement. So, the bottom might have an 'offset' effect. Both sensors over-range by about the same amount (except at 600 - that data point is an outlier. 

I going to guess that maybe you did NOT do an offset calibration before you started. That might account for all your numbers being low.

JohnEKVAM_0-1718900391639.png

Try doing an offest cal on your sensors - see what it tells you. If you get 20mm of offset, I'd say the numbers looks as good as they can. (Just update your data by the offset amount and have another look.)

I'm not sure I can explain the data point at 600 though. Experimental error. 

Try it again with a deeper pool of water, and doing the calibration. Then we can re-visit the numbers.

- john 

 

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.