2024-11-13 09:30 PM - edited 2024-11-13 10:48 PM
I’ve been using the "vl53l8cx" sensor to measure distances through I2C, and I noticed that when I measure distances (between 10cm and 50cm), the values reported by the sensor are consistently half of the actual distance. For example, when the actual distance is 100mm, the sensor reports around 50mm, and similarly for other distances.
I used the example code ST provided.
I set 8*8 resolution and 15Hz frequency.
I think problem occurs here. I got "target status : 6"
Could you please explain the reason for this issue and how to fix it?
2024-11-14 07:27 AM
I'm going to guess you are using a coverglass. Below about 60cm the glass return signature gets mixed in with the target signature and a million photons from your glass at distance zero, mixed with a million photons from your target at distance 50cm = 25cm.
Having lots of photons - from a white paper will overwhelm the glass and you get closer to the right answer.
Solution is to remove the coverglass, get a better one, or calibrate the one you have.
You can read my article on the subject - it's short.
https://community.st.com/t5/mems-and-sensors/time-of-flight-cover-glass/ta-p/49259
This is the user manual on how to calibrate.
Product – 閎喬光學 - is a Taiwanese company that sells a really good coverglass. (It's not associated with ST, but we did jointly design that glass.)
- john
2024-11-25 07:21 PM
Thansk a lot.
It was just my code mistake but your answer was useful.