cancel
Showing results for 
Search instead for 
Did you mean: 

VL6180X measurement never ready

RBruè.1
Associate II

Using the VL6180X sensor with default initial configuration found in the documentation (chapter 2.1), the measurement task remains stuck waiting for the measurement bit to be set on the 0x4F register (measurement ready).

The bit seems to never be set.

1 REPLY 1
John E KVAM
ST Employee

There are not very many ways to 'stick' the sensor.

Lack of power is one.

poorly constructed I2C interface is another.

And any noise on the XShut down (GPIO0) is another way. (use some big pull-upsand maybe a cap near the sensor). Even minor glitches can effect this line.

Always check the status on your commands. Sometimes that tells you want is going on - generally just 'I2C' error.

The other trick is just look at the sensor - you should see a red glow if it's running.

(If you are old - like me - the sensor might not be very visible, use a PC camera to look at it. Cell phone cameras tend to filter out the near I/R)

If it's glowing, you know it's running and you should be getting answers.

good luck

john


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.