VL6180 Hookup Guide

Contributors: CaseyTheRobot
Favorited Favorite 6

Library Install and Sample Sketch

To use either the VL6180 Sensor or Breakout, you will need some supporting software. If you are using an Arduino, then you are in luck! We created an Arduino library that makes the VL6180 easy to use. Click the button below to download the latest version of the VL6180 Library.

Unzip the downloaded file and navigate to \\SparkFun_VL6180_Time_of_Flight_Library-master.zip\SparkFun_VL6180_Time_of_Flight_Library-master\Libraries.

alt text

Follow this guide on installing Arduino libraries to install the files within the SFE_VL6180x directory as an Arduino library.

There is a sample sketch associated with the Library. VL6180X_demo reads the distance and light outputs and reports them to the screen.

alt text

Demo Program Found in Examples

alt text

Demo Program Output