Question
VL6180X GPIO1 interrupt output
Posted on February 25, 2015 at 18:11
Hello peers and engineers,
I have a VL6180X proximity sensor in my project (I only measure a range), and I want to use its GPIO1 pin as a wake-up trigger for some other electronics. Is it possible to configure VL6180X to generate interrupt and put GPIO1 in HIGH state once the distance from the target is below some threshold (e.g. 20mm) ? I tried myself to achieve this by configuring some internal registers of VL6180X but with no success. I configure SYSTEM__MODE_GPIO1 register by writing 0x20 to it (to activate GPIO Interrupt output). I also put 0x14 (20mm) into SYSRANGE_THRESH_LOW register Finally, I setup Interrupt mode source for Range readings by writing 0x01 into SYSTEM__INTERRUPT_CONFIG_GPIO register. However, my system do not behave as expected when I start it. Is there anything I'm missing in the configuration part ? Thank you very much for your time and effort. Sincerely, Bojan #vl6180x