Skip to main content
BBald.1
Associate II
October 4, 2021
Question

VL53L5 Thresholds

  • October 4, 2021
  • 2 replies
  • 988 views

Is there any documentation how to setup the various threshold parameters? These are the macros defined in the vl53l5cx_plugin_detection_thresholds.h

#define VL53L5CX_DISTANCE_MM            ((uint8_t)1U)

#define VL53L5CX_SIGNAL_PER_SPAD_KCPS      ((uint8_t)2U)

#define VL53L5CX_RANGE_SIGMA_MM            ((uint8_t)4U)

#define VL53L5CX_AMBIENT_PER_SPAD_KCPS      ((uint8_t)8U)

#define VL53L5CX_NB_TARGET_DETECTED         ((uint8_t)9U)

#define VL53L5CX_TARGET_STATUS            ((uint8_t)12U)

#define VL53L5CX_NB_SPADS_ENABLED         ((uint8_t)13U)

#define VL53L5CX_MOTION_INDICATOR  

Some examples or documentation on setting these up would be helpful.

Thanks,

Barry

This topic has been closed for replies.

2 replies

John E KVAM
ST Employee
October 6, 2021

Barry -

I'm prepaing a slide set on the subject. Give me until Oct 7 please.

John E KVAM
ST Employee
October 6, 2021

There are examples - but we hid them.

download:

STSW-IMG025 Linux driver for VL53L5CX multi-zone sensor

inside this block of code look for the \user\examples directory

You will see 11 examples and 3 of them deal with thresholds and motion indicators.

Example_9 and example_11 especially.

  • john
BBald.1
BBald.1Author
Associate II
October 7, 2021

John-

I've been looking at those examples. I actually posted a question titled "Detection thresholds confusion" back on the 30th that had to do with Example 9 and changing the example to use an AND instead of an OR.

Thanks,

Barry