MPU-6050 Interuupt with Arduino Micro


so when hooked arduino nano mpu-6050, worked great. have since changed arduino micro , can not interrupt pin working.

i have mpu plugged pins 2 , 3 i2c communication, , plug in interrupt pin pin 12. pd6 on atmega23u4.

when run code, not work. (attached below)

when have interrupt_pin set 12, not work. when accidentally set interrupt_pin 2, got data out of it, 1 of i2c pins. mpu works fine on arduino nano, think issue interrupt_pin.

i thought use pin interrupt pin, confused why not working.

any digital pin can cause interrupt, need use pin change interrupts of them. check see if pin change interrupts implemented in library using. if not, check pins can used external interrupt (pd6 cannot) , use 1 of those.

see https://www.arduino.cc/en/hacking/pinmapping32u4


Arduino Forum > Using Arduino > Sensors > MPU-6050 Interuupt with Arduino Micro


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???