cancel
Showing results for 
Search instead for 
Did you mean: 

Is VL6180X really a stable sensor in practice?

ashah.16
Associate II

Hi,

I am using VL6180X sensor in project to detect hands or other objects, without using API. I am setting registers myself. One thing that is really disappointed me regardless of other amazing features, is the interrupt and flags. Whenever the interrupt rise, I have to clear the flag. If I do not clear the flag, then there is no interrupt.

My question is, does anyone have experienced malfunctioning of this sensor when everything is set correctly? I feel the sensor (maybe its MCU), stops working for any reason and it requires a restart.

How could I check regularly if the sensor is scanning ranges?

Thanks

1 REPLY 1
John E KVAM
ST Employee

Interesting question. ST has sold many, many millions of them, but it's not obvious how they are used.

There really isn't anything that should stop the sensor. Although we did write an addendum to the datasheet that suggests grounding the N/C pins to reduce EMI susceptibility. Another improvement would be to use a good strong pull up on the reset GPIO. Noise on that line can cause issues.

If you want to find if the sensor is still alive and kicking, there is no reason you cannot query for 'done' even though are waiting for an interrupt.

Another thing you might do is have a look at the 'isbooted' flag. Upon bring-up it's set. IF you clear it, you can periodically check it, if it's ever reset to 1, you know the sensor rebooted.

-john


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'