ESP32 TOF10120 Laser Distance (Time of Flight) Sensor

TOF10120 Laser Distance (Time of Flight) Sensor image

TOF10120

Protocol: I2C,UART

Overview

The TOF10120 is an advanced, high-performance laser distance sensor that uses time-of-flight technology to measure distances with remarkable accuracy and speed. Its versatility in supporting both I2C and UART communication makes it ideal for a wide range of applications, including robotics, smart devices, and industrial automation.

About TOF10120 Laser Distance (Time of Flight) Sensor

The TOF10120 is a compact laser distance sensor that uses Time-of-Flight (TOF) technology for accurate and reliable distance measurements. With a measurement range of up to 180 cm and support for I²C and UART communication, it is ideal for robotics, obstacle detection, and proximity sensing applications.

Key Features

  • Accurate Distance Measurement – Measures 10 cm to 180 cm with ±2 cm precision.
  • Dual Communication Interface – Supports I²C and UART for flexible integration.
  • Low Power Consumption – Operates at <30mA, making it ideal for battery-powered applications.
  • Wide Voltage Compatibility – Works with 3.3V to 5V, fully compatible with ESP32 and other microcontrollers.

With its compact design and reliable TOF technology, the TOF10120 is a great choice for embedded systems and robotics applications requiring precise distance sensing. 🚀

Where to Buy

TOF10120 Laser Distance (Time of Flight) Sensor

Starting from

10$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Measurement Range 10 cm to 180 cm
Accuracy ±2 cm
Interface I2C/UART
Operating Voltage 3.3V to 5V
Power Consumption <30mA

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

The TOF10120 pinout is straightforward, offering both I2C and UART communication options:

  • VCC: Connect to a 3.3V or 5V power supply.
  • GND: Ground connection to complete the circuit.
  • SDA: Data line for I2C communication.
  • SCL: Clock line for I2C communication.
  • TX: Transmit pin for UART communication.
  • RX: Receive pin for UART communication.

Wiring with ESP32

To use TOF10120 with I2C, connect SDA and SCL to the respective pins on the microcontroller, along with VCC and GND. For UART, connect TX and RX to the corresponding UART pins on the microcontroller. Configure the communication protocol as required by your application.

Troubleshooting Guide

Common Issues

⚠️ Unstable or Incorrect Distance Measurements

❌ Sensor Not Detected on I2C Bus

🔄 Interference Between Multiple Sensors

❓ Unexpected Output Values

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 TOF10120 Laser Distance (Time of Flight) Sensor is a powerful distance sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.