2025-08-19 2:24 PM
Hello!
I am using the VL53L4CD TOF Sensor as sold by Adafruit. I am running it with the circuit patched together as described in the example file VL53L4CD_Sat_HelloWorld.ino, also with the exact code (the only change being the port number). I am using an Arduino R4 WiFi. When I start the unit up, it runs normally for a bit (<1 min), and then stops.
Starting...
Status = 0, Distance = 37 mm, Signal = 232 kcps/spad
Status = 0, Distance = 38 mm, Signal = 234 kcps/spad
Status = 0, Distance = 35 mm, Signal = 233 kcps/spad
Status = 0, Distance = 36 mm, Signal = 230 kcps/spad
Status = 0, Distance = 39 mm, Signal = 236 kcps/spad
Status = 0, Distance = 35 mm, Signal = 234 kcps/spad
...
I have an Arduino R3 Uno, and tested the TOF sensor using that, and it seemed to run endlessly.
Based on reading around, I am guessing this has something to do with the resistors required for I2C connections and some builtin difference between the R4 WiFi and the R3 UNO, but I am not sure where I should start here.
Any help would be much appreciated!