Hooked it up to a Pixhawk running Ardurover 4.0
RNGFND1_TYPE=25
RNGFND1_ADDR=16
But, i have two of these puppies and i need to know how to change de default i2c address. Tried Bud Ryerson library to change it to 35 which it successfully updates but after a restart it defaults back to 16.
Saw you edited his library and shared it via WeTransfer. Any change you can upload it once again ?
Hi, thats great it worked. Mr. Bud has two libraries one for reading the data and other for configuring the LiDAR. I am really sorry I have not modified the second yet, I need to find some free time to edit it.
But I can write a single instruction code for you that will solve your problem. Please tell me the desired address that you want to set and which arduino board are you using.
Thank you
Hi, Use this file for changing the address.
Link: https://we.tl/t-reUkePQnBk
First connect your LiDAR to Arduino, then burn the code to arduino. I hope this will solve your problem.
Did you use Bud Ryersons library to scan for the newly assigned address ?
I ran the TFluna_IIC_command sketch twice to make sure the address was set properly. Then check with Buds library if it did. (don’t set a new address, only check)
Sorry think we misunderstand each other maybe ?..
Steps i did.
1-original luna detected as 0x10 with i2c-scanner.
2-used TFluna-IIC to change address by changing (Wire.write(0x1E); // For 23 change this line) to 0x12
3-read out i2c-scanner , gives 0x6F.
4-tried another luna with steps above but 0023 in line (Wire.write(0x1E); // For 23 change this line) .
5- again read out i2c-scanner , gives 0x6F.
So new problem arised.
I got all Luna’s working in I2C mode on my Pixhawk. ( Thanks to everybody here ! )
But:
When Pixhawk is connected through USB all distance data can be seen and easily adjusted.
But when the Luna’s are connected and i acces the drone by Sik Radio (915Mhz ) there is to much data going back and forth for the radio to handle.
I adjusted PC-USB -> SIK to 115200 Baud , PIX Serial 1 -> SIK to 115200 and Airspeed Air --> Ground to 128000 , so you would think this is enough…its not !.
As i already build myself a Mavlink controller and want to use it when collision detection is ready i’m a bit blocked by this air to ground data traffic yam.
Does anybody have a clue how to handle this ?.. !
-Lowering data stream Luna’s ?. How ?
-Not sending Luna data over 915 ? ( need the rest however ) How ?.
Yes, the avoidance messages can overload slow telemetry links.
As for latest experiments, I used WiFi based links based on esp-01 (as for the Pixracer) or a Companion Computer running mavlink router.