Offline
Newbie
Karma: 0
Posts: 46
|
 |
« on: July 09, 2012, 05:36:22 am » |
Hi at all!
I have a platform drotek 10dof, arduino 2009 328p, ide1.01, win 7 64 bit.
The sketch of the site arduino.cc krodal in the playground, he runs well, with raw sensor data.
By jeff rowberg on github site, the file mpu6050_raw is ok but MPU6050_DMP6 gives me this screen
and then, error: FIFO OVERFLOW.
does anyone know how I can fix it?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 9
Posts: 1001
|
 |
« Reply #1 on: July 09, 2012, 01:37:04 pm » |
The FIFO is used with the INT (interrupt) to signal that something is waiting in the fifo. If you check the example code, you see that an interrupt routine is used. So you have to connect the INT output of the sensor to some input of the Arduino. Check this line in the code: attachInterrupt(0, dmpDataReady, RISING); That where the interrupt routine is set with interrupt 0 (pin 2). http://arduino.cc/it/Reference/AttachInterrupt
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #2 on: July 10, 2012, 09:22:33 am » |
I added the line suggested: attachInterrupt (0, dmpDataReady, RISING); in the interrupt detection routine, before the initial setup.
The problem of fifo overflow is re-proposes after several seconds of time.
To use the potential of the sketch MPU6050_DMP, perhaps I have to change this line?
fifoBuffer uint8_t [64]; / / FIFO storage buffer
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 9
Posts: 1001
|
 |
« Reply #3 on: July 10, 2012, 09:32:18 am » |
Enlarging the FIFO buffer ? I don't know if the code can handle that. You could try to double the size, just to test what it will do.
Sorry if my post was not clear. You don't have to add that line, it is already in the code. So please remove what you added. Use the original code. Look in the code for that line (search for "attachInterrupt"), you see that INT0 (pin 2) of the Arduino is used.
Question : Do you have the interrupt output of the sensor board connected to the interrupt input of the Arduino?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #4 on: July 10, 2012, 10:00:33 am » |
it is I who must apologize!
I found the line of code, I try to set the right number of the switch outside.
Your question to me is a problem ... The connections between Arduino and 10dof drotek these should be ...
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #5 on: July 10, 2012, 10:21:35 am » |
I do not understand what I do ...
interrupt by setting to 1, the serial ..
Initializing I2C devices... Testing device connections... MPU6050 connection successful
Send any character to begin DMP programming and demo: Initializing DMP... Enabling DMP... Enabling interrupt detection (Arduino external interrupt 0)... DMP ready! Waiting for first interrupt... $=vQÿ¹ FIFO overflow! $:ÞWM¾ FIFO overflow! FIFO overflow!
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 46
|
 |
« Reply #7 on: July 11, 2012, 02:48:10 am » |
thanks a lot, now I understand better the situation ..
I try to contact jeff (or drotek..),
but do you think can change the sketch of such free_imu or others to obtain a result similar to that of MPU6050_DMP?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 65
|
 |
« Reply #9 on: August 19, 2012, 09:30:44 am » |
Sorry, for using your thread. I happened to have your same problem. Like Krodal said, i connected INT of my MPU-6050 to digital pin 2 of the arduino, still the serial monitor displays junk values. Any idea what i should do?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 65
|
 |
« Reply #10 on: August 19, 2012, 09:59:28 am » |
Never mind, guys. Got it working. I hadn't noticed the define statements were commented, i had to uncomment them to get the readings. But I haven't got the teapot application working though  It just doesn't move. If anyone does get it, Please help me out.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 1
|
 |
« Reply #11 on: September 26, 2012, 05:48:55 pm » |
I have the same problem. INT is connected to pin2, still FIFO overflow  Any sugestion?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #12 on: November 02, 2012, 01:40:45 pm » |
Maybe your code is too slow or ineffective? I had a FIFO overflow too when I set the baudrate to 4800 and when I had a small delay in the code  But I have a problem with my arduino pro mini 8mHz 3.3V. I use the same code for my Uno and Mini, but the mini won't even execute the first part of the code whereas it runs fine on the UNO.. The mini doesn't seem to get past the mpu.initialize(); part.. void setup() { // join I2C bus (I2Cdev library doesn't do this automatically) Wire.begin();
// initialize serial communication // (115200 chosen because it is required for Teapot Demo output, but it's // really up to you depending on your project) Serial.begin(19200);
// initialize device Serial.println(F("Initializing I2C devices...")); mpu.initialize(); any ideas??
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 1
Posts: 6
|
 |
« Reply #13 on: March 07, 2013, 07:02:45 pm » |
i would be happy if the sketch comes to the FIFO Overflow, my problem and i dont know why:
Initializing MPU device... Testing device connections... MPU60X0 connection successful
Send any character to begin DMP programming and demo: Initializing DMP...
Resetting MPU60X0... Disabling sleep mode... Selecting user bank 16... Selecting memory byte 6... Checking hardware revision... Revision @ user[16][6] = 4D Resetting memory bank selection to 0... Reading OTP bank valid flag... OTP bank is valid! Reading gyro offset values... X gyro offset = 63 Y gyro offset = 0 Z gyro offset = 1 Setting slave 0 address to 0x7F... Disabling I2C Master mode... Setting slave 0 address to 0x68 (self)... Resetting I2C Master control... Writing DMP code to MPU memory banks (1929 bytes) Success! DMP code written and verified. Writing DMP configuration to MPU memory banks (192 bytes in config def)
Can anybody please help me out with this?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 836
|
 |
« Reply #14 on: March 08, 2013, 08:16:02 am » |
that looks successful. what are you actually complaining about ?
|
|
|
|
|
Logged
|
|
|
|
|
|