Showing results for 
Search instead for 
Did you mean: 

VL53L4CX_SetUserROI purpose


I read that we can not set spad array size on VL53L4CX chip. What is the purpose of function VL53L4CX_SetUserROI, found in VL53L4CX driver?

I tried setting two zones or two user rois but detection doesn’t change.


ST Employee

Damjan -

That function does work - as it limits the number of SPADS in the SPAD array. (There are 16x16 in the array. And you lower that number. But more than likely it will have no effect on the L4 sensors.

Without the lens of the VL53L1, any light that comes in will be captured by a random SPAD. The lens focuses right or left, up or down.

If you had a very short distance application then you could use this to prevent wild swings of SPAD settings as the sensor tried to adjust to your target. Needing to do is is very rare.

We considered removing it, but one customer wanted it and we felt it wasn't hurting anything.\

  • john

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'