Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

VL53L0X - How to use GPIO Interrupt to wake uC?


#1

Hey, guys, I have searched and searched and asked people smarter than me, and so far I can’t find an example showing how to setup the VL53L0X sensor code to trigger the GPIO pin when a programmed threshold has been reached.

I want to use the VL53L0X sensor to wake up a sleeping uC when it detects movement within a predefined distance of lets say 12-16 inches.

Is there any way to use the Pololu VX53L0X library to setup the GPIO pin to do this?

Any help would be greatly appreciated.

Thanks!


#2

Hello.

Our library does not support that, but it should be possible to use the ST API (or to augment our library based on the code in the ST API) to do it. You might look more at the “Interrupt settings” section of the VL53L0x User’s Manual for more information about how the GPIO1 pin can be used for interrupts.

-Nathan