2024-09-07 09:20 PM - edited 2024-09-07 09:22 PM
I have two VL53L7CX Time of Flight sensors connected to a STM32F401CCU6. I was able to modify the X-CUBE-TOF VL53L7CX template to support both sensors, but I can't get low power mode to work for some reason.
specifically, trying to use a sensor after calling:
CUSTOM_RANGING_SENSOR_Stop(Instance);
does not work. Even if I turn it back on with:
status = CUSTOM_RANGING_SENSOR_Start(Instance, RS_MODE_BLOCKING_CONTINUOUS);
It also seems to not be doing what it's supposed to either, as the system still draws a lot of current even when it's supposed to be in low power. This was not a problem with the single sensor setup
I've included all code that might be relevant here: https://github.com/youcefs21/multi-tof
if there is anything else I can clarify/test, let me know!
thanks