cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L4CD (ULD) not ranging?

will3
Associate III

We are moving to VL53L4CD.

Have it all coded but having a strange experience.  Simplistically we use the sensor continuously and only use GetResult to retrieve the sensor readings (e.g. not CheckforDataReady).

So,  simplistically looks sorta like this using the ULD:

....

VL53L4CD_SensorInit

VL53L4CD_SensorStartRanging()

while Forever

             VL53L4CD_ResultsData_t result;

             VL53L4CD_Error VL53L4CD_GetResult(&result);
....

 

This worked fine for the VL53L1X but for the VL53L4CD while all Init, StartRanging and GetResult are returning a status of 0 the reading never changes.  It gets a reasonable reading first but then just never changes.

Any idea?

Thanks,

Will

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
will3
Associate III

Appears to have been the config

View solution in original post

2 REPLIES 2
will3
Associate III

Appears to have been the config

John E KVAM
ST Employee

It almost always is the config - unless it's an I2C issue. Those are 90% of the bugs.

Nice work finding it. If you uncovered something someone else might run into, please share it. 

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