TOF MINIS Range Sensor
| SKU | Product |
|---|---|
| 35108 | TOF 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
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.
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
| Parameter | TOF MINIS Range Sensor |
|---|---|
| Typical ranging range | 0.02 m - 5 m |
| Error | ± (1% - 3%) |
| Refresh rate | Default 30 Hz; above 30 Hz requires a firmware upgrade, up to 90 Hz maximum (bulk customization supported) |
| Ambient light immunity | 100K Lux |
| Operating temperature | -20°C - +70°C |
| Operating humidity | 35% - 80%RH |
| Laser safety class | LASER CLASS 1 (IEC 60825-1: 2014) |
| Protection rating | IP68 |
| Wavelength | 940 nm (near-infrared) |
| Light source | VCSEL |
| Spot size | approx. 10 cm × 10 cm at 4 m |
| Communication Interface | RS485 |
| Baud rate | 115200 |
| Supply voltage | 4 V - 5.6 V |
| Power consumption | 100 mW - 140 mW |
| Average current / Peak current | 25 mA / 26 mA |
| Product weight | approx. 15.8 g, varying with the length of the bundled cable |
| Housing material | PC |
| Storage temperature | -40°C - +80°C |
| Product dimensions | Diameter 29.5 mm, Height 18.00 mm, Cable length 60 cm |
Pinout
| Pin | Wire color | Label | Pin description |
|---|---|---|---|
| 1 | Red | VCC | Power supply positive |
| 2 | Black | GND | Power ground |
| 3 | Green | B- | RS485 B |
| 4 | Yellow | A+ | 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:
| Parameter | Value |
|---|---|
| Data bits | 8 bit |
| Stop Bits | 1 bit |
| Parity | None |
| Baud rate | 115200 bps |
Register Description
| Register Address | Type | Data Name | Description |
|---|---|---|---|
| 00 | Holding Register (RW) | Distance | Unit: mm |
| 01 | Holding Register (RW) | Confidence | Range: 0 - 100 |
| 02 | Holding Register (RW) | Address | Slave 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
00from slave0x01in a single read. - Distance value is
03 6D, big-endian. - Distance =
0x03 << 8 | 0x6D = 877mm.
Read Confidence
Request frame: 01 03 00 01 00 01 D5 CA
Response frame: 01 03 02 00 64 B9 AF
- Read register
01from slave0x01in 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
02of slave0x03to01. - 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
0x01reads 2 consecutive registers starting from register00. - Register
00value is0C 62, distance =3170mm. - Register
01value is00 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.
-
-
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.

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.

-
