Running tof_camera_1.py results in error: ImportError: no module named 'tof'

While trying to run tof_camera_1.py from the examples directory, I get the following error message:

Traceback (most recent call last):
File “”, line 6, in
ImportError: no module named ‘tof’
MicroPython: v1.18-omv-r6 OpenMV: v4.3.1 HAL: v1.9.0 BOARD: NICLAV-STM32H747
Type “help()” for more information.

Any ideas to fix this issue?
Thank you,
Thane

That example is not valid anymore. We need to remove it.

Hi Kwabena,

thank you for the response.
Thane

This example is for the tof module which is not enabled for all cameras by default, and it currently only supports the VL53L5CX ToF sensor.

Hi ,

thank you for your response.

Thane

Sorry to revive this, but if I happen to have that sensor, is there a way to incorporate it? Or is it intended for a shield with that sensor?

We don’t have any shields with that sensor. What are you trying to do? We haven’t released a product with it yet as it’s… very expensive to add to the camera system.

I once was in the situation to deal with that sensor in combination with openMV cams. I did not manage to get in running and ended up with a workaround.
However release notes state that for the drivers “vl53l5cx: Add shutdown function and fix deinit.” That pretty much sounds like there is still development done in that direction, docs mention vl53l5cx (though no electrical information can be found) and the examples (I’ve just checked) still don’t work. Mysterious I think. :slight_smile:

All will be revealed soon. :wink:

So the tof_camera_1.py will be working soon? How soon? What does this example do exactly?

It’s for a new product. Please wait until the product launch.