Mini laser distance sensor module for accurate distance measurement, motion detection and navigation with Arduino, ESP8266 and ESP32.
SKU: OT5864 Article number: XR357 EAN: 8720828223901 Location: H08.02
Alternative
TOF400C-VL53L1X Distance Sensor Time-Of-Flight 4-400cm
€ 18,15
View this alternative
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.
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.
/*
* ==================================================================
* 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
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.
/*
* ==================================================================
* 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
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
| Width | 1,04cm |
|---|---|
| Connection | VIN, GND, SDA, SCL, INT, SHUT |
| Interface | I2C |
| Suitable for | Arduino, ESP8266 and ESP32 |
| Length | 1,3cm |
| Power consumption | 40 mA (max) |
| Height | 0.32 cm |
| Model | TOF200C VL53L0X |
| Distance | 3cm to 200cm |
Very accurate.
TOF200C VL53L0X Distance Sensor Time-Of-Flight very accurate