myrahm
Posts: 1
Joined: Sun Jun 18, 2017 5:02 pm

Re: Lidar Lite V3 - Raspberry Pi - Python

Sun Jun 18, 2017 5:04 pm

Here is the confirmed fix to get Lidar v3 working with raspberry pi 3

1) Rollback kernel to 4.4.38 via instructions here: https://isahatipoglu.com/2015/09/29/how ... berry-pi2/
2) Use the following python code to confirm valid readings

Code: Select all

import smbus
import time
bus=smbus.SMBus(1)
addr=0x62

while True:
    bus.write_byte_data(0x62,0x00, 0x04)   
    val_high=bus.read_byte_data(0x62,0x0f)   
    val_low=bus.read_byte_data(0x62,0x10)   
    dist_cm=val_high*256+val_low
    print `dist_cm` + " cm   "
    time.sleep(1)

Return to “Beginners”

Who is online

Users browsing this forum: Baidu [Spider], OutoftheBOTS and 22 guests