Skip to main content
BLiso.1
Associate
March 31, 2023
Question

VL53L4CD getting "stuck" returning the same value

  • March 31, 2023
  • 2 replies
  • 1501 views

When I run the program, the sensor starts up and is working as expected. Occasionally, the sensor gets "stuck" and just sends the same ranging results. I read that the xshut pin is sensitive and can cause a partial reset of the sensor, putting it in a bad state, but when I measure the signal, it appears to be stable. I also noticed that it only gets to this state when I start moving an object in front of it.

This topic has been closed for replies.

2 replies

Zhiyuan.Han
Technical Moderator
April 23, 2023

Hi Bliso

Is it easy to reproduce or not, or can you guide me how can I reproduce it as I have never seen such issue.

One guess, does it possible was caused by ESD or some other noise.

Br

Zhiyuan.Han

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.
BLiso.1
BLiso.1Author
Associate
May 23, 2023

I cannot reproduce it, it seems to happen randomly. I think that noise is the problem. I am using Adafruit's board which uses the recommended capacitors and resistors. The sensors are about 10 cm from the microcontroller. Do you think this would require different values for the capacitors and resistors?

Zhiyuan.Han
Technical Moderator
June 5, 2023

Hi Bliso

L4 should support fast mode(max 400k) and fast mode plus(max 1Mhz), from your description on the issue, with 400Khz should have more bandwidth, but will cause failure. 50Khz works fine with two, but fail with 4sensor, seems bandwidth is not enough, seems it's more related with HW design, few suggestions.

1, You can try only 1 sensor on the I2C bus with different I2C speed to see if any failure.

2, Capture the oscillogram to see if the I2C timing respecting the I2C SPEC.

Br

Zhiyuan.Han​

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.