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. ›VL53L1X ToF sensor

Component guide · Intermediate · 3 min read

VL53L1X ToF sensor

Pinout, Wiring and Code

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 VL53L1X ToF sensor isVL53L1X ToF sensor pinoutWiring the VL53L1X ToF sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

The VL53L1X is a laser time-of-flight distance sensor that measures up to about 4 m with millimetre resolution over I2C (address 0x29). It times invisible 940 nm light pulses, so it works on most surfaces and colours and has a narrow 27 degree field of view. Choose short, medium or long distance modes depending on range and ambient light.

Key specs at a glance

Range
Up to about 4 m (long mode, dark), 1.3 m in short mode
Resolution
1 mm
Field of view
27°, adjustable region of interest (down to 4x4 SPADs)
Rate
Up to 50 Hz
Interface
I2C, address 0x29 (changeable in software)
Supply
2.6 to 3.5 V chip; most modules accept 3.3 to 5 V

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1TOF400C VL53L1X Laser Ranging Sensor Module – I2C Interface₹559
  • Option 2Waveshare VL53L1X ToF Distance Sensor 4m Range – I2C Interface₹1,629
  • Option 3Adafruit VL53L1X Time of Flight Distance Sensor – ~30 to 4000mm – STEMMA QT / Qwiic₹2,506
  • Option 4SparkFun VL53L1X ToF Distance Sensor Breakout – 4-Meter Range, Qwiic & I2C₹4,179
  • Option 5Pimoroni VL53L1X Time of Flight (ToF) Distance Sensor Module – I2C Interface₹1,773
01

What the VL53L1X ToF sensor is

A time-of-flight sensor sends short laser pulses and counts how long the light takes to bounce back. The VL53L1X is the longer-range sibling of the VL53L0X, reaching about 4 m indoors.

It suits robot obstacle detection, people counting at doorways, liquid level in tanks and drone height hold, where ultrasonic sensors are too wide or too slow.

02

VL53L1X ToF sensor pinout

The pins on the VL53L1X ToF sensor and what each one does.

PinFunction
VIN3.3 to 5 V (module)
GNDGround
SDAI2C data
SCLI2C clock
XSHUTShutdown input, LOW = off (used to set addresses)
GPIO1 (INT)Data ready interrupt
PinFunction
VIN
3.3 to 5 V (module)
GND
Ground
SDA
I2C data
SCL
I2C clock
XSHUT
Shutdown input, LOW = off (used to set addresses)
GPIO1 (INT)
Data ready interrupt
03

Wiring the VL53L1X ToF sensor

For several sensors, hold all XSHUT pins LOW, then enable them one at a time and give each a new address before enabling the next.

VL53L1X ToF sensor pinArduino UnoESP32
VCC5V (or 3.3V)3V3
GNDGNDGND
SDAA4GPIO 21
SCLA5GPIO 22
XSHUTD4 (optional)GPIO 4 (optional)
VCC
Arduino Uno:
5V (or 3.3V)
ESP32:
3V3
GND
Arduino Uno:
GND
ESP32:
GND
SDA
Arduino Uno:
A4
ESP32:
GPIO 21
SCL
Arduino Uno:
A5
ESP32:
GPIO 22
XSHUT
Arduino Uno:
D4 (optional)
ESP32:
GPIO 4 (optional)
04

Example code

Install the Pololu VL53L1X library. Longer timing budgets give more stable readings at long range.

Read distance in millimetres · Arduino C++Verify & upload in Electrolark
#include <Wire.h>
#include <VL53L1X.h>              // Pololu VL53L1X library

VL53L1X tof;

void setup() {
  Serial.begin(115200);
  Wire.begin();
  Wire.setClock(400000);
  if (!tof.init()) { Serial.println("VL53L1X not found"); while (1); }
  tof.setDistanceMode(VL53L1X::Long);
  tof.setMeasurementTimingBudget(50000);   // µs
  tof.startContinuous(50);                 // ms between readings
}

void loop() {
  Serial.print(tof.read());
  Serial.println(" mm");
}
05

Setup and tuning

Distance mode

short mode resists sunlight best; long mode reaches furthest indoors.

Cover glass

a protective window causes reflections and needs crosstalk calibration; keep it clean and close to the sensor.

Remove the protective film

on new modules, or readings stay short.

Target size

at 4 m the 27° cone is about 1.9 m wide; narrow the ROI to aim at smaller targets.

06

What you need

Shop this list6 of 7 found in our store · ₹8,668

  • TOF400C VL53L1X laser ranging module: low-cost breakoutTOF400C VL53L1X Laser Ranging Sensor Module – I2C Interface₹559Closest match, check the specs
  • Waveshare VL53L1X ToF sensor 4 m: Waveshare boardWaveshare VL53L1X ToF Distance Sensor 4m Range – I2C Interface₹1,629Closest match, check the specs
  • Adafruit VL53L1X ToF sensor (STEMMA QT): plug-in cableFind this part
  • SparkFun VL53L1X ToF breakout (Qwiic): Qwiic cableSparkFun VL53L1X ToF Distance Sensor Breakout – 4-Meter Range, Qwiic & I2C₹4,179
  • Pimoroni VL53L1X ToF module: Breakout Garden boardPimoroni VL53L1X Time of Flight (ToF) Distance Sensor Module – I2C Interface₹1,773Closest match, check the specs
  • 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
07

Alternatives and when to choose them

  • ✓VL53L0X: shorter range (about 2 m), cheaper.
  • ✓HC-SR04 ultrasonic: wider beam, cheaper, works on glass.
  • ✓LiDAR distance sensors: TF-Luna and others for 8 m and beyond.
08

Try it: I2c pullup calculator

Change the values and the diagram and results update as you type.

09

Common mistakes to avoid

  • !Leaving the protective film on the sensor.
  • !Using long mode in bright sunlight.
  • !Connecting several sensors without changing addresses.
  • !Mounting it behind a scratched or dusty window.
10

Frequently asked questions

What is the maximum range?

About 4 m indoors on a white target in long mode; less in sunlight or on dark surfaces.

VL53L1X or VL53L0X?

VL53L1X for range up to 4 m and adjustable ROI; VL53L0X for up to 2 m at lower cost.

Can I use several on one bus?

Yes. Use the XSHUT pins to start them one by one and assign new I2C addresses.

Does it work outdoors?

Yes, but range shrinks in bright sunlight; use short distance mode.

Is the laser safe?

Yes. It is a Class 1 laser, eye-safe in normal use.

Does it work at 3.3 V?

Yes. Most modules accept 3.3 to 5 V.

Parts for this guide

  • TOF400C VL53L1X Laser Ranging Sensor Module – I2C Interface
    ₹559View
  • Waveshare VL53L1X ToF Distance Sensor 4m Range – I2C Interface
    ₹1,629View
  • Adafruit VL53L1X Time of Flight Distance Sensor – ~30 to 4000mm – STEMMA QT / Qwiic
    ₹2,506View
  • SparkFun VL53L1X ToF Distance Sensor Breakout – 4-Meter Range, Qwiic & I2C
    ₹4,179View
  • Pimoroni VL53L1X Time of Flight (ToF) Distance Sensor Module – I2C Interface
    ₹1,773View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 0.96" OLED Display 128x64
    ₹139View
Shop Infrared, ToF & LiDAR Distance Sensors

Calculators

I2c pullup calculator

Terms in this guide

Time of flightMeasuring distance from how long a signal (sound or light) takes to bounce back.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.

Projects that use it

Put this into practice: 12 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourLaser water tank level meterView projectBeginner · 1 hourLaser parking guideView projectBeginner · 1 hourGrain bin level laser meterView project
Browse all 12 projects

Keep learning

Component guideIntermediateVL53L0X and VL53L1X Laser Distance SensorsThe VL53L0X and VL53L1X are tiny time-of-flight sensors from ST.3 min read · SensorsComparisonIntermediateLiDAR Distance SensorsCompare LiDAR distance sensors: single-point TFmini and TF-Luna, 2D scanners for SLAM and 3D LiDAR. Range, interfaces, sunlight limits and Arduino code.3 min read · SensorsComponent guideBeginnerHC-SR04 Ultrasonic SensorThe HC-SR04 measures distance from about 2 cm to 4 m by sending a 40 kHz ultrasonic pulse and timing the echo.3 min read · SensorsConcept 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

  • VL53L1X time-of-flight long distance ranging sensor datasheet (STMicroelectronics)
  • Pololu VL53L1X Arduino library

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 VL53L1X ToF sensor isVL53L1X ToF sensor pinoutWiring the VL53L1X ToF sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon 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)2 items · ₹763

TOF400C VL53L1X Laser Ranging Sensor Module – I2C Interface · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output
Serial monitor115200 baud
596 mm

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