GerryG
Posts: 52
Joined: Fri Jan 22, 2016 5:06 am

Help wiring/diagnosing a sensor. What went wrong?

Thu Feb 25, 2016 7:19 pm

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

mutley
Posts: 61
Joined: Sat Jan 02, 2016 8:06 pm

Re: Help wiring/diagnosing a sensor. What went wrong?

Thu Feb 25, 2016 11:42 pm

Did you install anything / change the system in any way when testing the other sensors? I assume they were I2C since you unplugged the LiDAR. Since the LiDAR is returning it's address with i2cdetect I would doubt it's that. It's would seem more lightly that you changed something on the system that would effect the i2c timing.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: Help wiring/diagnosing a sensor. What went wrong?

Fri Feb 26, 2016 7:25 am

You've already posted this question here :
viewtopic.php?f=63&t=137214&p=911705#p911448
Please don't duplicate posts.
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “General discussion”