Ultra-Compact ToF Laser Ranging Sensor (7.8m)

SKU: SEN0646

The TOF Laser Ranging Sensor (TOF-7.8) is a dTOF-based device. It has <2cm blind area, max 7.8m range (env reflectivity-dependent), ±4cm typical accuracy, 100K LUX light resistance, and supports UART/I2C/I/O. TOF-7.8 highlights ultra-small size (1g) & cost-effectiveness, ideal for consumer electronics, robots, drones, and easy to embed in space-constrained devices.

Overview of Ultra-Compact ToF Laser Ranging Sensor

Downloadable Resources

  • Docs
  • Tech Specs
  • 1. Example Code for Arduino-Serial Active Output

    This article offers comprehensive instructions on how to set up Arduino for serial active output, including hardware and software preparation, wiring diagrams, and sample code for TOF sensors, focusing on efficient communication and parameter configuration.

    2. Example Code for Arduino-Serial Query Output

    This article offers a comprehensive guide on executing serial query output using Arduino, featuring hardware and software preparations, wiring diagrams, and sample code to effectively use TOF sensors with ESP32 development boards.

    3. Example Code for Arduino-IIC Output

    IIC mode can be used in single module and cascade. In IIC communication mode, the controller sends a read frame to the expected query module with the specified slave address according to the IIC communication timing, and can obtain the distance and other related information of the module. In addition, you can also change the module's output mode and other parameters through IIC communication. The read frame and write frame formats follow the NLink_TOFSense_IIC_Frame0 protocol.

    4. I/O Output of TOF Laser Ranging Sensor SEN0646 - DFWiki

    This article sheds light on I/O output configurations, focusing on signal level settings, single and double threshold setups, and UART mode configurations for efficient module communication.

    Reference

    Specification

    Parameter Value
    Refresh Rate 50Hz
    Classic Ranging Range 0.02~7.8m
    Classic Ranging Accuracy ±4cm
    Wavelength 940nm
    Anti-Environmental Light 100K LUX Illumination
    Field of View (FOV) 2~3°
    Power Supply Voltage 4.3V~5.2V
    Power Consumption 100mW
    Communication Interface UART/IIC/IO
    IIC Default Slave Address 0x80
    Operating Temperature -10℃~60℃
    Dimensions 19.0 mm * 12.0 mm * 10.3mm
    Product Weight 1g

    Wire Sequence

    Please check the wire sequence of the product. The previous wire colors and functions did not comply with electrical specifications, so we have updated the wire sequence once. If you have an older version of the wiring, please swap the positions of the red and black wires yourself. This tutorial is based on the new wiring version.

    Wire Color Function
    Red VCC
    Black GND
    Blue RX/SDA
    Green TX/SCL

    Dimensions

    FAQ

    • Why can't the host machine software recognize the module after switching to IIC or I/O mode? How to switch between different communication modes?

      Currently, the host machine software only supports the recognition of modules in UART mode. In UART mode, you can configure the module as IIC or I/O communication mode by entering the setting page after successfully recognizing the module on the host machine; in IIC communication mode, you can switch back to UART or I/O mode by sending commands to the module through IIC communication according to the IIC communication protocol; in addition, you can switch back to UART mode in the following ways without IIC test environment or after switching to I/O mode:

      Users need to prepare a USB to TTL module that supports a baud rate of 921600 (CP2102 is recommended) and install the corresponding driver program. Connect the TX, RX, and 5V three wires of the USB to TTL module to the corresponding pins of the TOF module, and do not connect the GND pin for the time being. Then plug the USB to TTL module into the computer.Open the host machine software, click icon to enter the serial port debugging assistant, change the baud rate to the baud rate you set before (if the baud rate has not been modified, it is 921600), select the COM port corresponding to the USB to TTL module and then click connect button to connect the COM port (in most cases, it will connect automatically), enter 54 20 00 ff 00 ff ff ff ff 00 ff ff 00 10 0e ff ff ff ff ff ff ff ff ff ff ff 00 ff ff ff ff 7c in the single send text box, change the send interval to 20ms in the timed send bar at the bottom right, and then check timed send. At this point, connect the GND of the USB to TTL module to the GND pin of the TOF module, the module will switch to UART mode and start outputting data, at this point uncheck the timed send button, then unplug the USB to TTL module and repower the module, then click the identify button on the main page to identify the module.If the switch fails, unplug the USB to TTL module and repeat the whole process. Do not unplug and plug the GND pin multiple times while sending commands. If the module can be recognized normally but the serial port output data is abnormal, you can manually change to UART mode in the setting page.

    Explore More Related Questions >

    Was this article helpful?

    TOP