cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L5 Status code 2, when there is no target

Yunlion
Associate II

Hello,

I have connected a "VL53L5 Satel" board to my Arduino nano BLE board, with modified example code. It works fine with: distance/motion indicator in 4 x 4, continuous mode, ranging frequency 1-10 Hz ( i tried different f). But it only works fine when all the zones have targets. If there is no target at all or partially have targets, I get status code 2 for some zones. the zone number with "Status 2" varies from scan to scan. The explanation of status 2 is " target phase". What does this mean? How to solve it? Thanks for your help!!

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

When there is no identifiable target the sensor tries to tell you why. The error 2 is saying the data is so inconsistent that the sensor cannot determine a distance.

But the lack of a target is not an error. You simply pointed the sensor to an area where there was no object within the ranging distance.

In some situations you can treat it as having a target at 4M - the maximum. But that's up to you.

All the sensor is telling you is that in that direction there was nothing close on which to range.


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.

View solution in original post

2 REPLIES 2
John E KVAM
ST Employee

When there is no identifiable target the sensor tries to tell you why. The error 2 is saying the data is so inconsistent that the sensor cannot determine a distance.

But the lack of a target is not an error. You simply pointed the sensor to an area where there was no object within the ranging distance.

In some situations you can treat it as having a target at 4M - the maximum. But that's up to you.

All the sensor is telling you is that in that direction there was nothing close on which to range.


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.
Yunlion
Associate II

Thanks a lot, John! I follow your suggestion.