This guide describes how to connect a Benewake TF-series LiDAR to a Pixhawk flight controller through a TTL to UAVCAN converter, configure ArduPilot, and verify altitude-hold and obstacle-avoidance data.
Applicable products: TF-Luna, TFmini-S, TFmini-Plus, TF02-Pro and TF03. Communication interface: TTL. Example device used for testing: TFmini-S.
1. Preparing the Test Setup
Before powering the system, confirm the sensor, converter and Pixhawk share the wiring required by the converter documentation. The power supply must meet the LiDAR product manual requirements.
2. Install ArduPilot Firmware
Open Mission Planner and select Initial Setup → Install Firmware → Load custom firmware. Select apm_fmvu3.px4 and follow the prompts. A success message is shown when flashing is complete. Click Connect in the upper-right corner after the controller restarts.
3. Pixhawk and Converter Connection
Connect the Pixhawk CAN interface to the TTL to UAVCAN converter, connect the TF-series LiDAR to the converter TTL port, and connect the Pixhawk to the PC running Mission Planner. Use CAN1 for the example configuration below. If CAN2 is used, select the corresponding CAN2 driver parameter.
Figure 1. Example Pixhawk and TTL to UAVCAN converter wiring
The connection image is for reference. Follow the pinout and power requirements of the specific Pixhawk, converter and LiDAR models being used.
4. Altitude Hold Configuration
In Mission Planner, open Config/Tuning → Full Parameter List (or All Parameters), search for each parameter below, enter the value, and select Write Params.
After writing the parameters, reboot the Pixhawk from Mission Planner using Ctrl+F → Reboot Pixhawk, then reconnect. This ensures the driver and parameter changes are applied.
5. Altitude Data Verification
Open Flight Data in Mission Planner. Double-click a numeric data field, select rangefinder1, and confirm that the displayed value changes when the LiDAR-to-ground distance changes.
Figure 2. Example Mission Planner rangefinder data display
6. Obstacle Avoidance Configuration
Use the following configuration when the LiDAR is mounted facing forward and is intended for proximity-based obstacle detection.
Select Write Params, reboot the Pixhawk, and reconnect. If Mission Planner reports Bad LiDAR Health, check the wiring, converter power, sensor power and CAN driver selection.
7. Proximity Data Verification
Press Ctrl+F in Mission Planner and select Proximity to open the proximity display. The green numbers represent the distances used by the obstacle-avoidance function. They are not necessarily a direct real-time display of every raw LiDAR reading; if the display refreshes slowly, update Mission Planner to a current release.
Figure 3. Example proximity display
8. Troubleshooting Checklist
- Confirm the LiDAR and converter are powered and that the supply voltage/current meets the product manual requirements.
- Confirm the Pixhawk CAN port matches the enabled CAN driver parameter.
- Confirm RNGFND1_ADDR=16 matches the converter node address.
- Confirm RNGFND1_ORIENT matches the physical mounting direction: 25 for downward, 0 for forward.
- Confirm RNGFND1_MIN_CM is larger than the LiDAR blind zone and RNGFND1_MAX_CM is smaller than the effective measurement range.
- After changing parameters, reboot the Pixhawk before testing again.
The parameter values in this guide are example values derived from the supplied test document. Adjust range limits, ground clearance and avoidance margins to the actual LiDAR model, mounting position and vehicle requirements.
More about BENEWAKE LiDAR:https://en.benewake.com/





