cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable multi-target on VL53L3CX

GOLMAS
Associate

I use some VL53L3CX with Arduino (in C++) with PWFusion_VL53L3C.h library.

In some situation I need to disable multi-target detection.

How can I do this ?

AND

Where I can find a detailed documentation about VL53L3CX api ?

AND

Can I use a different library on Arduino ?

Thank you

Max

 

 

 

2 REPLIES 2
John E KVAM
ST Employee

Golmas - 

The VL53L3 works by extracting the histogram data from the part and processing that data on your MCU. 

And if there are multiple targets the processing will pull them out. 

There is a VL53LX_MAX_RANGE_RESULTS - which sets the max number of targets. Default is 4, but I've not seen any reason to use more that VL53LX_MAX_RANGE_RESULTS=2. 

With 2 targets, you get the person standing near, and the wall behind. In theory you can have more but that 3 target is hard to come by realistically.  And I've only seen 4 in the lab, where we worked really hard to set it up. 

Your targets will be sorted - with nearest first. But you have the strengths, so it's easy enough to check the signal strengths if you want to use the strongest. 

I don't see an advantage to only getting one target. if you don't want to use the second one, just don't. 

It does not save any I/O time as you need to upload the histogram and the processing time in minimal. 

See if you can make the 2-target idea work. It would be easier than re-configuring the software. 

- 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.

Hi John,

thank you for your queek answer.

*1* About VL53LX_MAX_RANGE_RESULTS=2 

OK, I'll try this setting.

 

*2* About the "strengths"

How can I access this information ?

 

*3* About my requests

"Where I can find a detailed documentation about VL53L3CX api ?"

and

"Can I use a different library on Arduino ?"

Can you help me ?

Thank you and have a nice day

Max