GY-530 VL53L0X Time-of-Flight Sensor

View on Amazon
Overview
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:
Get Your GY-530
Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.
GY-530 Pinout
The GY-530 breakout board has 6 pins for the VL53L0X Time-of-Flight sensor with onboard regulation and level shifting.
Visual Pinout Diagram

Pin Types
Quick Tips
on VL53L0X Time-of-Flight sensor,[object Object]
Object],Class 1 laser (940nm, eye-safe)
2.8V regulator and I²C level shifters,Available in blue and purple PCBs (functionally identical)
Pin Descriptions
| Pin Name | Type | Description | Notes |
|---|---|---|---|
1 VIN | Power | Power input (2.6V-5.5V). Wide voltage range with onboard regulator. | Use 3.3V or 5V depending on microcontroller. |
2 GND | Power | Ground connection. Connect to system ground. | |
3 SCL | I2C | I²C clock line (level-shifted to VIN voltage). | Connect to ESP32 GPIO 22. Level shifters included. |
4 SDA | I2C | I²C data line (level-shifted to VIN voltage). | Connect to ESP32 GPIO 21. Level shifters included. |
5 XSHUT | Control | Shutdown pin (active low). Pull low to disable sensor. | Optional - used for software reset or multi-sensor setups. |
6 VDD | Power | 2.8V output from onboard regulator. Can power external 2.8V devices. | Max 10mA output. Can also be used as input if VIN disconnected. |
Wiring GY-530 to ESP32
To interface the GY-530 with an ESP32 via I²C, connect VIN to 3.3V or 5V, GND to ground, SDA to GPIO 21, and SCL to GPIO 22.
Visual Wiring Diagram

Connection Status
Protocol
Pin Connections
| GY-530 Pin | Connection | ESP32 Pin | Description |
|---|---|---|---|
1 VIN Required | 3.3V or 5V | Power supply. Use 3.3V or 5V (onboard regulator handles both). | |
2 GND Required | GND | Ground connection. | |
3 SDA Required | GPIO 21 | I²C data line. Level shifters included on board. | |
4 SCL Required | GPIO 22 | I²C clock line. Level shifters included on board. | |
5 XSHUT Optional | Optional GPIO or VIN | Shutdown control. Pull high for normal operation. |
Object]
external pull-up resistors needed - included on breakout board
level shifters - safe for 3.3V and 5V systems
Adafruit_VL53L0X or VL53L0X_rasp library
30mm to 2000mm (optimal: 50-1200mm)
25° (best accuracy with perpendicular surfaces)
multiple sensors: use XSHUT to set unique I²C addresses
modes: Single, Continuous, Timed
±3% at distances > 200mm
GY-530 Troubleshooting
Common issues and solutions to help you get your sensor working
Common Issues
Issue: GY-530 not showing up on I²C scanner.
Solution: Ensure SDA/SCL are properly connected and powered, and that XSHUT is not held LOW.
Issue: Distance values jump around or seem wrong.
Solution: Check for surface reflectivity issues, increase timing budget, or average multiple readings.
Issue: Unstable readings or sensor dropping off I²C bus.
Solution: Use a stable 3.3V or 5V supply. Avoid floating XSHUT pin - tie it high if unused.
Debugging Tips
Use the Serial Monitor to check for error messages and verify the sensor's output. Add debug prints in your code to track the sensor's state.
Use a multimeter to verify voltage levels and check for continuity in your connections. Ensure the power supply is stable and within the sensor's requirements.
Additional Resources
GY-530 Programming Examples
Ready-to-use code examples for different platforms and frameworks
Wrapping Up GY-530
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.
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 GY-530 into your ESP32 project and bring your ideas to life!



