DISTANCE MEASUREMENT WITH VL53LOX

This is the basic of distance measurement using time of flight sensors. This sensor can replace ultrasonic sensors in distance measurement. The advantage of this sensor compared to ultrasonic is that it does not occur in multi reflection, also it is smaller in size compare to ultrasonic sensor. This sensor is still reliable up to 1.2 meters. This sensor also can be used in more than one sensor.
For setup more than one sensor see on

VL53L0X MULTI SENSOR

example for very simple application see on https://arduinoproyek.wordpress.com/rgb-led-indicator-to-distance-by-vl53l0x/

53VL0X

/* This example shows how to use continuous mode to take

range measurements with the VL53L0X. It is based on

vl53l0x_ContinuousRanging_Example.c from the VL53L0X API.

The range readings are in units of mm. */

#include <Wire.h>

#include <VL53L0X.h>

VL53L0X sensor;

void setup()

{

Serial.begin(9600);

Wire.begin();

sensor.init();

sensor.setTimeout(100);

// Start continuous back-to-back mode (take readings as

// fast as possible). To use continuous timed mode

// instead, provide a desired inter-measurement period in

// ms (e.g. sensor.startContinuous(100)).

sensor.startContinuous();

}

void loop()

{

Serial.print(sensor.readRangeContinuousMillimeters());

if (sensor.timeoutOccurred()) { Serial.print(” TIMEOUT”); }

Serial.println();

}

see demonstration on