Hi
I'm making quadcopter with arduino mega.
after uploading source for copter and I open serial window at IDE to check if hardware is working or not.
But The copter is waiting DMP first interrupt and stop with below message
"Initializing I2C devices...
Testing device connections...
MPU6050 connection successful
Initializing DMP...
Enabling DMP...
Enabling interrupt detection (Arduino external interrupt 0)...
DMP ready! Waiting for first interrupt..."
I don't have idea where I'm modifying.
I think, it doesn't working below codes.
SurferTim:
You need to read up on the mega's interrupts. Only certain pins can be used, and there is a recommended way to attach them. attachInterrupt() - Arduino Reference
Yeah I know that. I use D2 pin for gy-86 as interrupt. and it is include PinChangeInt.h.
Because of changing D8/9/10/11pin to use interrupt.
I don't know. Maybe it's just my understanding of the datasheet.
External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). These pins can be configured to trigger an interrupt on a low level, a rising or falling edge, or a change in level.