Arduino Forum

Products => MKR Boards => MKRWAN1300 => Topic started by: NeilE on Nov 02, 2018, 06:10 pm

Title: MPU6050 Wake up Interrupt
Post by: NeilE on Nov 02, 2018, 06:10 pm
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