-
Notifications
You must be signed in to change notification settings - Fork 54
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
Negative Distance Value -1185 #26
Comments
Hello, Similar issue here, different setup however. I have 5x VL53L1X connected to a TCA9548A multiplexer on channels 0 through to 4. I modified the Distance_multiplexer.py to read all 5 sensors with 100ms sleep between each read. Running on Raspbian Buster Lite, Raspberry Pi 3 B+, setup on a breadboard, facing the cealing (~1.6m from the breadboard). Issue: Random sensors will randomly give me -1185mm readings or other random values and sometimes even just a 0mm reading. Troubleshooting I've done so far: Tested with long, medium and short ranging options, increased the time between measurements, ran the program multiple times to ensure that all sensors at some stage or the other provided correct measurements (I was trying to check that the sensors aren't faulty), changed lighting conditions. Looking for help/clues/ideas in figuring out whats going on. Thanks! A few example measurements: Example 1
Example 2
Example 3
|
The spurious negative readings look suspiciously like an overflow, but it's bizarre that they are always the same value. It could be a silent read error that's then being converted into a distance. The measurement data struct which we're currently jus tpulling The vl53l1x-python/python_lib/vl53l1x_python.c Lines 186 to 195 in 22eaff4
|
I've similar issue with single device connected to I2C network: @Gadgetoid is there any feedback on that? |
For me the error value was gone when setting a timer |
Hey,
I have been trying to test my code on a raspberrypi (archlinux 64 architecture). However, I always get a negative distance value of -1185. Also, while debugging the VL531LX.c file, I also noticed that the error code returned for both postive and negative values is 0. Has anyone faced a similar issue.
Thanks
The text was updated successfully, but these errors were encountered: