Jump to content
I2Cdevlib Forums

MPU6050_DMP6 serial data stopping suddenly

Recommended Posts

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!

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...