Interrupt con isr() su imu mpu6050 drotek

leo72:
@NXT:
la questione delle pull-down che non esistono te l'avevo già fatta presente io, hai ancora lasciato quel pezzo di codice errato nel tuo sorgente... :stuck_out_tongue_closed_eyes:

Ah, ho dato un'occhiata al codice, non userei un interrupt per un compito banale qual è questo:

  while ((mpuInterrupt == false) && (fifoCount < packetSize))

{
    // do nothing until mpuInterrupt = true or fifoCount >= 42
    }

// there has just been an interrupt, so reset the interrupt flag, then get INT_STATUS byte
  mpuInterrupt = false;



dove potresti cavartela con una semplice lettura della corrispondete porta logica del chip e del relativo bit

@Leo72 ti ringrazio dell'aiuto ma non capisco bene quello che vuoi dire:
http://www.drotek.fr/shop/en/home/42-mpu6050-gyro-accelerometer.html
...with an onboard Digital Motion Processor™ (DMP™) capable of processing complex 9-axis MotionFusion algorithms.
per usare il dmp, come nel mio programma, non ho bisogno di un interrupt per capire che il buffer fifo è pieno?

The FIFO is used with the INT (interrupt) to signal that something is waiting in the fifo.
da qui http://forum.arduino.cc/index.php/topic,113475.0.html

mi spieghi meglio quello che volevi dirmi?

edito per quotare lesto:
ho letto anche io qualcosa del genere in giro per il forum sulla durata nota ma limitata.