ESP32 TOF200C Time-of-Flight Sensor

TOF200C Time-of-Flight Sensor image

TOF200C

Protocol: I2C

Overview

The TOF200C is a compact, low-cost laser-ranging sensor based on the VL53L0X time-of-flight chip from STMicroelectronics. It provides accurate distance measurement using a 940nm VCSEL emitter.

About TOF200C Time-of-Flight Sensor

📏 TOF200C Sensor Overview

  • Range: 3cm to 200cm (with 3cm dead zone)
  • Interface: I²C digital communication
  • Resolution: 1mm accuracy depending on ambient light
  • Field of View: 25°
  • Operating Voltage: 3.0V to 5.0V
  • Typical Current: ~40mA
  • Compact: Ideal for embedded and mobile systems

Check Other module sensors based on VL53L0X Time of Flight Sensor:

Where to Buy

TOF200C Time-of-Flight Sensor

Starting from

$2 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

Operating Range 3cm to 200cm
Dead Zone 3cm
Resolution 1mm
Voltage Range 3.0V to 5.0V
Current Consumption ~40mA
Interface I²C
Wavelength 940nm
Field of View 25°

3D Printed Enclosure

TOF200C Time-of-Flight Sensor enclosure

Protect your ESP32-C3 SuperMini and TOF200C sensor with our custom-designed snap-fit enclosure. Available in multiple colors and configurations, it offers secure housing for both components.

🛍️ View on Etsy

Premium Quality

💡

Each enclosure is carefully designed and tested to ensure perfect fit and functionality. Made with premium materials for durability and aesthetics.

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.

  • VIN: Power supply (3.0V – 5.0V)
  • GND: Ground
  • SDA: I²C Data
  • SCL: I²C Clock
  • INT: Interrupt output
  • SHUT: Shutdown (active low)

Wiring with ESP32

This module can easily be wired to microcontrollers like the ESP32 using the I²C protocol:

  • VIN → 3.3V or 5V
  • GND → GND
  • SDA → GPIO21 (ESP32 SDA)
  • SCL → GPIO22 (ESP32 SCL)
  • INT → Optional
  • SHUT → Optional (tie to VCC to enable)

Troubleshooting Guide

Common Issues

📡 No Distance Readings

🔌 I²C Not Detected

⚠️ Unstable Measurements

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🐍

MicroPython Example

Python

Conclusion

The ESP32 TOF200C 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.