Skip to main content
ARani.1
Associate
August 19, 2020
Question

I am using a VL53L0x for a distance measurement. During the measurements there is an error of 10cm for long range measurements. how could i overcome this?

  • August 19, 2020
  • 16 replies
  • 3501 views

..

This topic has been closed for replies.

16 replies

John E KVAM
ST Employee
September 15, 2020

I generally don't suggest this, but water is not easy to see.

Could you switch to the VL53L1X please? I know it's maybe a dollar more, but it has a huge advantage when seeing water.

the problem is a awful lot of photons spread out over the surface of the water, which acts like a mirror. And what you get back is a mess.

By switching to the VL53L1X you get a lens of the front of the Receive side.

Using this lens we can adjust the "Region of Interest", and by narrowing his region of interest, you can avoid the 'noise'.

All your hardware work is OK as the 2 chips have the same footprint. (actually the chip is very slightly larger in the X and Y directions, but it still fits in your layout.)

The VL53L1X is however 0.5mm taller. So your plastic housing has to change.

There is an UltraLite driver for this chip. It is simple to use and very small to integrate.

it is absolutely as straight forward as we could make anything. So even if you don't use the code, use it for reference.

the next trick you have to do is calibrate. (Even if you stay with the VL53L0X you have to calibrate to get accuracy.)

Read he datasheet on how to calibrate.

there is ST code on calibration. go to ST.com, search for the part (either VL53L0X or L1X) and download the API.

The code is there, but in the documentation is also a user manual.

it will guide you.

STSW-IMG005 - VL53L0X API (Application Programming Interface and documentation)

or

STSW-IMG007 - VL53L1X Full API (Application Programming Interface and documentation)

Even if you don't use the ST code, look at the calibration software.

the Crosstalk calibration accounts for the photons returned by your coverglass.

the offset calibration accounts for the small changes the chip goes through when you reflow it onto a PCB.

You need to do both.

  • good luck.
  • 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.
ARani.1
ARani.1Author
Associate
September 16, 2020

Ok thanks for the suggestion

ARani.1
ARani.1Author
Associate
December 2, 2020

Hi John,

Can you please suggest me a sensor available for measuring the 30 feet depth for a oil level measurement.

John E KVAM
ST Employee
December 2, 2020

To go 30 feet and spot something really black - like oil - you are going to need want I call a 'dot' laser. Bosch makes a good one. They even have versions that connect via bluetooth to a computer. They take a visable laser (so you don't point it at someone) and focus it to a single point. Otherwise they work the same way as do my sensors.

You can buy one at the hardware store for something line $40.

One can of course build one yourself. You can buy a laser, fit a lens on it to focus and then you are going to need a photo diode (or SPAD) to detect the incomming signal. Then buy a chip that will do all the math you need. Unfortunately ST doesn't make a part for you, but others do. ST does have a foundry business that can make the SPAD array in any configuration you want, but develping those is really expensive.

Of course that's a lot of work too.

Good luck.

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.