Datasheet
Python & CircuitPython
It's easy to use the VL53L0X sensor with Python and CircuitPython, and the Adafruit CircuitPython
VL53L0X (https://adafru.it/C62) module. This module allows you to easily write Python code that reads the range from
the sensor.
You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python
thanks to Adafruit_Blinka, our CircuitPython-for-Python compatibility library (https://adafru.it/BSN).
CircuitPython Microcontroller Wiring
First wire up a VL53L0X to your board exactly as shown on the previous pages for Arduino. Here's an example of
wiring a Feather M0 to the sensor with an I2C connection:
Board 3V to sensor VIN
Board GND to sensor GND
Board SCL to sensor SCL
Board SDA to sensor SDA
Python Computer Wiring
Since there's
dozens
of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms,
please visit the guide for CircuitPython on Linux to see whether your platform is supported (https://adafru.it/BSN).
Here's the Raspberry Pi wired with I2C:
Pi 3V3 to sensor VIN
Pi GND to sensor GND
Pi SCL to sensor SCL
Pi SDA to sensor SDA
CircuitPython Installation of VL53L0X Library
You'll need to install the Adafruit CircuitPython VL53L0X (https://adafru.it/C62) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/zdx). Our introduction guide has a great page on
how to install the library bundle (https://adafru.it/ABU) for both express and non-express boards.
Remember for non-express boards like the, you'll need to manually install the necessary libraries from the bundle:
© Adafruit Industries https://learn.adafruit.com/adafruit-vl53l0x-micro-lidar-distance-sensor-breakout Page 17 of 23










