pololu / vl53l0x-arduino

Pololu Arduino library for VL53L0X time-of-flight distance sensor
https://www.pololu.com/product/2490
Other
346 stars 162 forks source link

Sensor time out after day's of operation #44

Open martin072 opened 4 years ago

martin072 commented 4 years ago

I am using you library with 2 vl53l0x sensors, and noticed a recent change in behaviour. After a random amount of time, ranging from ~20 hours to a few days, the sensors start to time out. I have 2 sensors connected to an wemos d1 mini. The cause might have been related to updating to the latest library.

I've updated the sketch a few days ago, and sinds then the sensors seem to start timing out, i.e giving a range of 65535. Sometimes it is only one of the sensors, but mostly both will stop working.

The Library I used was 1.0.2 and now I am using the latest available. I do not really know if this is the cause, but since nothing else changed, I thought this might be a starting point..

A soft reset will get the sensors back up again, so not a real issue, but it would be nice to run the ESP without resetting it all the time.

any idea why this could be happening?