2020-10-09 02:42 AM
Hello.
I have VL53L1X working in window mode with GPIO polarity active low:
It is working well. If my hand is:
The problem comes when there is nothing in front of the sensor and range status is 4 (phase fail). In this cases, GPIO interrupt still works, causing my code to malfunction.
Why does GPIO works if distance is outside window thresholds and range status is different from 0?
Solved! Go to Solution.
2020-10-22 07:45 AM
Hi Hardwariano,
Please try that :
status = VL53L1X_SetDistanceThreshold(dev,50,200,3,0); // fifth parameter of the function must to set to 0.
Thanks,
2020-10-22 04:31 AM
I include some images to better illustrate my problem.
If my hand is:
Is this the correct behaviour of GPIO pin?
2020-10-22 07:45 AM
Hi Hardwariano,
Please try that :
status = VL53L1X_SetDistanceThreshold(dev,50,200,3,0); // fifth parameter of the function must to set to 0.
Thanks,
2020-10-22 10:32 PM
Hello Julien,
Thanks for your response. It seems that with value = 0 now GPIO pin works well.
I used value = 1 as indicated by the API comment:
2020-10-23 02:06 AM
Hi Hardwariano,
It is a mistake of our part. We will correct the error. Thanks, Julien