Hi,
I’ve problem with LiDAR Lite V3HP sensor.
Ido need to retrigger measurement on sensor to get proper distance value in cm, once the object has changed position.
Example:
-
Object is 2,5m away from sensor - sensor is returning proper value
-
Move object to 20cm away from sensor
-
Trigger distance measurement - sensor is returning 100cm!
-
Retrigger measurement - sensor is returning proper value (20 cm).
Did you meet with such a behavior before?
BTW. I tried to clear 0x0F and 0x10 register before triggering distance measurement and it did not help.
I suspect the code being used is averaging/bias correcting; try using the “distanceContinuous” portion of the code found here https://github.com/garmin/LIDARLite_Ard … HP_I2C.ino - from there you can alter the code as you need it
Hope this helps, and happy sparking!
I’ve had a look into code, which you sent.
It was a good shot, but unfortunately not in my case:)
Code which I’m using is from [here. It’s inside Lidar_Lite.py file.
In the end, get_distance from python lib is doing the same as distanceContinuous from code repository, which you sent.
Might it be that there is some averaging enabled in sensor firmware? I tried to look for it in [documentation, but I didn’t find anything interesting.
Do you think might it be due to connections?
Here is how I connected the LiDAR Lite with Raspberry:
](https://static.garmin.com/pumac/LIDAR-Lite%20LED%20v4%20Instructions_EN-US.pdf)](https://files.pythonhosted.org/packages/08/aa/681899b1b5f93cb04d31b190a0b0d60aeed321b95110d8e045e3a0bec8a9/LiDAR_Lite-0.1.0.tar.gz)