šŸŽ‰
ESPBoards Store is Now Open! Find the best ESP32, ESP8266 boards & accessories

VL6180X Time-of-Flight Sensor

VL6180X Time-of-Flight Sensor image

View on Amazon

Overview

The VL6180X is a short-range proximity and ambient light sensor that combines a 3-in-1 system: IR emitter, sensor, and ranging processor. It is ideal for gesture recognition, presence detection, and compact robotics applications.

About VL6180X Time-of-Flight Sensor

šŸ“ VL6180X Sensor Overview

  • Range: 0cm to 50cm (Max)
  • Interface: I²C digital communication
  • Resolution: 1mm precision
  • Field of View: 25°
  • Operating Voltage: 2.8V to 5V (via onboard regulator)
  • Typical Current: ~20–30mA
  • Wavelength: 850nm IR
  • Integrated Ambient Light Sensor
Where to Buy

Get Your VL6180X

VL6180X Time-of-Flight Sensor

Starting from

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

VL6180X Pinout

The VL6180X pinout includes I2C communication pins (SDA, SCL), power supply (VIN, GND), shutdown pin (SHDN), interrupt pin (GPIO), and 2.8V regulator output for short-range proximity sensing and ambient light detection.

Visual Pinout Diagram

Pinout Diagram Primary
VL6180X Time-of-Flight Sensor pinout
7
Total Pins

Pin Types

Power
1
Control
1

Quick Tips

Short-range

Time-of-Flight (ToF) proximity sensor,Measurement range: 0 mm to 200 mm (20 cm max),Resolution: 1 mm precision,Field of View: 25°

Operating

voltage: 2.8V to 5V (via onboard regulator),3-in-1 system: IR emitter, sensor, and ranging processor,Integrated ambient light sensor (ALS)

I2C

address: 0x29 (default),IR wavelength: 850 nm,Current consumption: ~20-30 mA during operation

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VIN
Power

Power supply input (2.8V to 5V)

Onboard regulator supports wide voltage

2 GND
Ground

Ground connection

Common ground

3 SDA
I2C Data

I2C Serial Data line

Bidirectional data (requires pull-up)

4 SCL
I2C Clock

I2C Serial Clock line

Clock signal (requires pull-up)

5 SHDN
Control

Shutdown pin (active low)

Tie high to enable sensor

6 GPIO
Interrupt

Interrupt or general I/O pin

Optional for interrupts or alerts

7 2v8
Power Out

Regulated 2.8V output

Can power external components

Connection Guide

Wiring VL6180X to ESP32

Connect the VL6180X to your ESP32 via I2C (SDA and SCL pins). This sensor combines short-range ToF distance measurement (up to 20 cm) with an integrated ambient light sensor. The onboard regulator accepts 2.8V to 5V input.

Visual Wiring Diagram

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

Connection Status

Required
4
Optional
2

Protocol

I2C

Pin Connections

VL6180X PinConnectionESP32 PinDescription
1 VIN Required
3.3V or 5V

Power supply (2.8V to 5V)

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 SHDN Optional
3.3V or GPIO

Shutdown control (tie high to enable)

6 GPIO Optional
GPIO (optional)

Interrupt/alert output

Short-range

sensor: 0-20 cm (best for proximity detection)

I2C

address: 0x29 (same as VL53L0X and VL53L1X)

Integrated

ambient light sensor (ALS) for light measurement

Onboard

regulator: 2.8V to 5V input (flexible power)

2v8

pin provides regulated 2.8V output

Pull-up

resistors typically included on module

SHDN

pin: Tie high (3.3V/5V) to enable sensor

GPIO

pin can signal measurement ready or threshold alerts

Use

Adafruit_VL6180X library for Arduino/ESP32

Ideal

for gesture recognition and presence detection

Better

in close-range applications than VL53L0X

850

nm IR wavelength (different from VL53 series 940 nm)

Help & Support

VL6180X Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

VL6180X Programming Examples

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

Summary

Wrapping Up VL6180X

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