Skip to main content
Visitor II
September 25, 2025
Solved

How to distinguish VL53L5CX and VL53L7CX after assembly?

  • September 25, 2025
  • 1 reply
  • 405 views

Hi,

is there a way to distinguish both mentioned sensors other than by complex optical measurements (they have different FOVs)? We have built devices with both types of sensors and our firmware calculates x/y/z coordinates from the reported distances and so has to choose the correct pitch matrix.

Thx Peter

Best answer by Anne BIGOT

Hello Peter,

 

To differenciate the L5CX from the L7CX devices, you can add the three following lines in your main file :

  uint8_t fw_flags[8];
    status |= vl53l5cx_dci_read_data(&Dev, fw_flags, 0xE0C4, sizeof(fw_flags));
    printf("Module type = %u (0 for vl53l5cx, 1 for vl53l7cx)\n", fw_flags[1]);

 

 

1 reply

Anne BIGOT
Anne BIGOTBest answer
Technical Moderator
September 25, 2025

Hello Peter,

 

To differenciate the L5CX from the L7CX devices, you can add the three following lines in your main file :

  uint8_t fw_flags[8];
    status |= vl53l5cx_dci_read_data(&Dev, fw_flags, 0xE0C4, sizeof(fw_flags));
    printf("Module type = %u (0 for vl53l5cx, 1 for vl53l7cx)\n", fw_flags[1]);

 

 

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'