Benewake TF03 LiDAR can directly be connected with the serial port of Pixhawk. TF03 can be used in flight device for the purpose of altitude holding or obstacle avoidance. This document is suitable to Pixhawk adopts ArduCopter V3.6.2 or higher firmware(Note:Standard output mode should be used instead of PIX mode by Benewake GUI in firmware V3.6.2 or above).

3691381633?profile=original
Figure 1 Schematic Diagram of Connecting TF03 with TELEM 2 Interface (Serial Port 2) of Pixhawk
Example for connecting Pixhawk:

For more information:http://en.benewake.com/

a)  Mission Planner configuration description of TF03 for the purpose of altitude hold

Connect the flight control board to MP.Attention:the installation height should be bigger than non-detection zone.Select [Full Parameter List] in the left from the below bar- [CONFIG/TUNING] . Find and modify the following parameters:

SERIAL2_PROTOCOL = 9  [Rangefinder option]

SERIAL2_BAUD = 115  [Choose the current LiDAR baud rate,if haven’t been changed,the default baud rate 115200 should be selected,that is 115]

RNGFND_TYPE = 19  [Same option with TF02]

RNGFND_MIN_CM = 20  [It could be changed according to real demands and should be bigger LiDAR than non-detection zone,unit is cm]

RNGFND_MAX_CM = 5000  [It could be changed according to real demands but should be smaller than effective measure range of LiDAR,unit is cm]

RNGFND_GNDCLEAR = 20  [expressed in cm, depending upon mounting height of the module and should be bigger LiDAR than non-detection zone]

RNGFND_ORIENT=25 [face down]

PRX_TYPE=0

Upon setting of these parameters, click [Write Params] on the right of the software to finish.

If the error message “Bad Lidar Health” appears, please check if the connection is correct and the power supply is normal.

How to see the altitude value from LiDAR sensor:double click the area of the Mission Planner,see the following picture:

3691381730?profile=original

Select option sonarrange,see following picture:

3691381787?profile=original
The altitude distance from the Benewake LiDAR will be displayed in Sonar Range(meters),see the following picture:

3691381820?profile=original

b)Mission Planner configuration description of TF03 for the purpose of Obstacle Avoidance

It’s only recommended to be used in Loiter mode,the detail setting is as followings:

Connect the flight control board to MP.Attention:distance between UAV margin and LiDAR should be bigger than LiDAR non-detection zone.Select [Full Parameter List] in the left from the below bar- [CONFIG/TUNING] . Find and modify the following parameters:

AVOID_MARGIN=5  [Unit: m, set obstacle avoidance distance as required]

SERIAL2_PROTOCOL = 9  [Rangefinder option]

SERIAL2_BAUD = 115  [Choose the current LiDAR baud rate,if haven’t been changed,the default baud rate 115200 should be selected,that is 115]

RNGFND_TYPE = 19   [Same option with TF02]

RNGFND_MIN_CM = 20  [It could be changed according to real demands and should be bigger LiDAR than non-detection zone,unit is cm]

RNGFND_MAX_CM = 5000  [It could be changed according to real demands but should be smaller than effective measure range of LiDAR,unit is cm]

RNGFND_GNDCLEAR = 20  [Unit: cm, depending upon mounting height of the module and should be bigger LiDAR than non-detection zone]

RNGFND_ORIENT=0  [It depends on the LiDAR’s real installation direction,0~7 is supported up to now,see detail in MP]

PRX_TYPE=4   [RangeFinder should be selected for proximity sensor in obstacle avoidance mode]

Upon setting of these parameters, click [Write Params] on the right of the software to finish.

If the error message “Bad Lidar Health” appears, please check if the connection is correct and the power supply is normal.

How to see the target distance from the LiDAR:(distance from LiDAR in obstacle avoidance can’t be displayed in sonarrange option )press Ctrl+F button in keyboard,the following window will pop out:

3691381887?profile=original
Attach:If TELEM 2 port has been used ,SERIAL4/5 interface could be used,the other setting are same
Click button Proximity,the following window will appear:

3691381701?profile=original

The number in green color means the distance from LiDAR in obstcle avoidance mode(the number only refresh when this window open,close,zoom in or zoom out,it doesn’t mean the real time distance from LiDAR and will not be influenced in Mission Planner version under v1.3.48,the problem could be solved by updating Mission Planner)

Figure 2 Schematic Diagram of Connecting TF03 with SERIAL4/5 Interface (Serial Port 4/5) of Pixhawk

Configuration Descriptions of Mission Planner

Connect flight control board to MP, Select [Full Parameter List] in the left from the below bar [CONFIG/TUNING] . Find and modify following parameters:

SERIAL4_PROTOCOL = 9

SERIAL4_BAUD = 115

Upon setting of these parameters, the other parameters should be same as Mission Planner configuration description of TF03 for the purpose of Obstacle Avoidance or Altitude Holding,then click [Write Params] on the right of the software to finish.

Need help? Please feel free to email: bw@benewake.com

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Activity

DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
Monday
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
Monday
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Monday
DIY Robocars via Twitter
Sep 24
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Sep 23
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: Practiced at @RAMS_RC_Club today with my new @ARRMARC car https://t.co/AEu2hCx89T
Aug 28
DIY Robocars via Twitter
Aug 24
DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
More…