🎉
ESPBoards Store is Now Open! Find the best ESP32, ESP8266 boards & accessories

VL53L0X V2 Time-of-Flight Sensor

VL53L0X V2 Time-of-Flight Sensor image

View on Amazon

Overview

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 ideal for gesture sensing, obstacle detection, and IoT applications requiring compact, low-power, and precise distance measurement. The VL53L0X V2 (GY-VL53L0XV2) is functionally similar to V1 but offers improved signal stability and build quality. While both versions use the same ST VL53L0X chip, the V2 module typically features a slightly larger PCB (25x13mm) with better trace routing, additional capacitors, and more robust pull-ups. It's more plug-and-play friendly for modern ESP boards and includes clear labeling for I²C, XSHUT, and GPIO pins.

Code Examples

About VL53L0X V2 Time-of-Flight Sensor

📏 VL53L0X V2 Sensor Overview

  • Range: 3cm to 200cm (Max)
  • Interface: I²C digital communication
  • Resolution: 1mm
  • Field of View: ~25°
  • Operating Voltage: 3V to 5V
  • Typical Current: ~20–40mA
  • Compact Board Size: 25mm × 13mm × 3mm
  • I²C Pins + XSHUT + GPIO (interrupt/reset)

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

Where to Buy

Get Your VL53L0X V2

VL53L0X V2 Time-of-Flight Sensor

Starting from

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

VL53L0X V2 Pinout

The VL53L0X V2 pinout includes I2C communication pins (SDA, SCL), power supply (VIN, GND), reset pin (XSHUT), and interrupt pin (GPIO) with improved build quality over V1.

Visual Pinout Diagram

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

Pin Types

Power
1
Control
1

Quick Tips

Improved

V2 version with better signal stability,Measurement range: 30 mm to 2000 mm (2 meters),Resolution: 1 mm,Field of View: ~25°

Operating

voltage: 3.0V to 5.0V,Larger PCB (25mm × 13mm) with better trace routing,Additional capacitors for improved stability

More

robust pull-up resistors,I2C address: 0x29 (default),Better plug-and-play compatibility with modern boards

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 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 XSHUT
Control

Reset pin (active low)

Used to reset sensor or change I2C address

6 GPIO
Interrupt

Interrupt/reset output pin

Optional for event-driven measurements

Connection Guide

Wiring VL53L0X V2 to ESP32

Connect the VL53L0X V2 to your ESP32 via I2C (SDA and SCL pins). This V2 version features improved build quality with better signal stability compared to the original VL53L0X. Pull-up resistors are included on the module.

Visual Wiring Diagram

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

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections

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

Reset control for address changing

6 GPIO Optional
GPIO (optional)

Interrupt output for measurement ready

V2

offers improved signal stability over V1

Better

build quality with larger PCB and improved routing

I2C

address: 0x29 (default, changeable via XSHUT)

Pull-up

resistors included on module (more robust than V1)

More

plug-and-play friendly for ESP32 boards

Clear

pin labeling for easy connection

Use

same libraries as V1 (Adafruit_VL53L0X)

XSHUT

allows multiple sensors on same I2C bus

Better

performance with modern ESP boards

Recommended

over V1 for new projects

Avoid

shiny, transparent, or very dark surfaces for best accuracy

Help & Support

VL53L0X V2 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

VL53L0X V2 Programming Examples

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

Summary

Wrapping Up VL53L0X V2

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