VL6180X interrupts

Hi,

I am building a line-following robot that I want to stop when it detects on object in front of it using the VL6810X sensor. It should stop when it detects an object that is 5 cm in front of it. I am trying to use an interrupt to do this but have not been successful just trying to poll the reading. How can I make this work using an interrupt? I already tried polling for when a reading is ready and it still has not worked.

Thanks,

cadeg

Hello, cadeg.

Can you clarify whether you are having trouble setting up the interrupt from the sensor or reading the signal from your microcontroller? Can you explain more about what you want to do and what you have already tried?

Brandon