Component guide · Intermediate · 3 min read
VL53L5CX and VL53L8CX 8x8 Multi-Zone ToF Imagers and TMF8820 dToF Sensor

By Geekobot Learning Team · Updated 29 Oct 2026
On this page
Multi-zone ToF sensors give a small depth image instead of one distance. The ST VL53L5CX and VL53L8CX return 4 x 4 or 8 x 8 zones (16 or 64 distances) up to about 4 m, with a 63 to 65 degree field of view. That is enough to detect gestures, find where an object is, or avoid obstacles with a robot. The ams TMF8820 gives a 3 x 3 grid with low power.
Key specs at a glance
- Zones
- 4x4 or 8x8 (VL53L5CX, VL53L8CX), 3x3 (TMF8820)
- Range
- About 2 cm to 4 m
- Field of view
- About 63 to 65 degrees diagonal
- Rate
- Up to 60 Hz (4x4), 15 Hz (8x8)
- Interface
- I2C (both), SPI (VL53L8CX)
- Firmware
- About 90 kB loaded at start-up
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
What the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF is
The ST VL53L5CX and VL53L8CX are multizone ToF sensors that measure distance in an 8×8 grid, giving a small depth image for gestures, robots and people counting.
The VL53L5CX and VL53L8CX load firmware from the microcontroller each time they start, which needs RAM and a few seconds. ESP32 and other 32-bit boards handle it; an Uno does not.
Speed the I2C bus to 400 kHz or 1 MHz for 8 x 8 at 15 Hz.
VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF pinout
The pins on the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF and what each one does.
| Pin | Function |
|---|---|
| VIN / 3V3 | Supply |
| GND | Ground |
| SDA, SCL | I2C |
| LPn | Low power (enable) |
| INT | Data ready |
- VIN / 3V3
- Supply
- GND
- Ground
- SDA, SCL
- I2C
- LPn
- Low power (enable)
- INT
- Data ready
Wiring the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF
Connect the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF like this.
| VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF pin | Arduino Uno | ESP32 |
|---|---|---|
| VIN | 3.3 V (or 5 V on Qwiic boards with regulator) | 3.3 V |
| GND | GND | GND |
| SDA | Not suitable on Uno (RAM) | GPIO 21 |
| SCL | Not suitable on Uno (RAM) | GPIO 22 |
- VIN
- Arduino Uno:
- 3.3 V (or 5 V on Qwiic boards with regulator)
- ESP32:
- 3.3 V
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
- SDA
- Arduino Uno:
- Not suitable on Uno (RAM)
- ESP32:
- GPIO 21
- SCL
- Arduino Uno:
- Not suitable on Uno (RAM)
- ESP32:
- GPIO 22
Example code
A minimal sketch to check the part works.
#include <SparkFun_VL53L5CX_Library.h>
SparkFun_VL53L5CX tof;
VL53L5CX_ResultsData d;
void setup() {
Serial.begin(115200);
Wire.begin(); Wire.setClock(400000);
tof.begin(); // uploads firmware, takes a few seconds
tof.setResolution(8 * 8);
tof.setRangingFrequency(15);
tof.startRanging();
}
void loop() {
if (tof.isDataReady() && tof.getRangingData(&d)) {
for (int y = 0; y < 8; y++) {
for (int x = 0; x < 8; x++) { Serial.print(d.distance_mm[y * 8 + x]); Serial.print('\t'); }
Serial.println();
}
Serial.println();
}
}Setup and tuning
VCC, GND, SDA, SCL and LPn; I2C at up to 1 MHz.
use the SparkFun VL53L5CX or STM32duino libraries.
the sensor loads firmware at start-up, which takes a moment.
choose 4×4 for speed or 8×8 for detail.
about 45° to 65° diagonal.
What you need
Shop this list6 of 6 found in our store · ₹9,385
SparkFun VL53L5CX Qwiic ToF Imager – 8×8 Multi-Zone Distance Sensor Module: the part this guide coversSparkFun VL53L5CX Qwiic ToF Imager – 8×8 Multi-Zone Distance Sensor Module₹4,559
VL53L8CX Laser Ranging Module + VL53L8 Cover Film – 64-Zone ToF Sensor, I2C/SPI Interface: another version this guide coversVL53L8CX Laser Ranging Module + VL53L8 Cover Film – 64-Zone ToF Sensor, I2C/SPI Interface₹1,989
SparkFun Qwiic dToF Imager Sensor – TMF8820, Time-of-Flight: another version this guide coversSparkFun Qwiic dToF Imager Sensor – TMF8820, Time-of-Flight₹2,289
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
4-channel logic level converter (BSS138): to connect 5 V and 3.3 V signals safely4-Channel Logic Level Converter (BSS138)₹20
Alternatives and when to choose them
- VL53L1X: single zone, simpler.
- ToF depth cameras: full depth images.
- VL53L4CX: one zone, longer range.
Common mistakes to avoid
- Slow I2C bus.
- Insufficient RAM on small boards.
- Wrong LPn wiring.
- Expecting a camera-like image.
Frequently asked questions
What does multizone mean?
It measures distance in each zone of a 4×4 or 8×8 grid.
Why is start-up slow?
The sensor firmware is uploaded over I2C at boot.
What is the difference between L5CX and L8CX?
The VL53L8CX handles ambient light better and is faster.
Can it detect hand gestures?
Yes, by tracking how a hand moves across the zones.
Can I use it with ESP32?
Yes. The ESP32 has enough RAM for the firmware upload and runs it at 3.3 V.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
