Need help with VL6180 ToF Sensor

I’ve bought a VL6180 sensor to work along with an Arduino Uno but i’m not sure how to go about with the programming codes to measure distance in millimetres. I have difficulty understanding the documents provided. I’m quite new with programming and gladly appreciate any assistance :blush:

Hello Dinie,

If you run the example code “SparkFun_VL6180X_demo.ino” the serial output is in millimeters by default. You should be able to upload and hit the ground running.

If you haven’t already, the [Hook-up Guide would be a great source for more information to get started using this product.](VL6180 Hookup Guide - SparkFun Learn)

Hi Brandon!

Cheers for the heads up!

Hey!

How do I go about performing ‘range measurement in continuous mode’ and ‘manual offset calibration procedure’ in the Arduino Uno programming codes? Do I simply follow the steps as shown in the ‘Application Note’ and input them into the codes? Are there any examples I could look upon how the code structure works?

Thanks! :slight_smile: