Skip to main content
MTURAN
Associate
August 6, 2021
Question

How can I run VL53L0X sensor with STM32F407VG Discovery development board?

  • August 6, 2021
  • 1 reply
  • 1011 views

Hello, I'm currently trying to run the VL53L0X sensor on the STM32f407VG Discovery development board. I am able to measure distance with a ready-made library I found on the internet. But these measurements are very noisy, and I get an error value of 8190 after measuring 120cm. I'm not doing any calibration because I don't know how to do it. Can you help me?

If you wish, I can share the library I use and my main.c code.

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
August 9, 2021

The VL53L0X has a max range of 2M. But the range you get will depend on the size and reflectivity of you target. At 120cm, the spot size of the illumination is 60cm in diameter. If your target is smaller than that and not very refletive, you might start seeing data with a 'no signal' reading.

I'm going to guess you didn't do anything wrong.

you can see a hand to about 60cm, and you will be able spot people to about 1.5m.

Is that what you get??

normal cardboard is 50% reflective.

Black paint is 5% reflective.

White printer paper is 88% reflecitve,

Use targets like these to see where you stop ranging.

Remember that the target needs to be 1/2 the size of the range in diameter or you are not filling the entrire field of view.

If you can range to 2M while pointing at a 1M diagonal circle of 88% white printer paper, you will be doing as well as the sensor can.

  • john