This project uses a Raspberry Pi Pico to interface with the Adafruit VL53L1X Time of flight sensor module. Measurements are displayed on a SSD1306-based OLED Display. The code is written for the Arduino IDE. Please see Pi Pico Time-of-Flight Project in Arduino IDE for a complete walk-through of the project.
- Raspberry Pi Pico DigiKey
- Adafruit VL53L1X Time of flight sensor module Adafruit
- 0.91 inch, 128x32 pixel OLED monochrome display Amazon
The VL53L1X sensor module and SSD1306 display are connected via I2C. A momentary pushbutton on one GPIO pin cycles through the display modes. See link above and code for more specific description.
- arduino-pico - RP2040 board support for Arduino IDE GitHub
- Wire.h – to handle the I2C communications (native to Arduino IDE)
- Adafruit VL53L1X – for the time-of-flight sensor GitHub
- Adafruit GFX Library – Display core graphics library GitHub
- Adafruit SSD1306 – Or other library to support your display driver GitHub