2025-07-02 1:02 AM
Hello everyone,
I am currently working with the VL53L4CD sensor using the ULP (Ultra Low Power) driver. My goal is to use it for presence detection and distance measurement while keeping power consumption as low as possible.
I understand that using very low power settings will naturally reduce performance. However, with a configuration of macro period = 1 and ROI = 4x4, the results are extremely inaccurate, as shown in the attached image (distance_plot_macro_1_ROI_4.png).
To give a specific example:
I am aware that increasing the settings improves performance significantly. As you can see from the other attachments (distance_plot_macro_10_ROI_16.png and distance_plot_macro_100_ROI_16.png), the accuracy becomes much better as I increase the macro period.
My questions are:
Any advice or suggestions on this matter would be greatly appreciated.
Thank you in advance.
2025-07-02 7:20 AM
Everything you have said is exactly correct.
It's a tradeoff. More accuracy requires more integration time, and hence more power.
I wrote a paper on how one might fix your issue.
Use very low power until something of interest comes 'reasonably close', then stop the sensor, jump to higher power, get an accurate answer, then go back to low power again.
This saves a lot of power if object appear sporadically.
It's under the application notes section - https://www.st.com/resource/en/application_note/an5870-using-the-vl53l4cd-under-ultralowpower-mode-stmicroelectronics.pdf
It gives you the code - which is simple and quick.
It's still not as accurate as using the Ultra Lite Driver, but it comes close.
-john
(This is my first post on using my 'retirement' account.)