Ordered on weekdays before 14:00 = shipped the same day and delivered the next day in 98% of cases. Free returns 30-day reflection period 1-year warranty

Wiring diagram and code example

How to connect the TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate to an Arduino UNO or ESP32, with an example sketch you can upload straight away.

VL53L0X ToF Distance Sensor Demo

This project demonstrates real-time distance measurements using the VL53L0X Time-of-Flight sensor connected via I2C. The Arduino Uno reads millimeter distance data from the sensor and prints it to the Serial Monitor every 200 ms.

Wiring diagram: TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate on an Arduino UNO
Wiring diagram · Click to enlarge
Connection table: TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate on an Arduino UNO
Connection table · Click to enlarge
VL53L0X_ToF_Distance_Sensor_Demo.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : VL53L0X ToF Distance Sensor Demo
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : TOF200C VL53L0X Distance Sensor Time-Of-Flight high precision
 *  Libraries : Adafruit_VL53L0X 1.2.5
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include <Adafruit_VL53L0X.h>

Adafruit_VL53L0X lox = Adafruit_VL53L0X();

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    delay(1);
  }

  Serial.println(F("VL53L0X Distance Sensor Test"));

  if (!lox.begin()) {
    Serial.println(F("Failed to initialize VL53L0X sensor! Check wiring."));
    while (1) {
      delay(10);
    }
  }

  Serial.println(F("Sensor initialized successfully. Reading distance..."));
}

void loop() {
  VL53L0X_RangingMeasurementData_t measure;

  lox.rangingTest(&measure, false); // Pass true to enable debug output

  if (measure.RangeStatus != 4) { // Phase failures are status 4
    Serial.print(F("Distance: "));
    Serial.print(measure.RangeMilliMeter);
    Serial.println(F(" mm"));
  } else {
    Serial.println(F("Target out of range"));
  }

  delay(200);
}

Required libraries: Adafruit_VL53L0X 1.2.5

Wiring diagram and example code generated by Codey.online — https://www.codey.online

VL53L0X Distance Sensor with ESP32

This project measures distance in millimeters using the VL53L0X Time-of-Flight sensor connected via I2C. Open the Serial Monitor at 115200 baud to view real-time distance measurements.

Wiring diagram: TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate on an ESP32 DevKit V1
Wiring diagram · Click to enlarge
Connection table: TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate on an ESP32 DevKit V1
Connection table · Click to enlarge
VL53L0X_Distance_Sensor_with_ESP32.ino · compiled and verified
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : VL53L0X Distance Sensor with ESP32
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : TOF200C VL53L0X Distance Sensor Time-Of-Flight high precision
 *  Libraries : Adafruit_VL53L0X 1.2.5
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include "Adafruit_VL53L0X.h"

Adafruit_VL53L0X lox = Adafruit_VL53L0X();

void setup() {
  Serial.begin(115200);
  while (!Serial) { delay(1); }

  Serial.println("VL53L0X Distance Sensor Test");

  // Initialize I2C communication (ESP32 default: SDA=21, SCL=22)
  Wire.begin(21, 22);

  if (!lox.begin()) {
    Serial.println(F("Failed to boot VL53L0X. Check wiring!"));
    while (1);
  }

  Serial.println(F("Sensor initialized successfully."));
}

void loop() {
  VL53L0X_RangingMeasurementData_t measure;

  lox.rangingTest(&measure, false); // Pass true to get debug data printout

  if (measure.RangeStatus != 4) {  // Phase failures have status 4
    Serial.print("Distance (mm): ");
    Serial.println(measure.RangeMilliMeter);
  } else {
    Serial.println("Out of range");
  }

  delay(250);
}

Required libraries: Adafruit_VL53L0X 1.2.5

Wiring diagram and example code generated by Codey.online — https://www.codey.online

TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate

Mini laser distance sensor module with an accuracy of 1mm and long range.

Model: TOF200C VL53L0X
Voltage: 3V to 5V
Current consumption: 40 mA (max)
Distance: 3cm to 200cm

Connections:
- VIN
- GND
- SDA
- SCL
- INT
- SHUT


Communication: the I2C communication protocol (fully compatible with 3-5V systems)

Suitable for Arduino, ESP8266 and ESP32. Works well with the Adafruit_VL6180X library.

Multiple sensors on 1 I2C line possible because the sensors can be assigned an I2C address via software.

The VL53L0X Time Of Flight laser sensor is a very precise and reliable sensor that can be used for a wide range of applications, including distance measurement, motion detection, and navigation.

One of the main advantages of this sensor is its precision. The sensor uses laser technology to measure the distance to an object, which provides a much more accurate result than, for example, an infrared sensor. This makes the sensor suitable for use in drones, industrial automation, and robots.

In addition, the sensor is also very easy to use. It is compatible with a wide range of microcontroller platforms, including Arduino, Raspberry Pi, and STM32, and there are many examples and libraries available to help you integrate the sensor into your project.

Finally, the sensor is also very small and lightweight, making it easy to integrate into a wide range of applications. The 2 screw holes also make it very easy to securely mount this sensor.

Dimensions
Length: 1.3cm
Width: 1.04cm
Height: 0.32cm

  • Compact size
  • I2C communication
  • 3V to 5V
  • Small and lightweight
Playing loads the video from YouTube.

Why choose this product?

  • Very accurate – Measures distance with 1 mm accuracy.
  • Large range – Measures distances from 3 to 200 cm.
  • Wide compatibility – Works with Arduino, ESP8266 and ESP32.
  • Multiple sensors – Software addressable on one I2C line.
  • Compact and lightweight – Easy to integrate into projects.
  • Easy to mount securely – Equipped with 2 screw holes.
Specifications
Width1,04cm
ConnectionVIN, GND, SDA, SCL, INT, SHUT
InterfaceI2C
Suitable forArduino, ESP8266 and ESP32
Length1,3cm
Power consumption40 mA (max)
Height0.32 cm
ModelTOF200C VL53L0X
Distance3cm to 200cm

Frequently bought together

Total: € 22,14

Reviews

★★★★★ 5,0/5 1 review
  • ★★★★★Brenon EjupovicVerified purchase

    Very accurate.

Write a review
Your rating

Shipping & returns

Shipping

  • Parcel with track & trace€ 7,70Within 24 hours
  • Pick up at PostNL location€ 7,40Within 24 hours
  • Letterbox parcel€ 3,70Within 2 business days
  • Letterbox parcel 24 hours€ 4,55Within 24 hours
  • Pick up in storeFree
All about shipping

Returns

Not satisfied? You have 30 days after delivery to return the product.

All about returns

Recently viewed