Laser distance sensor GY-53 VL53L0X + STM32
Code: LA131111Free Shipping
From 100 EUR
30 Days to Return
For Registered
30 Days to Return
For Registered Customers
Free Shipping
For orders from 100 EUR
Customer Care
We handle complaints within 5 days
Quick dispatch
Within 24 hours
Related products
Product detailed description
Sensor calculates the distance from the delay between sending and returning the light beam.
It is resistant to interference and accuracy is not affected by surface reflectivity.
Specifications:
- Sensor used: VL53L0X
- Supply voltage: 3-5V
- Measuring distance: up to 200cm (dark, long distance mode)
- Accuracy: +/-3%:
- Size: 25.15.6x22mm
- Serial output, PWM output, I2C output.
Delivery components:
- 1pc Laser distance sensor GY-53 VL53L0X + STM32
Remark:
- This product is not a standalone functional unit and may require professional installation.
- Product images are for illustration purposes only and may sometimes differ from the actual appearance of the item. However, this does not change its basic properties.
Additional parameters
Category: | Motion, Distance, & Vibration Sensors |
---|---|
Warranty: | 2 years |
Weight: | 0.003 kg |
Output: | Digital, I2C, PWM, UART |
Sensor type: | Vzdálenost |
The item has been sold out… |
5,0
1 rating
Add a rating
5
4
3
2
1
5
MS
Milan Sedláček
Spokojen, nepotrebuji zadne knihovny mimo ovladadani displeje
#include
#include
//#define SH1106_128_32
Adafruit_SH1106 display(21,22);
uint16_t distance=0;
float mira;
int pin =5;
unsigned long duration,cass,cast;
void setup() {
Serial.begin(115200);
pinMode(pin, INPUT);
display.begin(SH1106_SWITCHCAPVCC, 0x3C);
display.setTextColor(WHITE);
display.setTextSize(1);
display.setCursor(1,0);
display.print("Display OK");
display.display();
display.clearDisplay();
delay(500);
}
void loop() {
cass = millis();
if(cass > cast){
cast = cass+100;
// uint16_t distance=0;
duration = pulseIn(pin, HIGH);
distance=duration;
mira = distance;
mira = mira/100;
Serial.print("distance: ");
Serial.print( distance);
Serial.print(" mm,time: ");
Serial.print( duration);
Serial.println("us");
}
if(mira < 200)
{
display.setTextColor(WHITE);
display.setTextSize(3);
display.setCursor(1,10);
display.print(mira,1);
display.setTextSize(1);
display.print(" cm");
display.display();
display.clearDisplay();
}
else{
display.setTextColor(WHITE);
display.setTextSize(2);
display.setCursor(1,10);
display.print("Mimo");
display.setCursor(10,30);
display.print("rozsah");
display.display();
display.clearDisplay();
}
}
jednoduche a rychle k pouziti.
Be the first who will post an article to this item!