Go Down

Topic: MPU6050 Wake up Interrupt (Read 765 times) previous topic - next topic

NeilE

Hi,

I am trying to use the MPU6050 to wake up the MKR1300 using a hardware interrupt.

Has anyone got this to work? I have tried to convert the examples elsewhere (https://arduino.stackexchange.com/questions/48424/how-to-generate-hardware-interrupt-in-mpu6050-to-wakeup-arduino-from-sleep-mode) but I can seem to make it work with the MKR.

From my understanding of the code it looks like you write a set of data to various registers (movement thresholds, durations etc) and then wait for the interrupt to occur....but it never does.

My wiring is OK as the simple library movement examples all work fine, but the library is am using  #include <MPU6050_tockn.h> makes no mention of interrupts. Is there another library?

Cheers

Go Up