Jump to content
I2Cdevlib Forums

anqurarora

Members
  • Content Count

    7
  • Joined

  • Last visited

  • Days Won

    2
  1. Hi, the reason fifo is getting overflow is because the interrupt data rate of DMP is too high. To change the data rate you have to do the following, In line 305 of file “MPU6050_6axis_MotionApps20.h” the very last entry which is “0x01” decides the data rate as per the equation below, Data rate = (200 / (1+ value) ); Change this to 0x04, which will give you data rate of 40Hz and will work fine. Good luck.
  2. Hi, I am using MPU6050 with your written code in DMP mode on Arduino due and it's working fine stand alone.. But I have to integrate some other things into my code like (Due timer library to generate software interrupt every second, external interrupt on pin 52 to count pulses ). when i tried to integrate them in one code i have FIFO Overflow problem. even though i tried to run it at as low as 20hz by changing the registers value in the "3dmath.h" file. can you please help me out with this problem i am facing. my project is kind of stuck at this point. Thank you. #include <DueTim
  3. Hi, copied is the working code. i could not attach it as a file. if you want .ino conatct me at anqur2004@gmail.com #include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE #include "Wire.h" #endif MPU6050 mpu; #define OUTPUT_READABLE_WORLDACCEL #define OUTPUT_READABLE_REALACCEL #define LED_PIN 13 // (Arduino is 13, Teensy is 11, Teensy++ is 6) #define LED_PIN1 12 bool blinkState = false; bool blinkState1 = false; // MPU control/status vars bool dmpReady = false; // set true if DMP init was successful uint8_t mpuIntStatus;
  4. Hi Jeff, I tried 'MPU6050_raw' on uno and it worked fine (even MPU_DMP6 worked fine) but not on the due board. it gives me error "MPU6050 connection failed " and zeor values for all the sensor data. i connected 'SCL1 and SDA1' (i think that's the default for due). would you please help me out. Thank you.
  5. Hi jeff, Thanks for quick reply. I will try to run it on the due board by commenting that line (as i am expecting it to deleiver in 1-2 days) and hopefully it will work... what if i want i2c at 400khz? is there any other way. also my project is to calculate vehicle velocity using MPU_6050. i am trying to access 'gravity caompesated acceleration' and use it with the kalman library and finally controlling a motor using PID library. do you think it is feasible and DUE is powerfull enough to do all the work (cause i need atleast 20 samples/min). and i think PID and KALMAN library uses the
  6. Hi, I tried MPU_DMP6.ino and it compiles without error for UNO (haven’t tested on real board), but I am using DUE board and the sketch won’t compile for the arduino due board. Could you please tell me why I am getting this error, will be helpful. MPU6050_DMP6.ino: In function 'void setup()': MPU6050_DMP6:165: error: 'TWBR' was not declared in this scope If I put it as a comment then it compiles without error. but still dont know if it will actually work or not. Thank you.
×
×
  • Create New...