Homer Creutz
Homer Creutz
@eadf This is a good point Its Definition is as follows: ``` #ifndef I2CDEVLIB_WIRE_BUFFER_LENGTH #if defined(I2C_BUFFER_LENGTH) // Arduino ESP32 core Wire uses this #define I2CDEVLIB_WIRE_BUFFER_LENGTH I2C_BUFFER_LENGTH #elif defined(BUFFER_LENGTH) // Arduino...
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...
I need the values of MPU6050_RA_WHO_AM_I, MPU6050_WHO_AM_I_BIT, MPU6050_WHO_AM_I_LENGTH ``` Serial.print("MPU6050_RA_WHO_AM_I = " ); Serial.printf(MPU6050_RA_WHO_AM_I ); Serial.printf("MPU6050_WHO_AM_I_BIT = "); Serial.printf(MPU6050_WHO_AM_I_BIT); Serial.printf("MPU6050_WHO_AM_I_LENGTH = "); Serial.printf(MPU6050_WHO_AM_I_LENGTH); ``` add this to your startup and...
Also, you should use this function instead of getFIFOBytes it will handle overflow and other failure modes for you ``` if (mpu.dmpGetCurrentFIFOPacket(fifoBuffer)) { // Get the Latest packet // We...
I'm seeing this as a duplicate discussion, not an issue related to the mpu6050 library code as I have not had any issues related to what is happening. If no...
your reading the correct buffer address and the correct bytes I would now assume that your MPU6050 has a programming flaw with the MPU6050_RA_WHO_AM_I i2c address Byte. Since you have...
@williamesp2015 The sequence of the MPU6050 startup is as follows deviation from this will likely cause difficulties (learned from experience) ``` int devAddr= [your devices address]; // reset device: mpu.writeBit(devAddr,...
@williamesp2015 Does this answer your question? did you come up with any improvements to this library from your work? we would like to know what you've discovered. Z
The code your referencing is flawed This attached version gets the latest FIFO packed in the most efficient way possible. This can be spammed to get the packed when it...
@tonyvr4 "I am not using an interrupt but am confused when you mentioned "This can be spammed to get the packed when it becomes available"" without interrupts, you will need...