Skip to main content

Technical documents

TFS20-L User Manual

This manual covers the TFS20-L LiDAR module, detailing its dToF measurement principle, technical specifications, hardware interfaces, and configuration protocols for UART and I2C c

This manual covers the TFS20-L LiDAR module, detailing its dToF measurement principle, technical specifications, hardware interfaces, and configuration protocols for UART and I2C communication.

1. Product Overview

The TFS20-L is a miniaturized single-point LiDAR module that measures distance based on direct time of flight (dToF). The laser emits a pulsed signal, which reflects off the target and is detected by a SPAD detector. Distance is calculated from the time difference.b17

1.2 Technical Specifications

Performance ParameterValue
Detection Range0.2-20m@90% reflectivity@0Klux, 0.2-15m@90% reflectivity@100Klux0.2-12m@10% reflectivity@0Klux, 0.2-9m@10% reflectivity@100Kluxb20
Accuracy①±6cm (0.2~6m), 1% (≥6m)b20
Repeatability②2cm (0.2~6m) @1σb20
Frame rate0/ 20 / 50 / 100 (default) / 250Hzb20
Ambient light resistance100KLuxb20
Light sourceVCSELb22
Central wavelength905nmb22
FoV<2°b22
Eye safetyClass 1 Eye-safe [EN60825]b22
Average power consumption≤0.43Wb24
Peak current③130mA@3.3Vb24
Power supplyDC 3.3±9%Vb24
Operating temperature-20℃ ~ +60℃b25
DimensionsTYP. 21.0 x 15 x 7.87mm³b25
Weight1.35gb25
NOTICE:1. Accuracy is based on 25℃, 90% reflectivity.2. Repeatability is based on 25℃ indoors, 90% reflectivity.3. Peak current is measured at room temperature.b29

1.3 Structural Appearance

Source figure, page 5

Figure 1: TFS20-L Dimensionsb32

2. Hardware Interface and Protocol

Connector model: WF08006-01207, spacing 0.8mm.b34

Source figure, page 6

Figure 2: TFS20-L pin sequenceb36

Pin numberFunctionExplanation
13V3 LaserLaser power supply
23V3GND
3UART_TX/I2C_SDATransmit / Data
4UART_RX/I2C SCLReceive / Clock
5GPIOChip select
6GNDGround

The module supports UART and IIC modes. Only one interface can be selected at power-on.b38

ModeConfiguration
UARTConnect INT pin to ground when powering onb39
IICINT pin pulled up with 4.7K resistor or floatingb39b42
Source figure, page 6
Source figure, page 6

2.2 Serial Data Communication

ParameterDefaultConfigurability
Baud rate115200Configurable
Data bit8Non-configurable
Stop bit1Non-configurable
ParityNoneNon-configurable

Baud rates supported: 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600. Default is 115200. Incorrect configuration resets to 115200.b51b52

2.3 Serial Port Output Format

Each data packet consists of 9 bytes.b53

Byte0-1Byte2Byte3Byte4Byte5Byte6Byte7Byte8
0x59 59Dist_LDist_HStrength_LStrength_HTemp_LTemp_HChecksum

Byte0-1: Frame header 0x59 59Byte2-3: Distance value low/high 8 bitsByte4-5: Strength low/high 8 bitsByte6-7: Temperature low/high 8 bitsByte8: Checksum (lower 8 bits of sum of first 8 bytes)b55b56

2.4 I2C Communication

Pull up pin 5 with 4.7K resistor or leave floating for I2C mode. Pin 3 is SDA, Pin 4 is SCL.b57 Supports up to 400kps clock speed, default address 0x10.b58 Firmware V1.4.6+ supports I2C.b59 7-bit slave address range [0x08, 0x77]. Write address 0x20, Read address 0x21.b60 Wait 100ms after write before reading.b60

3. Custom Configuration

Parameters like frame format and rate can be customized via commands. Settings are saved to Flash.b65 Commands are in HEX.b65

Byte0Byte1Byte2Byte3 ~ ByteN-2ByteN-1
Head (0x5A)LenIDPayloadChecksum

Byte0: Header 0x5AByte1: LengthByte2: IDByte3-N-2: DataByteN-1: Checksumb69

3.2 Custom Configuration Examples

DescriptionCommandResponseRemarksDefault settings
Firmware version5A 04 01 5F SU5A 07 01 V1 V2 V3Version V3.V2.V1/
Frame rate①5A 06 03 LL HH SU④5A 04 01 5F0/20/50/100/250 Hz100Hz
Instruction trigger mode5A 04 04 62Data packetTrigger sensor when frame rate is 0/
Output format (cm)5A 05 05 01 655A 05 05 01 65Standard 9 bytes√
Output format (mm)5A 05 05 06 6A5A 05 05 06 6AStandard 9 bytes/
Output control③On: 5A 05 07 01 67Off: 5A 05 07 00 66Same as commandMust send enable command on power-upEnabled
Modify baud rate②5A 08 06 H1 H2 H3 H4 SUSame as commandExample: 460800 (0x00 07 08 00)115200
Enable checksumOn: 5A 05 08 01 68Off: 5A 05 08 00 67Same as commandEnable
Signal strength threshold and low threshold output value5A 07 22 XX LL HHSame as commandExample: Strength≤100, Dist=1200/
CAUTION:1. Default frame rate 100Hz. Supports 0, 20, 50, 100, 250Hz.2. Wrong baud rate resets to 115200.3. Enable data-output command required on each power-up.4. ‘SU’ is checksum.5. Configuration commands save immediately.b76b77b85b86

4. Quick Test Guide

4.1 Tools Required

Source figure, page 12
Source figure, page 12
Source figure, page 12
Source figure, page 12
Source figure, page 12

TFS20-L, TTL-USB converter, USB cable, PC, Test Softwareb104

4.2 Test Procedures

(1) Download test software from Benewake website. Disable antivirus during extraction. Windows only.b106

Source figure, page 12
Source figure, page 12

(2) Hardware Connection: Connect TFS20-L to TTL-USB board and PC via USB.b110

Figure 3: LiDAR and PC interfacingb109

(3) Software Connection: Run GUI, select “TFmini/TFmini-S”, choose COM port and baud rate (115200), click “CONNECT”. View data in “TIME LINE CHART” and “REAL TIME DATA”.b115

Figure 4: GUI software and LiDAR interfacingb114

Note:1. Check wiring if no data. Faint red light visible when powered.2. Distance unit defaults to cm. If changed to mm, software chart still shows cm unit but values change.b116b117

5. Q&A

1. No data output: Check TTL-USB connection and drivers.b121

2. Heating: Normal operation.b122

3. No data output: V1.4.0 requires enable command (5A 05 07 01 67). Check power and wiring.b123

4. Ultra-low power mode: Not supported. Standby ~145 mW, Average ~430 mW.b124

Appendix: I2C REGISTER TABLE

AddressR/WNameDescriptionInitial Value
0x00RDIST_LOWDistance low byte (cm)-
0x01RDIST_HIGHDistance high byte-
0x02RAMP_LOWAmplitude low byte-
0x03RAMP_HIGHAmplitude high byte-
0x04RTEMP_LOWTemperature low byte (0.01 Celsius)-
0x05RTEMP_HIGHTemperature high byte-
0x06RTICK_LOWTimestamp low byte-
0x07RTICK_HIGHTimestamp high byte-
0x08-0x09RERROR_LOWError codeHold
0x0ARVERSION_REVISIONRevised version-
0x0BRVERSION_MINORMinor version-
0x0CRVERSION_MAJORMajor version-
0x10-0x1DRSNSerial Number (14 bytes ASCII)-
0x20WSAVEWrite 0x01 to save settings-
0x21WSHUTDOWN/REBOOTWrite 0x02 to reboot-
0x22W/RSLAVE_ADDRSlave Address [0x08, 0x77]0x10
0x23W/RMODE0x00: Continuous; 0x01: Trigger0x00
0x24WTRIG_ONE_SHOTTrigger once (trigger mode only)-
0x25W/RENABLE0x00: Off; 0x01: On0x01
0x26W/RFPS_LOWFrame rate low byte0x64
0x27W/RFPS_HIGHFrame rate high byte0x00
0x29WRESTORE_FACTORY_DEFAULTSWrite 0x01 to restore defaults-
0x2AW/RAMP_THR_LOWAmplitude threshold low0x2C
0x2BW/RAMP_THR_HIGHAmplitude threshold high0x01
0x2CW/RDUMMY_DIST_LOWDummy distance low0xFF
0x2DW/RDUMMY_DIST_HIGHDummy distance high0xFF
0x2EW/RMIN_DIST_LOWMin distance low (mm)0x00
0x2FW/RMIN_DIST_HIGHMin distance high (mm)0x00
0x30W/RMAX_DIST_LOWMax distance low (mm)0xFF
0x31W/RMAX_DIST_HIGHMax distance high (mm)0xFF
0x3A-0x3FRSIGNATURE‘TFS20-L’-

Product inquiry

Talk to a product specialist

Tell us what you need and our team will get back to you.

Product inquiry

Inquiry sent

Your inquiry has been received. We will be in touch soon.