TOF200C Time-of-Flight Sensor

View on Amazon
Overview
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:
Get Your TOF200C
💡 Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.
TOF200C Specifications
Complete technical specification details for TOF200C Time-of-Flight Sensor
📊 Technical Parameters
TOF200C Pinout
The TOF200C sensor features 6 pins for power, communication, and control. Here's a detailed breakdown of each pin's function and specifications.
Visual Pinout Diagram

Pin Types
Quick Tips
I²C address: 0x29 (fixed, not configurable)
Pull-up resistors on SDA/SCL may already be on the module
INT pin is useful for interrupt-driven measurements instead of polling
Pin Descriptions
| Pin Name | Type | Description | Notes |
|---|---|---|---|
1 VIN | Power | Power supply input (3.0V – 5.0V) | Accepts both 3.3V and 5V logic |
2 GND | Power | Ground connection | Connect to ESP32 ground |
3 SDA | Communication | I²C Data line | Bidirectional data signal for I²C communication |
4 SCL | Communication | I²C Clock line | Clock signal provided by ESP32 master |
5 INT | Control | Interrupt output | Optional - triggers when new measurement is ready |
6 SHUT | Control | Shutdown control (active low) | Pull high to enable, or use GPIO for control |
Wiring TOF200C to ESP32
Connect the TOF200C sensor to your ESP32 microcontroller using the I²C interface. The sensor operates on 3.3V or 5V and provides accurate distance measurements up to 200cm.
Visual Wiring Diagram

Connection Status
Protocol
Pin Connections
| TOF200C Pin | Connection | ESP32 Pin | Description |
|---|---|---|---|
1 VIN Required | 3.3V or 5V | Power supply pin | |
2 GND Required | GND | Ground connection | |
3 SDA Required | GPIO21 | I²C Data line (default SDA) | |
4 SCL Required | GPIO22 | I²C Clocgk line (default SCL) | |
5 INT Optional | Any GPIO | Interrupt output (optional) | |
6 SHUT Optional | VCC or GPIO | Shutdown control (tie to VCC to enable, or use GPIO for control) |
The sensor works with both 3.3V and 5V logic levels
Ensure proper I²C pull-up resistors (4.7kΩ recommended) if not already on board
GPIO21 and GPIO22 are the default I²C pins on ESP32, but you can use any GPIO with software I²C
The INT pin can be used for interrupt-driven operation to reduce polling overhead
TOF200C Troubleshooting
Common issues and solutions to help you get your sensor working
Common Issues
Issue: The sensor always reports 'Out of range'.
Solution: Check power supply and wiring. Ensure SHUT pin is pulled high. Try initializing with a different I²C address if using multiple sensors.
Issue: Device does not show up on I²C scanner.
Solution: Double-check SDA/SCL connections and use pull-up resistors (~4.7kΩ) if necessary. Ensure address conflicts are avoided if multiple devices share the bus.
Issue: Readings fluctuate rapidly.
Solution: Use averaging in code, reduce ambient IR noise (sunlight), and avoid glossy targets.
Debugging Tips
Use the Serial Monitor to check for error messages and verify the sensor's output. Add debug prints in your code to track the sensor's state.
Use a multimeter to verify voltage levels and check for continuity in your connections. Ensure the power supply is stable and within the sensor's requirements.
Additional Resources
TOF200C Programming Examples
Ready-to-use code examples for different platforms and frameworks
#include <Wire.h>
#include <Adafruit_VL53L0X.h>
Adafruit_VL53L0X lox = Adafruit_VL53L0X();
void setup() {
Serial.begin(115200);
Wire.begin();
if (!lox.begin()) {
Serial.println("Failed to initialize TOF200C sensor!");
while (1);
}
Serial.println("TOF200C ready!");
}
void loop() {
VL53L0X_RangingMeasurementData_t measure;
lox.rangingTest(&measure, false);
if (measure.RangeStatus != 4) {
Serial.print("Distance: ");
Serial.print(measure.RangeMilliMeter);
Serial.println(" mm");
} else {
Serial.println("Out of range");
}
delay(500);
}i2c:
sda: 21
scl: 22
sensor:
- platform: vl53l0x
name: "TOF200C Distance"
update_interval: 1sfrom machine import I2C, Pin
import time
import vl53l0x
# Initialize I2C interface (GPIO21 = SDA, GPIO22 = SCL)
i2c = I2C(0, scl=Pin(22), sda=Pin(21))
# Initialize VL53L0X sensor
tof = vl53l0x.VL53L0X(i2c)
# Start continuous ranging
tof.start()
while True:
distance = tof.read()
print("Distance: {} mm".format(distance))
time.sleep(0.5)Wrapping Up TOF200C
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.
Best Practices
For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.
Safety First
Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.
Ready to Start Building?
Now that you have all the information you need, it's time to integrate the TOF200C into your ESP32 project and bring your ideas to life!
Premium 3D Printed Enclosure
Protect your TOF200C sensor with a custom-designed 3D printed enclosure. Professional quality, perfect fit, and ready to use.
Perfect Fit
Custom designed
Premium Quality
High-grade materials
Durable
Long-lasting protection
Quick Setup
Easy to install
Each enclosure is carefully designed and tested to ensure perfect fit and functionality. Made with premium materials for durability and aesthetics.
Explore Alternative Sensors
Looking for alternatives to the TOF200C? Check out these similar sensors that might fit your project needs.

VL53L0X V2 Time-of-Flight Sensor
The VL53L0X V2 (GY-VL53L0XV2) is a high-accuracy Time-of-Flight (ToF) laser ranging sensor that can measure distances up to 2 meters. It's...

JSN-SR04T Waterproof Ultrasonic Distance Sensor
The JSN-SR04T is a waterproof ultrasonic distance sensor ideal for outdoor and industrial applications. With a measuring range of up to 6...

VL53L1X Time-of-Flight Sensor
The VL53L1X is a high-accuracy long-distance laser-ranging sensor from STMicroelectronics. It uses a 940nm VCSEL emitter and advanced SPAD...




