vl53l1x-arduino
vl53l1x-arduino copied to clipboard
Inconsistent Measurement Timing with VL53L1X in Continuous Mode
I'm using the VL53L1X sensor with the following configuration in continuous mode:
sensor.setDistanceMode(VL53L1X::Long); sensor.setMeasurementTimingBudget(50000); sensor.startContinuous(50); I tried adjusting the settings as follows:
sensor.setDistanceMode(VL53L1X::Short); sensor.setMeasurementTimingBudget(20000); sensor.startContinuous(20); However, I noticed that the sensor's readings do not occur every 20ms as expected but instead take longer, approximately 30ms. I’ve verified that the startContinuous() period is at least as long as the timing budget, but the issue persists.
Question:
Is there any additional configuration I need to set to ensure the measurements occur exactly at the specified intervals, or is there an inherent limitation in the timing precision of the sensor?