Has anyone tried using Lidar Lite with the BBBMini? I know some of the early Lidar Lite units had I2C issues and the recommendation was to use PWM, but can the later units be used (via I2C) or is there still no support? Also, would it be possible to use one of the PRU on the BBB to read the PWM from the Lidar Lite?
You need to be a member of diydrones to add comments!
Replies
I have successfully gotten Lidar Lite V1 working with the BBB. I made just a couple of modifications to the sonar code and created a new test program for it. I seem to be getting good readings at this point. I am going to consult with Mirko about getting this added to the repository. I will post here when it gets added.
Hi,
good work, could you send me the necessary modifications?
Regards,
Mirko
I sent you a PM with a link to the changes.
great stuff! now i want such Lidar Lite.
Do you have an idea if it should work with the v2 Lidar Lite as well ?
Thanks
@Mirko Denecke,
Would you happen to have written or be able to write a "check hardware" type program (similar to https://github.com/mirkix/ardupilot/tree/Copter-3.3/libraries/AP_HA...) so that I can attach my Lidar Lite to pin 16 on the P8 header on a bare BBB (I don't have the BBBMini board yet) to see if it works with the existing rangefinder code you wrote for the HC-SR04? I think it will work if we just change the calculation from 58uSec/cm to 10uSec/cm. There may need to be some other minor changes made so that we can better control what the Lidar Lite is doing, but this would at least get us started.
Thanks,
Steven
Hi,
please take a look at the Rangefinder Test Bench https://github.com/diydrones/ardupilot/blob/master/libraries/AP_Ran... . Maybe you can modify it to check the Lidar.
Regards
Mirko
Steven
Thanks for everyone's interest!