cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L5 Thresholds

BBald.1
Associate II

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

3 REPLIES 3
John E KVAM
ST Employee

Barry -

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


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.
John E KVAM
ST Employee

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

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

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