Mini laser afstandssensor module voor nauwkeurige afstandsmeting, bewegingsdetectie en navigatie met Arduino, ESP8266 en ESP32.
SKU: OT5864 Número do artigo: XR357 EAN: 8720828223901 Localização: H08.02
Alternativa
Sensor de distância TOF400C-VL53L1X Time-Of-Flight 4-400cm
€ 18,15
Ver esta alternativa
Como ligar o TOF200C VL53L0X Sensor de distância Time-Of-Flight muito preciso a um Arduino UNO ou ESP32, com um sketch de exemplo que podes carregar já.
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);
}
Bibliotecas necessárias: 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);
}
Bibliotecas necessárias: Adafruit_VL53L0X 1.2.5
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Módulo mini sensor de distância a laser com uma precisão de 1mm e grande alcance.
Modelo: TOF200C VL53L0X
Tensão: 3V até 5 V
Consumo de corrente: 40 mA (máx)
Distância: 3cm até 200cm
Ligações:
- VIN
- GND
- SDA
- SCL
- INT
- SHUT
Comunicação: o protocolo de comunicação I2C (totalmente compatível com sistema 3-5 v)
Adequado para Arduino, ESP8266 e ESP32. Funciona bem com a biblioteca Adafruit_VL6180X.
Vários sensores numa única linha I2C são possíveis porque os sensores podem ser configurados por software com um endereço I2C.
O sensor laser Time Of Flight VL53L0X é um sensor muito preciso e fiável que pode ser usado para uma ampla gama de aplicações, incluindo medição de distância, deteção de movimento e navegação.
Uma das principais vantagens deste sensor é a sua precisão. O sensor utiliza tecnologia laser para medir a distância até um objeto, proporcionando um resultado muito mais preciso do que, por exemplo, um sensor infravermelho. Isto torna o sensor adequado, por exemplo, para uso em drones, automação industrial e robôs.
Além disso, o sensor também é muito fácil de usar. É compatível com uma ampla gama de plataformas de microcontroladores, incluindo Arduino, Raspberry Pi e STM32, e existem muitos exemplos e bibliotecas disponíveis para o ajudar a integrar o sensor no seu projeto.
Por fim, o sensor também é muito pequeno e leve, tornando-o fácil de integrar numa ampla gama de aplicações. Os 2 furos para parafuso também tornam muito fácil fixar este sensor de forma segura.
Dimensões
Comprimento: 1,3cm
Largura: 1,04cm
Altura: 0,32cm
| Largura | 1,04cm |
|---|---|
| Conexão | VIN, GND, SDA, SCL, INT, SHUT |
| Interface | I2C |
| Adequado para | Arduino, ESP8266 e ESP32 |
| Comprimento | 1,3cm |
| Consumo de energia | 40 mA (máx) |
| Altura | 0,32 cm |
| Modelo | TOF200C VL53L0X |
| Distância | 3cm a 200cm |
muito preciso.
Não ficas satisfeito? Tens 30 dias após a receção para devolver o produto.
Tudo sobre devoluções
TOF200C VL53L0X Sensor de distância Time-Of-Flight muito preciso