Skip to main content

TOF MINIS Range Sensor

TOF MINIS Range Sensor

SKUProduct
35108TOF MINIS Range Sensor

Features​

This laser ranging module is based on a D-TOF single-point laser sensor, has a built-in MCU, and comes in an enclosed housing. It supports sunlight suppression and cover-window contamination resistance algorithms and can measure the target distance. It uses an optical collimation design and has an ambient light immunity of 100K Lux.

Disclaimer​

Life Support Policy

The TOF MINIS Range Sensor series is not authorized for use in critical applications where failure could affect personal safety (such as life support). In such applications, failure of TOF MINIS Range Sensor series products may result in serious personal injury or death. Customers who use or sell TOF MINIS Range Sensor series products in this manner do so entirely at their own risk, and agree to fully indemnify Waveshare and its representatives against any damages arising from the use of TOF MINIS Range Sensor series products in such safety-critical applications.

Regulatory Approval

The TOF MINIS Range Sensor series provided by Waveshare has obtained EU laser product certification. Before using or selling these products, verify whether these certifications apply in your region. Products incorporating the TOF MINIS Range Sensor series must obtain approval from the relevant authorities in accordance with local laser product regulations before being sold in that region.

Applications​

  • Distance detection for smart devices
  • Robot obstacle avoidance
  • Drone altitude measurement
  • Industrial automation ranging

Working Principle​

This product uses D-TOF (Direct Time of Flight) ranging technology and emits near-infrared light at a wavelength of 940 nm. It calculates the target distance by measuring the round-trip time of the light from emission to reception of the light reflected by the target. TOF is commonly used in scenarios such as personnel approach detection, robot obstacle avoidance, and camera autofocus.

Specifications​

ParameterTOF MINIS Range Sensor
Typical ranging range0.02 m - 5 m
Error± (1% - 3%)
Refresh rateDefault 30 Hz; above 30 Hz requires a firmware upgrade, up to 90 Hz maximum (bulk customization supported)
Ambient light immunity100K Lux
Operating temperature-20°C - +70°C
Operating humidity35% - 80%RH
Laser safety classLASER CLASS 1 (IEC 60825-1: 2014)
Protection ratingIP68
Wavelength940 nm (near-infrared)
Light sourceVCSEL
Spot sizeapprox. 10 cm × 10 cm at 4 m
Communication InterfaceRS485
Baud rate115200
Supply voltage4 V - 5.6 V
Power consumption100 mW - 140 mW
Average current / Peak current25 mA / 26 mA
Product weightapprox. 15.8 g, varying with the length of the bundled cable
Housing materialPC
Storage temperature-40°C - +80°C
Product dimensionsDiameter 29.5 mm, Height 18.00 mm, Cable length 60 cm

Pinout​

PinWire colorLabelPin description
1RedVCCPower supply positive
2BlackGNDPower ground
3GreenB-RS485 B
4YellowA+RS485 A

Protocol Analysis​

Click to expand

RS485 Communication​

This product uses RS485 communication for data transfer, with the Modbus RTU slave protocol.

Default serial configuration:

ParameterValue
Data bits8 bit
Stop Bits1 bit
ParityNone
Baud rate115200 bps

Register Description​

Register AddressTypeData NameDescription
00Holding Register (RW)DistanceUnit: mm
01Holding Register (RW)ConfidenceRange: 0 - 100
02Holding Register (RW)AddressSlave device address

Communication Examples​

Read Distance

Request frame: 01 03 00 00 00 01 84 0A

Response frame: 01 03 02 03 6D 79 59

  • Read register 00 from slave 0x01 in a single read.
  • Distance value is 03 6D, big-endian.
  • Distance = 0x03 << 8 | 0x6D = 877 mm.

Read Confidence

Request frame: 01 03 00 01 00 01 D5 CA

Response frame: 01 03 02 00 64 B9 AF

  • Read register 01 from slave 0x01 in a single read.
  • Confidence value is 00 64, big-endian.
  • Confidence = 0x64 = 100.

Write Address

Request frame: 03 06 00 02 00 01 E8 28

Response frame: 03 06 00 02 00 01 E8 28

  • Change register 02 of slave 0x03 to 01.
  • The device will restart after the address is changed.

Read Multiple Registers

Request frame: 01 03 00 00 00 02 C4 0B

Response frame: 01 03 04 0C 62 00 64 59 56

  • Slave 0x01 reads 2 consecutive registers starting from register 00.
  • Register 00 value is 0C 62, distance = 3170 mm.
  • Register 01 value is 00 64, confidence = 100.

Precautions​

  • The default frame rate is 30 Hz; firmware upgrade is required for rates above 30 Hz.
  • The default slave address is 0x01. It can be changed following the register usage examples above.
  • This product has no overvoltage or reverse polarity protection. Verify wiring and voltage range before connection.

Quick Test​

  • Use SSCOM Serial Debug Assistant or the TOF MINI Series Modbus Debug Tool to read sensor data via USB TO RS485 (B).

  • Test Preparation

    • Windows computer
    • USB TO RS485 (B) × 1
    • TOF MINIS Range Sensor × 1
    • Included cables
  • Hardware Connection

    • Connect as shown in the figure below.

      USB TO RS485 (B) wiring
  • Start Testing

    Using SSCOM Serial Debug Assistant

    • Open SSCOM Serial Debug Assistant and select the serial port corresponding to USB TO RS485 (B).

    • Set the baud rate to 115200, data bits to 8, stop bits to 1, and parity to "NONE".

    • Check "HEXShow" and "SendHEX". Send the request frame from "Protocol Parsing" and check the data returned by the sensor.

      SSCOM reads MINIS data

    Using TOF MINI Series Modbus Debug Tool

    • Open the TOF MINI Series Modbus Debug Tool and select the corresponding serial port, then click "Open" and "Start Polling" in sequence. View the distance and confidence in the "Values" area.

      TOF MINI Series Modbus Debugging Tool