Files
jiakunandHamish Willee bd9ba633e0 docs(tfmini): add safety ratings, series note and release notes entry (#29633)
* docs(tfmini): add safety ratings, series note and release notes entry

Benewake specifies photobiological safety rather than a laser class
for these sensors: Class 1 (EN 60825) for the TFmini-S, exemption
level (EN 62471) for the LED-based TFmini Plus. State each rating per
its datasheet in place of the single "Laser class" line.

Record that the original TFmini has left Benewake's current product
lineup while the TFMINI/TFMINI-S setting remains for compatibility,
and that the current TFmini-i (RS-485 or CAN, 7-30 V supply) is not
supported by this UART driver.

Add the release notes entry that #29575 was missing.

Assisted-by: GLM:glm-5.3-flash
Signed-off-by: jiakun <53556221+ddwolf87@users.noreply.github.com>

* docs(sensor): list original TFmini as discontinued, keep laser class label

Move the original TFmini into a Discontinued block on the TFmini page and
list it in the rangefinder table, as other discontinued rangefinders are.

Keep the template's "Laser class" spec label: the TFmini Plus is an LED
source with no laser class, so say that and give Benewake's EN 62471
rating after it.

Say the TFmini-i is not supported by PX4 rather than "this driver", and
in the release notes give the old FoV of the shared TFMINI / TFMINI-S
setting.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>

* docs(sensor): remove space between values and unit symbols

Bring the TFmini page and the release notes to the docs style guide's
unit convention (12m, not 12 m), and realign the tables this narrows.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>

---------

Signed-off-by: jiakun <53556221+ddwolf87@users.noreply.github.com>
Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2026-11-24 07:49:11 +11:00

8.9 KiB
Raw Permalink Blame History

Benewake TFmini LiDAR

The Benewake TFmini-S and TFmini Plus are small, low-power time-of-flight LiDAR rangefinders with a range of 0.1–12m and a 100Hz default update rate. They connect to the flight controller using a serial port (UART).

TFmini LiDAR

Supported Models

Model Range Connection SENS_TFMINI_HW value
TFmini-S 0.1–12m UART 1 (default)
TFmini Plus 0.1–12m UART 4

::: details Discontinued

The following model is supported by PX4 but is no longer in Benewake's product line-up.

Model Range Connection SENS_TFMINI_HW value
TFmini 0.3–12m UART 1

:::

PX4 reports distances from 0.4m to 12m for the TFmini-S and from 0.1m to 12m for the TFmini Plus.

The TFmini-i is not supported by PX4: it connects via RS-485 or CAN (separate hardware versions) and is powered from 7–30V.

Specifications

  • Technology: Time-of-flight, 850nm infrared (VCSEL on the TFmini-S, LED on the TFmini Plus)
  • Range: 0.1–12m at 90% reflectivity; 0.1–7m (TFmini-S) or 0.1–4m (TFmini Plus) at 10% reflectivity
  • Update rate: 100Hz by default, adjustable 1–1000Hz
  • Field of view: 2° (TFmini-S), 3.6° (TFmini Plus)
  • Accuracy: ±6cm below 6m and ±1% from 6–12m (TFmini-S); ±5cm below 5m and ±1% from 5–12m (TFmini Plus)
  • Resolution: 1cm
  • Interface: UART at 115200 baud, 8N1, 3.3V (LVTTL); the sensors also support I2C, which the PX4 driver does not use
  • Input voltage: 5V ±0.1V (TFmini-S), 5V ±0.5V (TFmini Plus)
  • Current draw: ≤140mA average, 200mA peak (TFmini-S); ≤110mA average, 140mA peak (TFmini Plus)
  • Dimensions: 42 x 15 x 16mm (TFmini-S), 35 x 18.5 x 21mm (TFmini Plus)
  • Weight: 5g (TFmini-S), 12g (TFmini Plus)
  • Operating temperature: 0–60°C (TFmini-S), -20°C to 60°C (TFmini Plus)
  • Ingress protection: IP65 (TFmini Plus)
  • Laser class: Class 1, EN 60825 (TFmini-S); no laser class, exemption level EN 62471 (TFmini Plus)

Where to Buy

Hardware Setup

Mounting

Mount the sensor facing down: PX4 assumes a downward-facing sensor, and the orientation cannot be configured.

Readings below the minimum range of the selected model (0.4m for the TFmini-S, 0.1m for the TFmini Plus) are reported as out of range.

Pinouts

The TFmini-S and TFmini Plus have a cable ending in a JST 1.25mm 4-pin connector (Molex 51021-0400). This is not the JST-GH connector used by flight controllers that follow the Pixhawk Connector Standard, so you will need an adapter cable to connect to those ports. The cable can be extended, but Benewake recommends keeping it shorter than 1m.

The wire colours are the same on both models, but the pin numbering differs.

TFmini-S:

Pin Wire colour Signal
1 Black GND
2 Red +5V
3 White RX (UART receive, 3.3V)
4 Green TX (UART transmit, 3.3V)

TFmini Plus:

Pin Wire colour Signal
1 Red +5V
2 White RX (UART receive, 3.3V)
3 Green TX (UART transmit, 3.3V)
4 Black GND

Wiring

The TFmini can be connected to any unused serial port (UART), such as TELEM2, TELEM3 or GPS2.

TFmini wire Connect to
Green (TX) Flight controller UART RX
White (RX) Flight controller UART TX (optional)
Red (+5V) 5V supply
Black (GND) Flight controller GND

The driver only reads from the sensor, so the sensor's RX wire does not need to be connected.

The TFmini-S needs 5V ±0.1V and up to 140mA (200mA peak); the TFmini Plus needs 5V ±0.5V and up to 110mA (140mA peak). Neither has over-voltage or reverse-polarity protection.

Firmware Support

The rangefinder is supported by the tfmini driver, which is built into firmware by either of the following board configuration keys:

  • CONFIG_COMMON_DISTANCE_SENSOR=y: the common set of rangefinder drivers, which includes this one.
  • CONFIG_DRIVERS_DISTANCE_SENSOR_TFMINI=y: this driver on its own.

Most boards set CONFIG_COMMON_DISTANCE_SENSOR, so the driver is present in most firmware. To check your board, look for either key in its configuration file, boards/<vendor>/<board>/default.px4board, or check whether SENS_TFMINI_CFG is listed in QGroundControl (parameters are only shown for drivers that are in the firmware).

If the driver is missing, add either key to the board's default.px4board file, or enable it in boardconfig under Drivers > Distance sensors, and then build and upload the firmware.

The driver does not start until it is enabled using the parameters in PX4 Configuration.

PX4 Configuration

Configure the serial port on which the rangefinder will run using SENS_TFMINI_CFG, and then reboot. There is no need to set the baud rate for the port, as this is configured by the driver. If the port is already used by another function, see Deconflicting Ports in Serial Port Configuration.

If the parameter is not available in QGroundControl then the driver is not in the firmware: see Firmware Support.

The driver does not configure the sensor, so the sensor must be at its factory settings: UART interface, 115200 baud, and the Standard 9 bytes (cm) output format (not Pixhawk or Standard 9 bytes (mm)). If these have been changed, reset the sensor to its defaults as described in the Benewake user manual.

SENS_TFMINI_HW selects the model and sets the range limits PX4 reports. Set it to 1 (TFMINI / TFMINI-S) for the TFmini-S or 4 (TFMINI Plus) for the TFmini Plus.

The configuration that is common to all rangefinders, such as the sensor position offsets used by the estimator, is covered in Rangefinders > Configuration/Setup.

Testing

You can check that the driver is running, and see its error counters, using the QGroundControl MAVLink Console:

tfmini status

You can observe the published measurements with:

listener distance_sensor

The sensor type is reported as laser, with minimum and maximum distances of 0.4m and 12m for the TFmini-S, and 0.1m and 12m for the TFmini Plus.

The measurements can also be viewed in the DISTANCE_SENSOR message in the QGroundControl MAVLink Inspector. For more information see Rangefinders > Testing.

Further Information