2019-08-27 10:16 PM
The picture i uploaded is a screenshot from the datasheet. And according to the datasheet, Effective max convergence time depends on the actual convergence time plus readout averaging sample period setting. Please i want to know how to calculate the convergence time.
This is simply because i want to be able to calculate speed. Since the sensor reads distance, if i know the time, then i can calculate speed.
Or if there is a better approach to be able to calculate speed with the VL6180X sensor, please help me out.
Thank you
2019-08-28 08:35 AM
The best way is to use the clock on your MCU. Then use the interrupt pin on the sensor.
If it's a robot, run the sensor in continuous mode, reset the clock on every interrupt.
The sensor will range continuously, triggering the interrupt when it finishes the range.
That way you will know precisely how many of your MCU clocks have gone by between measurement.
The clock in your MCU is pretty darn accurate (no matter which one you choose) so you shouldn't have an issue.