Skip to main content
Yunlion
Associate II
January 20, 2022
Solved

VL53L5 Status code 2, when there is no target

  • January 20, 2022
  • 2 replies
  • 1398 views

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

This topic has been closed for replies.
Best answer by John E KVAM

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.

2 replies

John E KVAM
John E KVAMBest answer
ST Employee
January 21, 2022

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.

Yunlion
YunlionAuthor
Associate II
January 24, 2022

Thanks a lot, John! I follow your suggestion.