VL53L1X-satel breakout boards
Hello,
I am working on interface in the VL53L1X-satel breakout boards with my NUCLEO-F446RE dev board:
Note that I am not using the (https://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-sense-hw/p-nucleo-53l1a1.html) P-NUCLEO-53L1A1 shield for this project
I am using the ultra lite library(https://www.st.com/content/st_com/en/products/embedded-software/proximity-sensors-software/stsw-img009.html).
Below are the steps I am performing before starting a reading:
- VL53L1X_BootState() - wait to come out of boot state
- VL53L1X_SensorInit()
- VL53L1X_SetDistanceMode() - long distance
- VL53L1X_SetTimingBudgetInMs() - 50 ms
- VL53L1X_SetInterMeasurementInMs() - 60 ms
- VL53L1X_SetOffset() - calibrated earlier (-110)
- VL53L1X_SetROI() - 16,16
Once these commands are executed, I am calling VL53L1X_StartRanging()
Here are some results I found:
Actual Distance| Calculated Distance
140 mm| 5312 mm
300 mm| 42240 mm
400 mm| 61440 mm
450 mm |7169 mm
500 mm |16641 mm
I have gone through documentation for the ultra lite library and followed it to the best of my knowledge. I have gone through the example code and demo code provided by STM. I need some support on the issue.
Thank you
