This distance sensor contains a tiny laser source, and a matching sensor. It can detect the "time of flight", or how long the light has taken to bounce back to the sensor off an obstacle. 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 VL6180X 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 is similar to the VL53L0X sensor, and can handle about 5mm to 100mm of range distance. We've seen up to 150-200mm with good ambient conditions. It also includes a lux sensor. If you need a larger range, check out the VL53L0X which can measure 50 - 1200 mm.
The sensor is small and easy to use in any robotics or interactive project. Module comes with a regulator and level shiftor so you can use it with any 3-5V power or logic microcontroller with no worries. Each module 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.
Libraries and Sample codes are available for Arduino and Raspberry Pi, which makes it easy to use the sensor in your project.
- Three Sensors in a Single Package: Proximity sensor, Ambient Light Sensor and VCSEL light source
- Fast, accurate distance ranging. Measures absolute range from 0 to above 10 cm (ranging beyond 10cm is dependent on conditions).
- Distance Detection is Independent of object reflectance and color
- Ambient light rejection
- Distance and signal level can be used by host system to implement gesture recognition
- Ambient light sensor with High dynamic range
- Accurate/sensitive in ultra-low light
- Light Sensor Calibrated output value in lux