Benewake TFmini / TFmini Plus lidar¶
The TFmini and TFmini Plus lidars have an indoor range of 12m, an outdoor range of 7m and weigh 5g and 11g respectively.
Both UART and I2C versions are available. UART has the advantage of allowing easier firmware updates.
More details on both these lidar can be found in the benewake.com’s downloads area
Where to Buy¶
Connecting using Serial¶
For a serial connection you can use any spare Serial/UART port. The diagram below shows how to connect to the autopilot’s SERIAL4 port.
If the SERIAL4 port on an autopilot is being used then the following parameters should be set for the first rangefinder:
SERIAL4_PROTOCOL = 9 (Lidar)
SERIAL4_BAUD = 115 (115200 baud)
RNGFND1_TYPE = 20 (Benewake-Serial)
RNGFND1_MIN = 30 for TFmini, 10 for TFminiPlus
RNGFND1_MAX = 1000 for indoor use OR 600 for outdoors. This is the distance in centimeters that the rangefinder can reliably read.
RNGFND1_GNDCLR = 10 or more accurately the distance in centimetres from the range finder to the ground when the vehicle is landed. This value depends on how you have mounted the rangefinder.
Connecting using I2C¶
The diagram below shows how to connect to the autopilot’s I2C port.
RNGFND1_TYPE = 25 (Benewake TFminiPlus-I2C)
RNGFND1_ADDR = 16 (I2C address of lidar in decimal, equivalent to 0x10 hexadecimal)
RNGFND1_MIN = 30 for TFmini, 10 for TFminiPlus
RNGFND1_MAX = 1000 for indoor use OR 600 for outdoors. This is the distance in centimeters that the rangefinder can reliably read.
RNGFND1_GNDCLR = 10 or more accurately the distance in centimetres from the range finder to the ground when the vehicle is landed. This value depends on how you have mounted the rangefinder.
Testing the sensor¶
Distances read by the sensor can be seen in the Mission Planner’s Flight Data screen’s Status tab. Look closely for “sonarrange”.