Open TinManAkshay opened 1 year ago
I faced similar behaviour when the sensor is measuring infinitive (out of range) distance. My workaround is to power the sensor with a gpio output pin. Every 24hrs i drop the power for 10seconds. That worked for me.
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg
From: TinManAkshay @.> Sent: Wednesday, February 8, 2023 6:48:35 PM To: johnbryanmoore/VL53L0X_rasp_python @.> Cc: Subscribed @.***> Subject: [johnbryanmoore/VL53L0X_rasp_python] Random -0.1 value state and never recovers from this state. (Issue #22)
Hi -
I have been working with this library for years now. I use 2 distance sensors on the same i2c bus withy unique i2c addressing. Sometimes I run into the issue that either of the distance sensors or both gives -0.1 values randomly and they never recover from this state until I reset the power.
FYI: There are other sensors connected on the same i2c bus as well along with these two distance sensors.
What solutions I can try to mitigate this problem? Any suggestions would be highly appreciated.
Thanks,
— Reply to this email directly, view it on GitHubhttps://github.com/johnbryanmoore/VL53L0X_rasp_python/issues/22, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIMZLJUDHQXRE4FWAXNT6O3WWPL7HANCNFSM6AAAAAAUVR633A. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi @rrrRbert360 -
Thank you for the response with an insight to the issue. I dug up a little more and found out that after running these sensors for a while, I got -20 (VL53L0X_ERROR_CONTROL_INTERFACE). As far as I know about this error, we get this error at the time of unsuccessful initialization/unique I2C addressing of the distance sensor. I believe getting this error while running the sensor for a while could mean possible scenarios.
Thanks, Akshay
Hi -
I have been working with this library for years now. I use 2 distance sensors on the same i2c bus withy unique i2c addressing. Sometimes I run into the issue that either of the distance sensors or both gives -0.1 values randomly and they never recover from this state until I reset the power.
FYI: There are other sensors connected on the same i2c bus as well along with these two distance sensors.
What solutions I can try to mitigate this problem? Any suggestions would be highly appreciated.
Thanks,