User Manual

Example API range profiles UM2039
22/26 DocID029105 Rev 1
7 Example API range profiles
There are 4 range profiles available via API example code.
7.1 High accuracy
The following settings have to be applied, before ranging:
if (Status == VL53L0_ERROR_NONE) {
Status = VL53L0_SetLimitCheckValue(pMyDevice,
VL53L0_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE,
(FixPoint1616_t)(0.25*65536));
}
if (Status == VL53L0_ERROR_NONE) {
Status = VL53L0_SetLimitCheckValue(pMyDevice,
VL53L0_CHECKENABLE_SIGMA_FINAL_RANGE,
(FixPoint1616_t)(18*65536));
}
if (Status == VL53L0_ERROR_NONE) {
Status =
VL53L0_SetMeasurementTimingBudgetMicroSeconds(pMyDevice,
200000);
}
7.2 Long range
The following setting have to be applied, before ranging:
if (Status == VL53L0_ERROR_NONE) {
Status = VL53L0_SetLimitCheckValue(pMyDevice,
VL53L0_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE,
(FixPoint1616_t)(0.1*65536));
}
Table 6. Example API range profiles
Timing budget
Typical max
range
Typical application
Default mode 30ms 1.2m (white target) standard
High accuracy 200ms 1.2m (white target) precise measurement
Long range 33ms 2m (white target)
long ranging, only for
dark conditions
High Speed 20ms 1.2m (white target)
high speed where
accuracy is not priority