Timeline for How to generate hardware interrupt in mpu6050 to wakeup arduino from SLEEP_MODE_PWR_DOWN mode?
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 3, 2022 at 13:57 | comment | added | user2081279 | Did not work for me until finding out, that the MPU (additionally to the MCU) must get the interrupt cleared by reading: readByte(MPU6050_ADDRESS, 0x3A); And this didn't work in the ISR itself, so I set a boolean "interrupted" and outside the ISR reacted on this an called the readByte. Also do it after MPU init. | |
| Sep 2, 2021 at 1:16 | comment | added | blak3r | +1 Worked great for me. Love how no external libraries were needed. | |
| S Sep 7, 2020 at 18:55 | history | suggested | Patrick McGloin | CC BY-SA 4.0 |
Improved the log messages and put the detachInterrupt in what I consider the correct place.
|
| Sep 7, 2020 at 17:36 | review | Suggested edits | |||
| S Sep 7, 2020 at 18:55 | |||||
| Sep 7, 2020 at 17:28 | comment | added | Patrick McGloin | I needed to put detachInterrupt() in the wakeUpNow() function. Otherwise works great. | |
| Jan 4, 2018 at 18:09 | comment | added | Gerben | Glad to see you got it working. Thank you for sharing your solution. | |
| Jan 4, 2018 at 18:08 | history | edited | Gerben | CC BY-SA 3.0 |
deleted 2 characters in body
|
| Jan 4, 2018 at 15:25 | history | answered | bandejiya | CC BY-SA 3.0 |