We tried writing code for LIDAR Lite v3, but we are only getting values of 0 for distance. Can anybody help with this?
Here’s our java code from two years ago for what I believe was a V2 (the I2C protocol looks largely the same):
Additionally, here’s a C++ implementation that communicates with a V3 (straight from the manufacturer): https://github.com/garmin/LIDARLite_v3_Arduino_Library/blob/master/src/LIDARLite.cpp
Per line 169 in that API, it looks like there are three steps needed to read:
Initiate the read (write to 0x03 or 0x04)
Wait for read to complete (timeout or poll 0x01)
read and transform result (read two bytes from 0x0f and 0x10, then concatenate into the 16 bit result)
If you have code, I might be able to help more.
We have tried this code previously, it is not working. If anyone else has any ideas, please contribute! Help needed!:yikes:
Thanks to everyone for your help, LIDAR Code is now complete!!!
Hi Fish, What was the trick to getting it to work… or what was the problem ?