VL53L0X Time-of-Flight Ranging Sensor

Will it be possible to use the OpenMV M4 board with this VL53L0X sensor?

The interface is I2C, but the OpenMV board complains when I try to do “import smbus” and “import struct”

After doing some searches, I see that the “struct” module is available (in a limited form) on the openmv board as “ustruct”. Unfortunately, “smbus” module was written specially for the microbit and will not work on the openmv board. I guess will have to adapt an existing driver.

I think you just need I2C, see Examples->02-Board-Control->i2c_control.py.

You should be able to port this driver, although I’d just start by reading/writing a register: