2021-10-11 04:01 AM
I want to use the TOF unit to detect when a physical object is passing. The Threshold detection shall rise an interrupt signal which I use to initiate a function. As I understand the mentioned VL6180X, the interrupt must be cleared each time via an I2C command. In my application I want the interrupt to reset itself when the object has passed and the value is within the threshold limit. As an object is passing each second, I do not have time to reset the interrupt by the I2C bus. Is there another TOF where this can be done, or does anybody have a solution for this? Thanks in advance /Poul
2021-10-11 09:47 AM
1) unless you use the Ambient Light Sensor of the VL6180X, consider the VL6180V1 - it's cheaper, and is the exact same silicon.
2) When you use an interrupt every time the sensor triggers you will need to clear the interrupt and start again. If you didn't you would not get the next interrupt.
Don't worry about the time it takes to clear an interrupt. It's only 1 payload character. With overhead - only 3 bytes. Even the slowest I2C bus can handle that.
2021-10-12 12:04 AM
Hi John.
Thanks for your info. I will give it a try, but probaply I need to have a separate cpu to do this one task, as the 'maiin application cpu' also is handling Modbus and analog conversions. I did hope for a less expensive and simpler solution though.
regards
Poul