Skip to main content
JBM
Associate II
July 12, 2024
Solved

How to achieve greater measurement precision close to Vl53L4CD?

  • July 12, 2024
  • 3 replies
  • 5649 views

Greetings!

When I measure objects closer than 10 mm from the VL53L4CD, the result deviates significantly from what was expected, and the result also varies significantly depending on the texture and gloss of the object.

Is it possible to configure the VL53L4CD to be more accurate in the range 0 - 10mm distance from the sensor?

I have carried out some simple test measurements in the range 20 - 0 mm with the colors matt black, matt grey, light yellow and shiny white. Please read the uploaded PDF showing measuring test results and graphs.

 

Regards Jorgen

Best answer by John E KVAM

It appears to me that you are correct. 

But I have at least a partial suggestion

Switch to the VL53L4CX. The software is more complex, although we give it to you.

I think you will be happier. 

My simple test is to place a object at 7mm - it's the height of the connectors on the eval board.

With this set-up I get 0.4.

with a better offset calibration, I believe I can get closer, but I wanted to respond quickly. 

Give the VL53L4CX a try and see if you like it better.

- john

 

3 replies

Anne BIGOT
Technical Moderator
July 18, 2024

Hello,

Having a look to your pdf, the results at 0mm are not as good as expected. Are you using a cover-glass ? If not, we recommend to use one.

To get a better accuracy, you can also increase the timing budget. 

Regards

 

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'
JBM
JBMAuthor
Associate II
July 25, 2024

Hello Anne.

I followed your advice, and tested time budget = 200 milliseconds and cover-glass. Unfortunately it didn't give better results. The use of cover glass gave slightly worse results. See uploaded graph (picture) with comparisons (VL53L4CD measured average vs actual range distance mm.png)

I followed the guidelines in ST document: AN4907 Application note I used high quality camera lens 9H glass 0,35 mm thick and zero air gap.

My personal conclusion: VL53L4CD measurement below 10 mm is unreliable.

Do you have any suggestions for improvement?

 

Regards

Jorgen

John E KVAM
John E KVAMBest answer
ST Employee
July 29, 2024

It appears to me that you are correct. 

But I have at least a partial suggestion

Switch to the VL53L4CX. The software is more complex, although we give it to you.

I think you will be happier. 

My simple test is to place a object at 7mm - it's the height of the connectors on the eval board.

With this set-up I get 0.4.

with a better offset calibration, I believe I can get closer, but I wanted to respond quickly. 

Give the VL53L4CX a try and see if you like it better.

- john

 

JBM
JBMAuthor
Associate II
July 31, 2024

Thank you John.

I will look into the VL53L4CX. In the manual it says: ST histogram algorithms ensure cover glass crosstalk immunity beyond 80 cm and dynamic smudge compensation for targets below 80 cm. It's exactly what I need.

Anyway I have been working with the VL53L4CD for some time and programmed approx 700 lines of robust and error-correcting functionality with detailed error descriptions to Arduino.

The detection of sensor blocking is not perfect, but it is OK for now. Have at look at this short video (3 minutes):

Train detection with VL53L4CD laser sensor 

 

I am still working on improving the accuracy of measurement below 10 millimeter with different colors and gloss. E.g. to compensate for matte black and matte gray I am testing for  distance < 20 mm and Signal SPAD/KCPS < 50 (Actual distance close to zero mm). I will also try to mount the 0,35 mm cover glass with 0,65 mm air gap. I.e. 1 mm to the top of cover glass.

 

Regards

Jorgen

John E KVAM
ST Employee
August 26, 2024

Jorgen -

I'm impressed. I didn't actually run it sure looks to me like a well thought out bit of code. 

Might I suggest that you publish it on GitHub. It's easy and lots of people go there looking for examples.

You can insert the entire project if you so desire and people have more than just the main.c to look at. 

Either way, well done!

- john

JBM
JBMAuthor
Associate II
November 17, 2024