Logan Posted April 5 Report Share Posted April 5 Hey all! I've been looking around here for the past few days and it's exciting to see other people trying to get the most out of these sensors. For some reason, when running the MPU6050_DMP6 example from the i2cdev library, the rpy values are shown in the serial monitor for a while, but then suddenly the serial monitor stops entirely or the values freeze and continuously output the same value regardless of how the imu is moved. Do you all have any idea what might be causing this? I'm using a wifi arduino mkr 1010 and a GY-521 breakout board. I'm using the dedicated SDA and SCL pins on the wifi arduino and the 3.3v VCC port to power the MPU6050. The data only seems to be able to come in to the serial monitor for about a minute. When the board stops printing data to the serial monitor entirely, I noticed that the Arduino loop { } gets stalled. Commenting out mpu.dmpGetCurrentFIFOPacket(fifoBuffer) seems to prevent loop { } from stalling, but obviously I don't get any data in the serial monitor when that function isn't called. Any pointers or tips would be appreciated! Quote Link to comment Share on other sites More sharing options...
Kraken Posted May 13 Report Share Posted May 13 I'm no expert, but I read elsewhere that the interrupt "pinmode()" should use a pull up/down resister so that an open (unattached) pin does not generate random values. I'm just now debugging a bunch of other problems with the example sketches...not all problems are in the sketches. Some problems are in the core cpp code. I hope to share them when I sort it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.