Skip to main content
VZakk
Visitor II
August 28, 2019
Question

How can i determine convergence time with VL6180X Time of Flight sensor. The application scenario is to be able to calculate speed, since speed is distance divide time.

  • August 28, 2019
  • 1 reply
  • 876 views

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

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
August 28, 2019

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.

  • john