Table of Contents

LamaPLC: VL6180X STMicroelectronics Time-of-Flight (ToF) sensor with I2C communication

VL6180X The VL6180X is a small optical sensor from STMicroelectronics that utilizes Time-of-Flight (ToF) technology to deliver precise distance and ambient light measurements. Unlike conventional IR sensors, it determines absolute distance regardless of the object's color or reflectivity.

Laser distance sensors:
Laser sensors, similar to IR sensors, use triangulation to measure distance. The sensor emits a laser beam that reflects off the measured surface and passes through a lens onto the CCD or CMOS sensor. As the surface moves closer or farther away, the projected point shifts position on the sensor. The electronics analyze this shift to calculate the distance.

VL6180X Pinout

Pin NameTypeDescription
VINPowerMain power supply input (typically 2.7V to 5.5V).
GNDPowerCommon ground for power and logic.
SCLI²C ClockI²C serial clock line. Logic level matches VIN.
SDAI²C DataI²C serial data line. Logic level matches VIN.
GPIO0 / SHDNControlShutdown/Chip Enable. Pulling this pin LOW puts the sensor into standby mode. It is usually pulled HIGH by default.

Arduino code

sample

Example codes

none

I²C topics on lamaPLC

PageDateTags
2025/05/31 21:56, , , , , , ,
2025/09/23 19:25, , , , , ,
2025/10/10 08:37, , , , , , , , ,
2026/02/10 16:02, , , , , , , , , , , , ,
2026/02/08 21:45, , , , , , , , , , ,
2026/02/08 21:45, , , , , , , , , ,
2026/02/08 21:45, , , , , , , ,
2025/05/31 21:32, , , , , , , ,
2026/02/08 21:45, , , , , , ,
2025/11/21 23:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 15:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/02/03 20:22, , , , , , , , ,
2026/02/08 21:45, , , , , , , ,
2025/11/22 21:26, , , ,
2026/02/08 21:45, , , , , , , ,
2025/09/23 19:08, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2025/10/09 21:58, , , , , ,
2025/12/04 00:34, , , , , , ,
2026/02/10 13:47, , , , , , , ,
2026/02/08 21:45, , , , , , , , ,
2026/02/08 21:45, , , , , , , , , , , , , ,
2025/11/22 19:12, , , ,
2025/11/22 18:48, , , , , ,
2025/10/09 16:03, , , ,
2026/02/09 16:05, , , , , , , , , , , , ,
2026/02/09 15:35, , , , , , , , , , ,
2026/02/09 15:48, , , , , , , ,
2026/02/06 16:40, , , , , , ,



This page has been accessed for: Today: 1, Until now: 3