cancel
Showing results for 
Search instead for 
Did you mean: 

Receiving VL53L7CX sensor ranging result with status 0 only

Aju004
Visitor

Hi all, I'm using pololu VL53L7CX sensor carrier board interfaced with Nucleo-L552zeq EVK for ranging application. For first level, iam using the Simple ranging application that comes with software package. Sensor api calls till getting the data seems working fine. But when viewing the result, the status is always 0. For first frame its 6, but i understood it will be 6 for the first frame. The expected status should be 5 (or 9), but for me its always 0. For now i have set the resolution as VL53L7CX_RESOLUTION_4X4 with ranging mode as VL53L7CX_RANGING_MODE_CONTINUOUS. 

Additionally, am not using INT pin or LPn pin. Is there anything i need to take care in the hardware side?
Or is there anything to be handled in the sensor configuration in the app side?

Below is the some zone result i got from a single frame:
Details:{NumberOfTargets = 1, Distance = {53}, Status = {0}, Ambient = {0}, Signal = {0}}

Details:{NumberOfTargets = 1, Distance = {51}, Status = {0}, Ambient = {0}, Signal = {0}}

Details:{NumberOfTargets = 1, Distance = {50}, Status = {0}, Ambient = {0}, Signal = {0}}

Details:{NumberOfTargets = 1, Distance = {46}, Status = {0}, Ambient = {0}, Signal = {0}}

Details:{NumberOfTargets = 1, Distance = {51}, Status = {0}, Ambient = {0}, Signal = {0}}

Details:{NumberOfTargets = 1, Distance = {45}, Status = {0}, Ambient = {0}, Signal = {0}}

1 REPLY 1
John E KVAM
ST Employee

You are close. But I noticed a few things.

1) your signal cannot be zero. The sensor needs between 0.5M and 20M photons to work. 0 is wrong. 

2) your ambient signal will not be zero either. Even in a dark room there is going to be some. 

3) Is your distance right? If so, then you know the sensor is working and you have a coding error somewhere. 

4) in the platform.h file did you uncomment some of the defines? If so you might have taken too much out. At a minimum, you need distance, status, and number of targets. 

In order to claim a good distance one needs to check:

If the number of targets >0 AND the status is either 5, 6, or 9 THEN good range. 

(There is stale data in the buffer so you have to check this.)

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