The VL53L0X Laser Ranging Sensor Module (GY-56) is a compact, high-precision Time-of-Flight (ToF) distance measurement module that features UART communication and configurable switch output, making it one of the most versatile VL53L0X variants available. Built around the STMicroelectronics VL53L0X sensor IC, it uses 940nm infrared laser technology to measure absolute distances from 3cm to 200cm with millimeter-level accuracy. The GY-56 module is designed for applications requiring simple serial communication and independent threshold-based switching without the need for complex I²C programming.
At the heart of the module is the VL53L0X, a fully integrated ToF sensor that emits invisible 940nm infrared laser pulses and measures the time required for the light to reflect back from a target object. This Time-of-Flight principle enables the sensor to measure absolute distance regardless of the target‘s color, surface texture, or reflectivity. Unlike ultrasonic sensors that are affected by soft or angled surfaces, the VL53L0X delivers consistent, reliable readings across a wide range of targets.
The GY-56 version distinguishes itself from standard VL53L0X modules through two key features:
-
UART Communication — Instead of I²C, the module communicates via a TTL serial UART interface at 9600 baud. It continuously outputs distance data as ASCII text (e.g., “1234mm”), making it easy to read with any microcontroller or USB-to-serial adapter without complex library installation. This is ideal for beginners and for integration into systems that lack I²C capability.
-
Configurable Switch Output — The module includes a digital switch output that activates when the measured distance crosses a user-configurable threshold. The threshold is set via the onboard potentiometer or through UART commands, allowing the module to function as a standalone proximity switch without any microcontroller. This makes it perfect for automatic door controls, robotic obstacle detection, and presence-sensing applications.
The module operates from 3.3V to 5V DC and includes an onboard voltage regulator and level shifter, ensuring compatibility with both 3.3V (ESP32, Raspberry Pi) and 5V (Arduino Uno) microcontrollers. The compact form factor with mounting holes allows easy integration into robot chassis, sensor arrays, and custom enclosures. The laser class is Class 1, meaning it is completely eye-safe under normal use.
The VL53L0X GY-56 is widely used in obstacle avoidance robots, automatic door systems, presence detection, liquid level sensing, industrial automation, security systems, and educational STEM projects. It is also popular in IoT devices and embedded systems where simple serial distance output or threshold-based switching is required.
Important Note: The VL53L0X uses laser light for measurement, which can pass through transparent objects (glass, clear plastic) without reflecting, so it may not detect them reliably. The maximum range of 200cm is achievable in low-ambient-light conditions; bright sunlight can reduce the effective range. The module is not waterproof and should be kept dry. The UART output format and switch threshold configuration may vary by firmware version — refer to the module documentation for specific command details.
Whether you are building an obstacle-avoidance robot, an automatic door controller, or a simple proximity switch, the VL53L0X GY-56 Laser Ranging Sensor Module provides a reliable, easy-to-use solution with UART output and configurable switching. It is suitable for individual makers, students, and businesses purchasing in bulk for product development or educational programs.
Features
-
VL53L0X Time-of-Flight sensor — Accurate distance measurement from 3cm to 200cm
-
UART communication — 9600 baud TTL serial output, ASCII distance format
-
Configurable switch output — Threshold-based digital output for standalone switching
-
940nm infrared laser — Invisible, eye-safe Class 1 laser operation
-
Millimeter precision — Independent of target color and reflectivity
-
3.3V/5V compatible — Onboard voltage regulator and level shifter
-
Compact form factor — With mounting holes for easy integration
-
Simple interface — UART TX/RX plus switch output for easy integration
-
Wide application range — Obstacle avoidance, automatic doors, presence detection
-
GY-56 version — UART and switch output in one module
Technical Specifications
| # | Parameter | Specification |
|---|---|---|
| 1 | Sensor IC | STMicroelectronics VL53L0X |
| 2 | Measurement Range | 3cm – 200cm (up to 2m) |
| 3 | Laser Wavelength | 940nm (invisible infrared) |
| 4 | Communication Interface | UART (9600 baud, TTL) |
| 5 | Switch Output | Digital, threshold-configurable |
| 6 | Operating Voltage | 3.3V – 5V DC (onboard regulator) |
| 7 | Laser Class | Class 1 (eye-safe) |
| 8 | Pin Count | 4 pins (VCC, GND, TX, RX) + switch output |







