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

1 REPLY 1
will3
Associate III

Appears to have been the config