Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random -0.1 value state and never recovers from this state. #22

Open
TinManAkshay opened this issue Feb 8, 2023 · 2 comments
Open

Random -0.1 value state and never recovers from this state. #22

TinManAkshay opened this issue Feb 8, 2023 · 2 comments

Comments

@TinManAkshay
Copy link

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,

@rrrRbert360
Copy link

rrrRbert360 commented Feb 9, 2023 via email

@TinManAkshay
Copy link
Author

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.

  1. There could be a low voltage on XSHUT pin.
  2. Sensor could be loosing its unique address (set via pushing XSHUT to LOW at the beginning of the initialization).
  3. I have seen when distance sensor measures finite distance, it sometimes goes to -1 value state.

Thanks,
Akshay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants