cancel
Showing results for 
Search instead for 
Did you mean: 

How to achieve greater measurement precision close to Vl53L4CD?

JBM
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

 


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.

View solution in original post

6 REPLIES 6
Anne BIGOT
ST Employee

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
Associate II

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

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

 


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.

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

Greetings John.

 

I have solved the problem of detection of blockage of VL53L4CD sensor close using 1,0 mm air gap and 0,35 mm 9H photo cover glass (1,35 mm distance in total). The minimum detection distance is 19 mm.
I have developed a program for object detection, blocking detection and calibration of up to 8 VL53L4CD sensors simultaneously. I am not a programming expert, but hope that others can use my program or be inspired by the method. Suggestions for improvements etc. are welcome. ST@jorgen-madsen.dk
 
 
Regards
Jorgen
John E KVAM
ST Employee

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


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.