TOF050C Time-of-Flight Sensor

TOF050C Time-of-Flight Sensor image

View on Amazon

Overview

The TOF050C is a short-range laser-ranging sensor using the VL6180 chip, offering highly accurate distance measurements up to 50 cm. It is optimized for applications such as gesture recognition, proximity detection, and short-distance object tracking.

Code Examples

About TOF050C Time-of-Flight Sensor

📏 TOF050C Sensor Overview

  • Range: 0cm to 50cm (Max)
  • Interface: I²C digital communication
  • Resolution: 1mm accuracy
  • Field of View: 25°
  • Operating Voltage: 3.0V to 5.0V
  • Typical Current: ~40mA
  • Infrared Wavelength: 850nm

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

Where to Buy

Get Your TOF050C

TOF050C Time-of-Flight Sensor

Starting from

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

TOF050C Pinout

The TOF050C pinout includes I2C communication pins (SDA, SCL), power supply (VIN, GND), interrupt pin (INT), and shutdown pin (SHUT) for short-range distance measurements up to 50 cm. Based on the VL6180X chip.

Visual Pinout Diagram

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

Pin Types

Power
1
Control
1

Quick Tips

Based

on VL6180X Time-of-Flight sensor chip,Short-range distance measurement: 0 cm to 50 cm,Resolution: 1 mm accuracy,Field of View: 25°

Operating

voltage: 3.0V to 5.0V,I2C address: 0x29 (default),IR wavelength: 850 nm

Current

consumption: ~40 mA typical,Integrated ambient light sensor (ALS),Ideal for gesture recognition and proximity detection

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VIN
Power

Power supply input (3.0V to 5.0V)

Typically 3.3V or 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 TOF050C to ESP32

Connect the TOF050C to your ESP32 via I2C (SDA and SCL pins). This sensor is based on the VL6180X chip and provides short-range distance measurements up to 50 cm with integrated ambient light sensing. Pull-up resistors are typically included on modules.

Visual Wiring Diagram

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

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections

TOF050C PinConnectionESP32 PinDescription
1 VIN Required
3.3V or 5V

Power supply (3.0V to 5.0V)

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 VL6180X chip - compatible with VL6180X libraries

Short-range

sensor: 0-50 cm (best for proximity)

I2C

address: 0x29 (same as VL53L0X/VL53L1X)

Pull-up

resistors typically included on module

SHUT

pin: Tie high (3.3V/5V) to enable sensor

INT

pin can signal measurement ready or threshold alerts

Use

Adafruit_VL6180X library for Arduino/ESP32

Integrated

ambient light sensor (ALS) included

Ideal

for gesture recognition in close range

850

nm IR wavelength (different from VL53 series)

Better

suited for close-range than VL53L0X

Can

replace VL6180X in existing projects

Help & Support

TOF050C Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

TOF050C Programming Examples

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

Summary

Wrapping Up TOF050C

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

Similar Options

Explore Alternative Sensors

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

TOF200C Time-of-Flight Sensor

TOF200C Time-of-Flight Sensor

DISTANCE I2C

The TOF200C is a compact, low-cost laser-ranging sensor based on the VL53L0X time-of-flight chip from STMicroelectronics. It provides...

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
TOF400C Time-of-Flight Sensor

TOF400C Time-of-Flight Sensor

DISTANCE I2C

The TOF400C is a long-range laser-based time-of-flight (ToF) sensor based on the VL53L1X chip from STMicroelectronics. It measures distances...

View Details