vl53l1x-arduino icon indicating copy to clipboard operation
vl53l1x-arduino copied to clipboard

VL53L1X sensor breakdown after a few minutes

Open hsynklceng opened this issue 1 year ago • 3 comments

Hello, I'm trying to use 12 pololu vl53l1x(ToF) sensors with the stmf407vgt6 custom card. In addition, this board has a 5A 2 channel motor driver. I think the i2c data is getting noise during the motor start cycle. But according to my observation on debug mode, ToF sensor is break down. Randomly some of the sensors break down. How can i fix this problem?

hsynklceng avatar Aug 10 '23 20:08 hsynklceng

Hi, can you explain what you mean by "break down"? What debug information do you see that makes you think that is happening?

kevin-pololu avatar Aug 11 '23 01:08 kevin-pololu

I mean it is closing it self. Sensors stop send to data when it starts motor. Actually not noise ToF stops to send data. Closed sensors show a constant 0 or 5000+ value. STM Debug

hsynklceng avatar Aug 11 '23 07:08 hsynklceng

Are you using our Arduino library from this repository? The variables you are watching look more like the ones from ST's VL53L1X API.

kevin-pololu avatar Aug 12 '23 01:08 kevin-pololu

I'm also having the problem where the sensor stops reporting good data after some minutes time. It seems to vary from 30 seconds to 5 minutes. I'm not sure what causes the variation.

I've since switched to using the library here and so far it's gone a whole day without stopping, I expect that the problem is fixed. https://github.com/stm32duino/VL53L1X

presslab-us avatar May 02 '24 17:05 presslab-us

@presslab-us, thanks for the information. If you do any further troubleshooting and find out more that might help us narrow down the source of the problem, please feel free to open a new issue. I'm going to close this one because we never confirmed whether the original submitter was using our library at all.

kevin-pololu avatar May 07 '24 03:05 kevin-pololu