With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
I've solved the buffer overflowing situation!http://arduino.stackexchange.com/questions/10308/how-to-clear-fifo-buffer-on-mpu6050By resetting the buffer for every loop.
I'm not sure why my serial print window is printing unreadable characters after entering any value to start the program. I've used the library that Jeff Rowberg uploaded on January to avoid any issues that the new libraries may bring upon. It'd be much appreciated if you could let me know what might be the problem!P.S. I've checked my wiring connections and there are no mistakes.
I've changed the data rate at Serial.begin to 9600 and managed to print perfectly without unreadable characters. However, it is telling me that FIFO is overflowing:FIFO overflow!ypr41.49-1.903.38ypr41.49-1.903.39ypr41.49-1.903.39ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.38ypr41.48-1.903.39FIFO overflow!Would you know what I can do from here on out?Thanks
while (Serial.available() && Serial.read()); // empty buffer while (!Serial.available()); // wait for data while (Serial.available() && Serial.read()); // empty buffer againWhen it came to this part of the program, unreadable characters started flowing into my serial window after entering a key.
MPU6050: Arduino 6 Axis Accelerometer + Gyro - GY 521 Test & 3D Simulation
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.