2023-11-23 09:35 AM - last edited on 2023-11-23 11:16 PM by Federica Bossi
Hello ST community,
I am currently working on a project using the VL53L1X sensor with Arduino, and I am seeking guidance on dynamically changing the measurement mode and Time Budget (TB) within the VOID LOOP of my Arduino sketch.
Specifically, I would like to know:
Is there a way to dynamically switch between measurement modes (e.g., short, medium, long) during the execution of the program?
How can I adjust the Time Budget (TB) for the VL53L1X sensor within the VOID LOOP to accommodate different measurement scenarios?
Any code snippets, examples, or insights on how to achieve this dynamic configuration within the loop would be immensely helpful.
Thank you for your assistance.
2023-11-24 01:27 AM
Hello,
Our sensors do not accept dynamically switches between measurement modes. You have to stop the ranging, change the mode, then relaunch the ranging.
Best regards