The VL53L0X is a Time of Flight distance sensor like no other you've used!
The sensor contains a very tiny invisible laser source, and a matching sensor. The VL53L0X can detect the "time of flight", or how long the light has taken to bounce back to the sensor. Since it uses a very narrow light source, it is good for determining distance of only the surface directly in front of it. Unlike sonars that bounce ultrasonic waves, the 'cone' of sensing is very narrow. Unlike IR distance sensors that try to measure the amount of light bounced, the VL53L0x is much more precise and doesn't have linearity problems or 'double imaging' where you can't tell if an object is very far or very close.
This sensor can handle about 50mm to 1200mm of range distance. It also includes a lux sensor. The sensor is small and easy to use in any robotics or interactive project. Since it needs 2.8V power and logic Adafruit put the little fellow on a breakout board with a regulator and level shifting. You can use it with any 3-5V power or logic microcontroller with no worries. Each order comes with a small piece of header. Solder the header onto your breakout board with your iron and some solder and wire it up for instant distance-sensing-success!
Communicating to the sensor is done over I2C with an API written by ST, so its not too hard to port it to your favorite microcontroller. Adafruit have written a wrapper library for Arduino so you can use it with any of your Arduino-compatible boards.
Check out the tutorial for code, schematics, diagrams and more!
TECHNICAL DETAILS
Sensing capabilities:
The sensor can measure approximately 30mm to 1.2 meter in default mode.
In 'long range' mode you can detect as far as 1.5 to 2 meters on a nice white reflective surface.
Depending on ambient lighting and distance, you'll get 3 to 12% ranging accuracy - better lighting and shiny surfaces will give you best results. Some experimentation will be necessary since if the object absorbs the laser light you won't get good readings.
Max ranging capabilities with 33ms timing budget
Target reflectance level (Full FOV)
Conditions
Indoor (2)
Outdoor overcast (2)
White Target (88%)
Typical
200cm+ (1)
80cm
Minimum
120cm
60cm
Grey Target (17%)
Typical
80cm
50cm
Minimum
70cm
40cm
Note (1): using long range API profile
Ranging accuracy
Indoor (no infrared)
Outdoor
Target reflectance level (Full FOV)
Distance
33ms
66ms
Distance
33ms
66ms
White Target (88%)
at 120cm
4%
3%
at 60cm
7%
6%
Grey Target (17%)
at 70cm
7%
6%
at 40cm
12%
9%
Product Dimensions: 21.0mm x 18.0mm x 2.8mm / 0.8" x 0.7" x 0.1"
Product Weight: 1.3g / 0.0oz