Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›VL53L5CX and VL53L8CX 8x8 Multi-Zone ToF Imagers

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF isVL53L5CX, VL53L8CX and TMF8820 multi-zone ToF pinoutWiring the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToFExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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.

  • Option 1SparkFun VL53L5CX Qwiic ToF Imager – 8×8 Multi-Zone Distance Sensor Module₹4,559
  • Option 2VL53L8CX Laser Ranging Module + VL53L8 Cover Film – 64-Zone ToF Sensor, I2C/SPI Interface₹1,989
  • Option 3SparkFun Qwiic dToF Imager Sensor – TMF8820, Time-of-Flight₹2,289
01

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.

02

VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF pinout

The pins on the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF and what each one does.

PinFunction
VIN / 3V3Supply
GNDGround
SDA, SCLI2C
LPnLow power (enable)
INTData ready
PinFunction
VIN / 3V3
Supply
GND
Ground
SDA, SCL
I2C
LPn
Low power (enable)
INT
Data ready
03

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 pinArduino UnoESP32
VIN3.3 V (or 5 V on Qwiic boards with regulator)3.3 V
GNDGNDGND
SDANot suitable on Uno (RAM)GPIO 21
SCLNot 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
04

Example code

A minimal sketch to check the part works.

Print an 8x8 depth grid (SparkFun VL53L5CX library, ESP32) · Arduino C++Verify & upload in Electrolark
#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();
  }
}
05

Setup and tuning

Wiring

VCC, GND, SDA, SCL and LPn; I2C at up to 1 MHz.

Library

use the SparkFun VL53L5CX or STM32duino libraries.

Firmware load

the sensor loads firmware at start-up, which takes a moment.

Resolution

choose 4×4 for speed or 8×8 for detail.

Field of view

about 45° to 65° diagonal.

06

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
07

Alternatives and when to choose them

  • ✓VL53L1X: single zone, simpler.
  • ✓ToF depth cameras: full depth images.
  • ✓VL53L4CX: one zone, longer range.
08

Common mistakes to avoid

  • !Slow I2C bus.
  • !Insufficient RAM on small boards.
  • !Wrong LPn wiring.
  • !Expecting a camera-like image.
09

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

  • SparkFun VL53L5CX Qwiic ToF Imager – 8×8 Multi-Zone Distance Sensor Module
    ₹4,559View
  • VL53L8CX Laser Ranging Module + VL53L8 Cover Film – 64-Zone ToF Sensor, I2C/SPI Interface
    ₹1,989View
  • SparkFun Qwiic dToF Imager Sensor – TMF8820, Time-of-Flight
    ₹2,289View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 0.96" OLED Display 128x64
    ₹139View
  • 4-Channel Logic Level Converter (BSS138)
    ₹20View
Shop Infrared, ToF & LiDAR Distance Sensors

Keep learning

Component guideIntermediateVL53L1X ToF sensorThe VL53L1X is a laser time-of-flight distance sensor that measures up to about 4 m with millimetre resolution over I2C (address 0x29).3 min read · SensorsComponent guideIntermediateVL53L4CX, TMF8701, TMF8801 Time-of-Flight Distance SensorsThese I2C time-of-flight sensors measure distance with a laser and a fast timer.3 min read · SensorsComponent guideIntermediate3D Depth SensorsDepth cameras give a distance for every pixel, so a robot can see shapes, steps and people in 3D.3 min read · RoboticsConcept explainerIntermediateI2C ExplainedI2C is a two-wire bus that lets one microcontroller talk to many sensors and displays using a data line (SDA) and a clock line (SCL).4 min read · Electronics Fundamentals

Sources

  • ST VL53L5CX and VL53L8CX datasheets
  • ams TMF8820 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToF isVL53L5CX, VL53L8CX and TMF8820 multi-zone ToF pinoutWiring the VL53L5CX, VL53L8CX and TMF8820 multi-zone ToFExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)3 items · ₹4,783

SparkFun VL53L5CX Qwiic ToF Imager – 8×8 Multi-Zone Distance Sensor Module · 4-Channel Logic Level Converter (BSS138) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

8 x 8 zones in mm. The box in the middle is a hand; the rest is a wall about 1.85 m away.

Serial monitor115200 baud
1844	1846	1844	1847	1847	1845	1856	1845	
1855	1862	302	302	300	298	1857	1858	
1870	1866	302	303	298	302	1862	1864	
1870	1869	299	303	301	304	1869	1869	
1881	1879	301	301	298	302	1875	1882	
1887	1881	300	299	301	298	1887	1885	
1894	1888	302	299	296	303	1892	1896	
1901	1902	1899	1894	1896	1897	1893	1903	

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question