i2cdevlib icon indicating copy to clipboard operation
i2cdevlib copied to clipboard

MPU6050 not working with TTGO T-Display

Open jppboi opened this issue 4 years ago • 2 comments

I have an MPU6050 connected to my T-Display with DMP6. The raw example works fine but DMP6 doesn't connect. I have the interrupt pin connected to pin 2. I don't know if the interrupts are different on the T-display, or if there is another problem. How should I fix it?

jppboi avatar Oct 28 '21 04:10 jppboi

just request DMP FIFO data every 10ms using you don't need to use interrupts any more. although it will be more accurate by less than 10ms if you check on interrupt. Funciton prototype: uint8_t MPU6050::dmpGetCurrentFIFOPacket(uint8_t *data);// overflow proof

usage example:

uint8_t fifoBuffer[64]; // FIFO storage buffer
if(mpu.dmpGetCurrentFIFOPacket(fifoBuffer)){
    // you've got new data in fifoBuffer
}

Z

ZHomeSlice avatar Oct 28 '21 04:10 ZHomeSlice

It might not be an interrupt issue though because it doesn't even connect before initializing dmp.

jppboi avatar Oct 29 '21 04:10 jppboi