cancel
Showing results for 
Search instead for 
Did you mean: 

vl53l1x gives an incorrect and very inconsistent distance after 40 cm

OEdem.1
Associate

I have two vl53l1x sensors. At first they were working coorectly. But after a while the first one gives right distance but the second one started to doesn't give right distance after 40cm. its regulators output is 3.3V. here is the vl53l1x code that I used.

Is there a possibility that the second vl53l1x is corrupt or how could it be corrupted?

If it is corrupt, why can it read up to 40cm?

1 REPLY 1
John E KVAM
ST Employee

I'm going to guess there is a crosstalk issue. If your coverglass gets dirty, more photons will hit the coverglass and return immediately. This will keep the sensor from 'seeing' very far. And it will tend to under-range as well.

If you are using a glass, try removing it.

And give the following article a read.

https://community.st.com/s/article/Time-of-Flight-Cover-glass


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.