cancel
Showing results for 
Search instead for 
Did you mean: 

About VL53L4CX -Getting the best single-target data

Wwei
Associate

Hi,

I have two questions to ask.

1、How do I adjust "VL53LX_MAX_RANGE_RESULTS"and "VL53LX_MAX_USER_ZONES"

if I want to get a best single target of data?

Would it be better to change them all to 1? It's not in the manual.

2、VL53L1CB has a single-target get function "SetSimpleData" that I can't find in the L4CX API. Are there any other functions that can help determine this?

Thanks.

1 REPLY 1
John E KVAM
ST Employee

The user API that is documented is the file vl53lx_api.c. The files in the vl53lx_api_core.c file were really not meant to be called by the user. 

Neither of those parameters are going to help you get the best single target. 

MAX_RANGE_RESULTS

if you ask for 2 targets you will get a distance to an object and the distance to the wall behind the target. 

if you ask for only 1 target, you can get either the strongest signal or the closest. It depends on what you want.

MAX_USER_ZONES

Each range you get the opportunity to change the region of interest. By taking a sub-sample of the full SPAD photon detection array, you and perhaps find more information. But this only makes sense if you use the VL53L1CD as it has a lens over the receive side of the sensor. That code is a remnant of the prior sensor. 

The VL53LX is a VL53L1CB with the lens removed. Turns out that lens is pretty costly. 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question. It helps the next guy.