ESP32 GY-530 VL53L0X Time-of-Flight Sensor Pinout, Wiring and more

GY-530 VL53L0X Time-of-Flight Sensor image

GY-530

Protocol: I2C

Overview

The GY-530 is a breakout board for the VL53L0X Time-of-Flight (ToF) sensor from STMicroelectronics. It uses FlightSense technology to measure distances up to 2 meters with 1mm resolution and includes onboard level shifting and voltage regulation, making it compatible with 3.3V and 5V microcontrollers.

About GY-530 VL53L0X Time-of-Flight Sensor

📏 GY-530 Sensor Overview

  • Sensor: VL53L0X (STMicroelectronics)
  • Range: 3cm to 200cm (max), with 1mm resolution
  • Interface: I²C (with level shifters)
  • Operating Voltage: 2.6V to 5.5V (via VIN)
  • Board Size: ~20mm x ~15mm
  • Colors: Available in both blue and purple PCBs - functionally identical
  • Additional Pins: XSHUT (shutdown) and VDD (2.8V regulator output)

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

Where to Buy GY-530 VL53L0X Time-of-Flight Sensor

GY-530 VL53L0X Time-of-Flight Sensor

Starting from

2.50$ per unit

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

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

GY-530 Datasheet and Technical Specifications

Sensor Chip VL53L0X
Operating Range 30mm to 2000mm
Resolution 1mm
Voltage Range 2.6V to 5.5V (VIN)
Regulated Output 2.8V (VDD pin)
Current Consumption ~20–40mA
Interface I²C with level shifters
Wavelength 940nm IR
Field of View ~25°

GY-530 Pinout Diagram

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • VIN: 2.6V–5.5V power input
  • GND: Ground
  • SCL: I²C Clock (level-shifted to VIN)
  • SDA: I²C Data (level-shifted to VIN)
  • XSHUT: Active-low shutdown (not level-shifted)
  • VDD: 2.8V output from onboard regulator (can also be used as input if VIN is disconnected)

GY-530 Wiring with ESP32

ESP32 Wiring Example:

  • VIN → 3.3V or 5V
  • GND → GND
  • SDA → GPIO21
  • SCL → GPIO22
  • XSHUT → Optional (pull high or connect to GPIO)
  • VDD → Optional (2.8V output)

GY-530 Troubleshooting Guide

Common Issues

🛑 No I²C Address Detected

📉 Poor Accuracy or Fluctuating Readings

⚠️ Sensor Keeps Resetting

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

GY-530 Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🐍

MicroPython Example

Python

Conclusion

The ESP32 GY-530 VL53L0X 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.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.