TOF400C Time-of-Flight Sensor

TOF400C Time-of-Flight Sensor image

View on Amazon

Overview

The TOF400C is a long-range laser-based time-of-flight (ToF) sensor based on the VL53L1X chip from STMicroelectronics. It measures distances up to 4 meters with high accuracy and is ideal for robotics, navigation, and presence detection applications.

Code Examples

About TOF400C Time-of-Flight Sensor

📏 TOF400C Sensor Overview

  • Range: 0cm to 400cm (Max)
  • Interface: I²C digital communication
  • Resolution: 1mm accuracy
  • Field of View: 27°
  • Operating Voltage: 3.0V to 5.0V
  • Typical Current: ~40mA
  • Infrared Wavelength: 940nm
  • Advanced Filtering and Timing Budget Control

Check Other sensors modules based on VL53L1X Time of Flight Sensor:

Where to Buy

Get Your TOF400C

TOF400C Time-of-Flight Sensor

Starting from

4.80$ per unit

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

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

Pin Configuration

TOF400C Pinout

The TOF400C pinout includes I2C communication pins (SDA, SCL), power supply (VIN, GND), interrupt pin (INT), and shutdown pin (SHUT) for long-range distance measurements up to 4 meters. Based on the VL53L1X chip.

Visual Pinout Diagram

Pinout Diagram Primary
TOF400C Time-of-Flight Sensor pinout
6
Total Pins

Pin Types

Power
1
Control
1

Quick Tips

Based

on VL53L1X Time-of-Flight sensor chip,Long-range distance measurement: 0 cm to 400 cm (4 meters),Resolution: 1 mm accuracy,Field of View: 27°

Operating

voltage: 3.0V to 5.0V (onboard regulator),VL53L1X chip requires: 2.6V to 3.5V (regulated on board),I2C address: 0x29 (default),Laser wavelength: 940 nm (Class 1)

Current

consumption: ~40 mA typical,Advanced filtering and timing budget control,Adjustable distance modes: short, medium, long

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VIN
Power

Power supply input (3.0V to 5.0V)

Typically 3.3V (VL53L1X requires 2.6-3.5V)

2 GND
Ground

Ground connection

Common ground

3 SDA
I2C Data

I2C Serial Data line

Bidirectional data (requires pull-up)

4 SCL
I2C Clock

I2C Serial Clock line

Clock signal (requires pull-up)

5 INT
Interrupt

Interrupt output pin

Optional for event-driven measurements

6 SHUT
Control

Shutdown pin (active low)

Tie high to enable sensor, low to disable

Connection Guide

Wiring TOF400C to ESP32

Connect the TOF400C to your ESP32 via I2C (SDA and SCL pins). This sensor is based on the VL53L1X chip and provides long-range distance measurements up to 4 meters with adjustable timing budgets. Pull-up resistors are typically included on modules.

Visual Wiring Diagram

Wiring Diagram Recommended
TOF400C Time-of-Flight Sensor wiring with ESP32
6
Connections

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections

TOF400C PinConnectionESP32 PinDescription
1 VIN Required
3.3V or 5V

Power supply (onboard regulator)

2 GND Required
GND

Ground connection

3 SDA Required
GPIO21

I2C data line (with pull-up)

4 SCL Required
GPIO22

I2C clock line (with pull-up)

5 INT Optional
GPIO (optional)

Interrupt output for measurement ready

6 SHUT Optional
3.3V or GPIO

Shutdown control (tie high to enable)

Based

on VL53L1X chip - compatible with VL53L1X libraries

Extended

range: up to 4 meters (10x longer than TOF050C)

I2C

address: 0x29 (same as VL53L0X/VL6180X)

Onboard

voltage regulator: accepts 3.3V or 5V input

Pull-up

resistors typically included on module

SHUT

pin: Tie high to enable, allows multiple sensors on same bus

INT

pin signals when measurement is ready

Use

Adafruit_VL53L1X or Pololu VL53L1X library

Adjustable

distance modes: short (1.3m), medium (3m), long (4m)

Adjustable

timing budget affects accuracy vs speed

940

nm laser wavelength (Class 1, eye-safe)

Better

ambient light performance than VL53L0X

Can

replace VL53L1X in existing projects

Help & Support

TOF400C Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

TOF400C Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up TOF400C

The ESP32 TOF400C 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 TOF400C into your ESP32 project and bring your ideas to life!

Similar Options

Explore Alternative Sensors

Looking for alternatives to the TOF400C? Check out these similar sensors that might fit your project needs.

VL53L0X Time-of-Flight Distance Sensor

VL53L0X Time-of-Flight Distance Sensor

DISTANCE I2C

The VL53L0X is an advanced Time-of-Flight distance sensor offering accurate, laser-based measurements over a range of 30 mm to 2,000 mm. It...

View Details
A02YYUW Waterproof Ultrasonic Distance Sensor

A02YYUW Waterproof Ultrasonic Distance Sensor

DISTANCE UART

The A02YYUW is a waterproof ultrasonic distance sensor ideal for outdoor and industrial applications. With a measuring range of up to 4.5...

View Details
GY-530 VL53L0X Time-of-Flight Sensor

GY-530 VL53L0X Time-of-Flight Sensor

DISTANCE I2C

The GY-530 is a breakout board for the VL53L0X Time-of-Flight (ToF) sensor from STMicroelectronics. It uses FlightSense technology to...

View Details