šŸŽ‰
ESPBoards Store is Now Open! Find the best ESP32, ESP8266 boards & accessories

VL53L1X Time-of-Flight Sensor

VL53L1X Time-of-Flight Sensor image

View on Amazon

Overview

The VL53L1X is a high-accuracy long-distance laser-ranging sensor from STMicroelectronics. It uses a 940nm VCSEL emitter and advanced SPAD detection to measure absolute distances up to 4 meters with millimeter-level precision.

About VL53L1X Time-of-Flight Sensor

šŸ“ VL53L1X Sensor Overview

  • Range: 0cm to 400cm (Max)
  • Interface: I²C digital communication
  • Resolution: 1mm
  • Field of View: 27°
  • Operating Voltage: 2.6V to 3.5V (typically 3.3V)
  • Typical Current: ~20–40mA during ranging
  • Laser Wavelength: 940nm
  • Adjustable timing budget and distance mode
  • Compact 6-pin PCB module with mounting holes

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

Where to Buy

Get Your VL53L1X

VL53L1X Time-of-Flight Sensor

Starting from

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

VL53L1X Pinout

The VL53L1X pinout includes I2C communication pins (SDA, SCL), power supply (VIN, GND), shutdown pin (XSHUT), and interrupt pin (GPIO1) for long-range distance measurements up to 4 meters.

Visual Pinout Diagram

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

Pin Types

Power
1
Control
1

Quick Tips

Long-range

Time-of-Flight (ToF) sensor,Measurement range: 0 mm to 4000 mm (4 meters),Resolution: 1 mm,Field of View: 27°

Operating

voltage: 2.6V to 3.5V (3.3V recommended),I2C address: 0x29 (default),Laser wavelength: 940 nm (Class 1)

Adjustable

timing budget and distance modes,Current consumption: ~20-40 mA during ranging,Compact 6-pin PCB module with mounting holes

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VIN
Power

Power supply input (2.6V to 3.5V)

Typically 3.3V (strict requirement)

2 GND
Ground

Ground connection

Common ground

3 SCL
I2C Clock

I2C Serial Clock line

Clock signal (requires pull-up)

4 SDA
I2C Data

I2C Serial Data line

Bidirectional data (requires pull-up)

5 GPIO1
Interrupt

Interrupt output pin

Optional for event-driven measurements

6 XSHUT
Control

Shutdown pin (active low)

Used to reset sensor or change I2C address

Connection Guide

Wiring VL53L1X to ESP32

Connect the VL53L1X to your ESP32 via I2C (SDA and SCL pins). This sensor offers extended range up to 4 meters compared to the VL53L0X. Operating voltage is 2.6V to 3.5V (use 3.3V). Pull-up resistors are typically included on modules.

Visual Wiring Diagram

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

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections

VL53L1X PinConnectionESP32 PinDescription
1 VIN Required
3.3V

Power supply (2.6V to 3.5V, use 3.3V)

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 XSHUT Optional
GPIO (optional)

Shutdown/reset control (tie high to enable)

6 GPIO1 Optional
GPIO (optional)

Interrupt output for measurement ready

Extended

range: up to 4 meters (2x the VL53L0X)

I2C

address: 0x29 (same as VL53L0X)

Operating

voltage: 2.6V to 3.5V - use 3.3V, NOT 5V!

Pull-up

resistors (4.7kΩ) typically included on module

Adjustable

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

Adjustable

timing budget affects accuracy and speed

XSHUT

pin allows multiple sensors on same I2C bus

Tie

XSHUT high (3.3V) to enable sensor by default

Use

Adafruit_VL53L1X or Pololu VL53L1X library

Better

performance in ambient light than VL53L0X

Avoid

shiny, transparent, or very dark surfaces

Field

of view (27°) wider than VL53L0X (25°)

Help & Support

VL53L1X Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

VL53L1X Programming Examples

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

Summary

Wrapping Up VL53L1X

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