VL53L8CX sensor not giving distance readings on AMB82-Mini

Hello, @Kelvin_Huang @pammyleong
I’m using the VL53L8CX ToF sensor with the AMB82-Mini via I²C. The board successfully detects the sensor (ACK at 0x29 and sensor.begin() returns 0), but during ranging, all measured distances remain 0 or —.

Interestingly, the same sensor and code work correctly on an ESP32 board, giving valid distance readings.
Is there any known issue or additional configuration required for the VL53L8CX to work properly on AMB82-Mini?

Thank you for your support!

Hi @madava_ramagiri

May I know which ToF sensor library you are currently using on Arduino IDE?

hi @pammyleong,

I am using the official ST VL53L8CX Arduino library (from ST’s GitHub repository: VL53L8CX-main).

could you please give me a solution to solve these issue??

Thanks & Regards

Madava Ramagiri

Hi @madava_ramagiri,

Thank you for sharing. I encountered a similar issue while testing VL53L5CX. To address it, I added a short delay in SparkFun_VL53L5CX_IO.cpp under function readMultipleBytes and readSingleByte.

I inserted a 10 ms delay after every requestFrom() call.

You can try adding a 10 ms delay as well in vl53l8cx.h IO_Read()

hi @pammyleong,

Thanks for the suggestion.

I’m using the official ST VL53L8CX Arduino library (from ST’s GitHub) on the Amb 82 Mini.
The sensor is detected at I2C address 0x29 and the firmware upload returns success, but start_ranging() always returns 255 and no data is received.
I also tried adding a delay(10) after every requestFrom() as suggested, but the issue persists — it stops after “Manual GO sent”.

Thanks & Regards

Madava Ramagiri

Hi @madava_ramagiri,

Always return value of 255 might be related to vl53l8cx_platform.c. You can compare how we modified platform.cpp for the VL53L5CX for AMB82 Mini to see the differences.