Sanderi44 / Lidar-Lite

C++ and python libraries for getting data from the Lidar-Lite sensor
40 stars 24 forks source link

python test code returns 0 #5

Closed ryanmjordan closed 6 years ago

ryanmjordan commented 6 years ago

I have used this code before and it worked well. Now it only returns 0 as the distance and velocity. I have all of my Interfaces enabled on the Pi 3 B. Any ideas?

Sanderi44 commented 6 years ago

Hi Ryan,

I would recommend first checking if all of the cables are securely plugged in. Sometimes a loose wire can cause a problem like this. Otherwise, I have not used the Pi 3 B, so I cannot say as to how it might be acting different than the older Pi's. Maybe try different GPIO?

Sander

On Mon, Nov 27, 2017 at 4:48 PM, Ryan Jordan notifications@github.com wrote:

I have used this code before and it worked well. Now it only returns 0 as the distance and velocity. I have all of my Interfaces enabled on the Pi 3 B. Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sanderi44/Lidar-Lite/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AEIn6HAGN3ROWw0Ox4qathQ0OIueMBeKks5s61hfgaJpZM4QshWK .

santosh9sanjeev commented 2 years ago

Hi Did you guys find a solution? I too am facing the same issue of getting 0 as a value, when using raspberryPi 3B for distance and velocity...