cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L1X Reading data

Akuma.6
Associate III

Hi,

I can read the VL53L1X sensor data via i2c. But the values are not consistent when I keep my object from 1cm to 20cm the values are not accurate and not matching with the distance level.

Regards,

Kumar

6 REPLIES 6
Akuma.6
Associate III

Hi,

I took the code reference from Arduino and implemented the same in our platform. which is working but still the values are not coming accurate

please check our codes.

Rgds

Julien NGUYEN
ST Employee

Hi Kuma,

Could you please detail your test condition?

  • Hardware, X-NUCLEO-53L1A1 ? other?
  • SW, ST GUI, other ?
  • Is there any additional cover glass?
  • Offset calibration has been done ?
  • Curve measured distance vs actual distance?

Thanks

Julien


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi Julien,

Thanks for your response. Please find my answers as per your queries.

1). Hardware, X-NUCLEO-53L1A1 ? other?

    I am using BLE Coretex-M33 Soc module (silab) interfaced via I2C. The data is getting on I2C, But still there is issue with values.

2). SW, ST GUI, other ?

   Written the FW logic as per our SoC

3). Is there any additional cover glass?

   No additional glass direct values are reading form sensor.

4). Offset calibration has been done ?

  Calibration function called every time reading the distance value.

5). Curve measured distance vs actual distance?

 Distance measuring in sensor bottom with object

And the detailed resisters and calls c source mentioned in my last thread.

Regards,

Kumar

Hi ST Team,

Can i expect the reply as per my below query.

Regards,

Kumar

Julien NGUYEN
ST Employee

Hi Kumar,

4). Offset calibration has been done ?

  Calibration function called every time reading the distance value.

You should not call the calibrations function every time reading distance!

Offset calibration and Xtalk calibration is only called once at start up.

Could you comment the call to see if the ranging data is more consistent.

It is not easy for me to debug your code which is written for another platform than the STM32 Nucleo.

Which version of VL53L1X driver are you using?

I recommend this one called Ultra Lite Driver

STSW-IMG009 - VL53L1X ULD API (Ultra Lite Driver Application Programming Interface) - STMicroelectronics

Julien


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Akuma.6
Associate III

Hi Julien

Thanks for you response.

Ok I will do it in one time .

Please let us know the Offset calibration and Xtalk calibration calls in your code?

Regards,

Kumar​