cancel
Showing results for 
Search instead for 
Did you mean: 

VL53L1X - Interrupt(s) happening immediately after startMeasurement is called

EVuša.1
Associate II

In my setup I have VL531LX proximity sesor connected as per datasheet.

Every time when I call startMeasurement interrupt is risen immediately after (often two interrupts).

By user manual UM2356, figure 3. this clearly should not happen.

I was wondering do you have any idea why is this happening. Thanks in advance.

11 REPLIES 11
John E KVAM
ST Employee

​Looks like you are right. Even though you set the threshold it doesn't look like it 'takes' until after the first range completes.

In my interrupt service routine, I read the range data and check to see if it meets the threshold requirements. If it does not, I simply return from interrupt and wait for the next one.

Sorry about that.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.
EVuša.1
Associate II

That's what I did in the end as well. Thank you!