
1 Document scope
In this user manual:
• The VL53L1X contains a 16x16 array of SPADs to collect the light.
• "ROI selection" means positioning the reduced sensing area at a selected place on the SPAD array to detect
and measure the distance of the specified area of interest of the external scene.
• "Reduced FoV" means using a reduced number of SPADs for the ROI sensing area to limit the viewingangle
of the sensor device.
• A "multiple zone" provides the ability to change the ROI position after each range.
The selected ROI is defined by a combination of the X and Y axis lengths and the selection of a center of the
rectangle. The ROI must be at least a 4 x 4 region, and the center must be specified so the entire region is within
the SPAD array. The X and Y lengths are specified by the function VL53L1X_SetROI( X, Y) and the center is
specified by the function VL53L1X_SetROICenter( C).
In the figure below, the X length is 6 and the Y is 11. Selection and use of the center SPAD
VL53L1X_SetROICenter( C) is the main focus of this user manual.
ST delivers a software ultra lite driver referred to as the “driver” in this document.
Figure 2. VL53L1X ROI selection with reduced sensing area (blue represents the active sensing area)
UM2555
Document scope
UM2555 - Rev 1
page 2/12

4 SPAD details
4.1 SPAD locations
The photon detector is made up of a 16 x 16 array of SPADs. Each SPAD is identified by a number as shown in
the table below.
/* Table of SPAD locations. Each SPAD has a number which is not obvious.
*
* 128,136,144,152,160,168,176,184, 192,200,208,216,224,232,240,248
* 129,137,145,153,161,169,177,185, 193,201,209,217,225,233,241,249
* 130,138,146,154,162,170,178,186, 194,202,210,218,226,234,242,250
* 131,139,147,155,163,171,179,187, 195,203,211,219,227,235,243,251
* 132,140,148,156,164,172,180,188, 196,204,212,220,228,236,244,252
* 133,141,149,157,165,173,181,189, 197,205,213,221,229,237,245,253
* 134,142,150,158,166,174,182,190, 198,206,214,222,230,238,246,254
* 135,143,151,159,167,175,183,191, 199,207,215,223,231,239,247,255
* 127,119,111,103, 95, 87, 79, 71, 63, 55, 47, 39, 31, 23, 15, 7
* 126,118,110,102, 94, 86, 78, 70, 62, 54, 46, 38, 30, 22, 14, 6
* 125,117,109,101, 93, 85, 77, 69, 61, 53, 45, 37, 29, 21, 13, 5
* 124,116,108,100, 92, 84, 76, 68, 60, 52, 44, 36, 28, 20, 12, 4
* 123,115,107, 99, 91, 83, 75, 67, 59, 51, 43, 35, 27, 19, 11, 3
* 122,114,106, 98, 90, 82, 74, 66, 58, 50, 42, 34, 26, 18, 10, 2
* 121,113,105, 97, 89, 81, 73, 65, 57, 49, 41, 33, 25, 17, 9, 1
* 120,112,104, 96, 88, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0 /*Pin 1*/
UM2555
SPAD details
4.2 SPAD selection
The numbering system is easy for the hardware, but not intuitive to people. Select the SPAD number that is
closest to the center of your ROI.
If the center of your region falls between two SPAD numbers, choose the one to the right, or above the center
location.
An ROI center definition example is explained in Section 5.1 Example ROI.
UM2555 - Rev 1
page 5/12

8 Calibration details
8.1 Offset
For the best accuracy, each zone must be calibrated separately. The procedure is as follows:
• Set the ROI and the ROI center
• Call the calibration function VL53L1X_CalibrateOffset() with a target at a known distance
After each calibration call the function VL53L1X_GetOffset() and retain the value in an array.
When calibration is in progress, and immediately after setting the ROI center, call the function
VL53L1X_SetOffset (), and set the offset calibration for that zone.
8.2 Crosstalk
It is assumed that crosstalk calibration is the same for each zone, but you will need to do some testing to confirm
this in your design.
After testing, if the range result is too short it might be due to crosstalk from the cover glass. The cross talk
calibration can be run for each ROI. Set the ROI, do the crosstalk calibration, read the crosstalk with the
VL53L1X_GetXtalk() and store it.
Every time the ROI is set, set the crosstalk with the function VL53L1X_SetXtalk().
UM2555
Calibration details
UM2555 - Rev 1
page 9/12

UM2555
Contents
Contents
1 Document scope ..................................................................2
2 Acronyms and abbreviations ......................................................3
3 VL53L1X_SetROICenter() ..........................................................4
4 SPAD details ......................................................................5
4.1 SPAD locations ................................................................5
4.2 SPAD selection ................................................................5
5 ROI details ........................................................................6
5.1 Example ROI ..................................................................6
5.2 Error 13 ......................................................................6
5.3 Multiple zones .................................................................6
6 Timing considerations .............................................................7
7 Example code .....................................................................8
8 Calibration details .................................................................9
8.1 Offset ........................................................................9
8.2 Crosstalk .....................................................................9
Revision history .......................................................................10
Contents ..............................................................................11
UM2555 - Rev 1
page 11/12

UM2555
IMPORTANT NOTICE – PLEASE READ CAREFULLY
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’s terms and conditions of sale in place at the time of order acknowledgement.
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www.st.com/trademarks. All other product or service
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
© 2019 STMicroelectronics – All rights reserved
UM2555 - Rev 1
page 12/12