I have a Pulsed Light Lidar Lite (model 1). I had the Lidar running/returning distance and velocity values using Python and a Rpi2B+.
I disconnected the LiDAR to test some other sensors. I powered down the RPi and I reconnected the LiDAR then powered up the RPi. On code execution I got an input/output error . Nothing changed in the wiring nor the code.
an i2c check indicates that the LiDAR is communicating through the correct port.
pi@raspberrypi ~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- 62 -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
A terminal window check of the LiDAR returns an erroneous distance of zero.
pi@raspberrypi ~ $ i2cset -y 1 0x62 0x00 0x04
pi@raspberrypi ~ $ i2cget -y 1 0x62 0x8f w
0x0000
I see from the wiring diagram that there appears to be an inductor (not that I have any idea what that does) between the LiDAR and the RPi but I did not see that in any of the Arduino examples available online. Again, it was working fine without inductors before.
My question is what are some possible failures of the unit, and how can I test them to figure out if the LiDAR just failed and needs to be replaced, if the RPi is in error, or if i2c is at fault?
Thanks in advance.
G
