Quick question: did you have any success in using multiple lidars and pro mini’s with different hex addresses (ex. 112 and 113)? I am trying to implement two lidars at the moment and one works but the other does not. Not sure if this is a wiring issue or what, so wanted to see if you had any updates.
Hey Folks.
Anyone getting a bad Lidar health message in MP. I get it while the quad is on the bench. IT seems to report a height of .43 while sitting on the bench. If I move it over the edge I get 1 meter…which is about right.
@rickyg32 if you read the last paragraph of the blog , I wrote
TFMINI generate an error on low range (below 30 CM), this error make the signal going to longer distance (for example @ 20 cm , it output 40 cm), this error is intercepted by ArduPIlot as a momentary error, that does not affect the flight but is critical on takeoff. I have been told that Benewake is working on this issue
It seems that my TF Mini didn’t change to Pix Mode, so MP displays nothing (Voltage : 0) with LightWareI2C or MaxboticI2C.
With LightWareI2C here are my parameters:
RNG_ADDR = 112
RNG_MAX_CM=1200
TNG_MIN_CM=30
RNG_TYPE=7
I use Benewake TF GUI software and have data with default mode. when I check Pix Mode the graph freeze and no realtime data anymore.
I want to enter configuration mode with cmd 42 57 02 00 00 00 01 02 but no echo indicating successful sending. I also try to change to Pix Mode with 42 57 02 00 00 00 04 06 but same issue no echo.
So my question is what happens with MP if you let TFMini at default output configuration.
I check many times my connections : Pro Mini is powered by UBEC; Pro Mini powers TF Mini; Rx and Tx are as RobH’s sketch (the last one).
Benewake TF GUI should indicate millimetric values in standard mode, if not ,cut&paste this command in the GUI send command window :
42 57 02 00 00 00 01 06
Do not expect an acknowledge fro the sensor, just restart the GUI and you should see the graph moving accordingly to distance.
The arduino sketch is reading data in standard mode. it expect binary values and a CRC check byte, If you can read clear text from a terminal when you connect to the TFMINI you are in PIX mode and you have to change to standard with the command string showed above.
So, if I understand :with my pixhawk I have to let my TF Mini in default (standard format) mode and change the unit to mm. Your sketch will do the rest.
after restart, the GUI still indicate cm unit in Y-axis. I send:
for std format: 42 57 02 00 00 00 01 06
then for mm unit : 42 57 02 00 00 00 00 1A
I try also with:
to enter config mode : 42 57 02 00 00 00 01 02
then : 42 57 02 00 00 00 01 06
then: 42 57 02 00 00 00 00 1A
finally to quit config mode : 42 57 02 00 00 00 00 02
Y-axis still in cm unit.
I don’t have my quad now, i will test at home later.
Worst case you can use RealTerm, its quite a powerfull Terminal Emulator, this is what I use for debugging. You can send binary strings like the Benewake Caommdns strings.
Finally with Benawake GUI, when I enter cmd 42 57 02 00 00 00 01 02, I have to wait sampling go down to 0 before sending other cmd (42 57 02 00 00 00 00 1A for mm unit and 42 57 02 00 00 00 00 02 for quit config)
Ok so I don’t need to worry about flashing it with up to date firmware. IS there a newer version of the Arduino ap. I notice there are two versions now.
I am just making sure this new build is up to date on everything.
I added an outdor release == BeneWake_TFMINI_I2C_Maxbotic_Outdoor_Limit
You can adjust the signal so it does not send ‘0’ when out of range (around 6-7 Meters).