Favorited
Favorite
3
Introduction
Note: This tutorial was originally written for the Qwiic Distance Sensor - VL53L1X. The Qwiic Distance Sensor - VL53L4CD is a cousin of the VL53L1X. Overall, the sensor functions the same except for a few differences in the specifications. We have included the VL53L4CD in this tutorial. If you are looking for a copy of the original tutorial, we recommend looking at the
Qwiic Distance Sensor VL53L1X Hookup Guide.
The VL53L1X and VL53L4CD are Time Of Flight (ToF) sensors. Both uses a VCSEL (vertical cavity surface emitting laser) to emit a class 1 IR laser (940 nm) and time the reflection to the target. (You can’t see the laser but cell phones can) What does all this mean? You can measure the distance to an object up to 4 meters away with millimeter resolution using the VL53L1X and up to 1.3 meters away with 1 millimeter resolution using the VL53L4CD! That’s pretty incredible.
31 available
SEN-14722
This SparkFun Distance Sensor Breakout utilizes the VL53L1X next generation ToF sensor module to give you the highly accurate…
10
In stock
SEN-18993
This SparkFun Distance Sensor Breakout utilizes the VL53L4CD next generation ToF sensor module to give you the highly accurat…
We’ve found the precision of the VL53L1X sensor to be 1mm but the accuracy is around ±5mm. The minimum read distance of this sensor is 4cm (or 40mm). For the VL53L4CD sensor, we've to also found the precision to be 1mm but the accuracy is around ±7mm. The minimum read distance of this sensor is 1cm (or 10mm). In this hookup guide, we'll go over how to read distance, change ranging modes, and check the status of our range measurement along with the sample rate. We'll also check out how to display distance and speed over an LCD display.
Required Materials
The Qwiic Distance Sensor does need a few additional items for you to get started. The RedBoard Plus is for the Arduino examples and the Qwiic SHIM is for the Raspberry Pi example (see note below). You may already have a few of these items, so feel free to modify your cart based on your needs. Additionally, there are also alternative parts options that are available as well (click button below to toggle options).
In stock
KIT-15081
To make it even easier to get started, we've assembled this Qwiic Cable Kit with a variety of Qwiic cables from 50mm to 500mm…
22
In stock
DEV-18158
The RedBoard Plus is an Arduino-compatible development board that has everything you need in an Arduino Uno with extra perks …
6
In stock
DEV-15794
The SparkFun Qwiic SHIM for Raspberry Pi is a small, easily removable breakout that easily adds a Qwiic connector to your Ras…
14
Qwiic compatible microcontrollers:
In stock
WRL-15663
The SparkFun ESP32 Thing Plus is the next step to get started with Espressif IoT ideations while still enjoying all the ameni…
14
In stock
DEV-18158
The RedBoard Plus is an Arduino-compatible development board that has everything you need in an Arduino Uno with extra perks …
6
In stock
DEV-14713
With a 32-bit ARM Cortex-M4F MCU, the SparkFun SAMD51 Thing Plus is one of our most powerful microcontroller boards yet!
2
In stock
DEV-14812
If you’re ready to step up your Arduino game from older 8-bit/16MHz microcontrollers, the SparkFun RedBoard Turbo is a form…
8
In addition we also offer, Qwiic compatible stackable shields for microcontrollers and pHATs for single board computers (like the
Raspberry Pi boards) that don't include a Qwiic connector.
In stock
DEV-14495
The SparkFun Qwiic Adapter provides the perfect means to make any old I2C board into a Qwiic enabled board.
5
Only 2 left!
DEV-14352
The SparkFun Qwiic Shield is an easy-to-assemble board that provides a simple way to incorporate the Qwiic Connect System wit…
9
Retired
DEV-14477
The SparkFun Qwiic Shield for Photon is an easy-to-assemble board that provides a simple way to incorporate the Qwiic System …
Retired
In stock
DEV-14459
The SparkFun Qwiic HAT for Raspberry Pi is the quickest and easiest way to make your way into the Qwiic ecosystem and still u…
5
In stock
DEV-15794
The SparkFun Qwiic SHIM for Raspberry Pi is a small, easily removable breakout that easily adds a Qwiic connector to your Ras…
14
In stock
DEV-15945
The SparkFun Qwiic pHAT V2 for Raspberry Pi is the quickest and easiest way to make your way into the Qwiic ecosystem and sti…
2
In stock
DEV-15316
The SparkFun Servo pHAT for Raspberry Pi allows your Raspberry Pi to control up to 16 servo motors in a straightforward manne…
5
You will also need a Qwiic cable to connect to your Qwiic Distance Sensor, choose a length that suits your needs.
In stock
PRT-14427
This is a 100mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
In stock
PRT-14426
This is a 50mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together …
Retired
PRT-14428
This is a 200mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
Retired
Retired
PRT-14429
This is a 500mm long 4-conductor cable with 1mm JST termination. It’s designed to connect Qwiic enabled components together…
1
Retired
Alternative Parts (Toggle)
Raspberry Pi Example: If you don't already have them, you will need a
Raspberry Pi and
standard peripherals. An example setup is listed below. (
The Qwiic Distance Sensor and Python library have not been tested on the newly released Raspberry Pi 4 because we don't carry it in out catalog yet.)
Suggested Reading
If you're unfamiliar with jumper pads, I2C, Qwiic, or Python be sure to checkout some of these foundational tutorials.
Serial Communication
Asynchronous serial communication concepts: packets, signal levels, baud rates, UARTs and more!
Logic Levels
Learn the difference between 3.3V and 5V devices and logic levels.
I2C
An introduction to I2C, one of the main embedded communications protocols in use today.
Serial Terminal Basics
This tutorial will show you how to communicate with your serial devices using a variety of terminal emulator applications.
Raspberry Pi SPI and I2C Tutorial
Learn how to use serial I2C and SPI buses on your Raspberry Pi using the wiringPi I/O library for C/C++ and spidev/smbus for Python.
Qwiic pHAT for Raspberry Pi Hookup Guide
Get started interfacing your Qwiic enabled boards with your Raspberry Pi. The Qwiic pHAT connects the I2C bus (GND, 3.3V, SDA, and SCL) on your Raspberry Pi to an array of Qwiic connectors.
RedBoard Plus Hookup Guide
This tutorial covers the basic functionality of the RedBoard Plus. This tutorial also covers how to get started blinking an LED and using the Qwiic system.
The Qwiic Distance Sensor is intended for the Qwiic connect system. We recommend familiarizing yourself with the Logic Levels and I2C tutorials before using it. Click on the banner above to learn more about our Qwiic products.