Search the Community
Showing results for tags 'I2CDevLib'.
Found 3 results
Question above. Also, is it possible to read the angular rate (only gyro) at a higher frequency when dmp is enabled?
Hi I'm new to Arduino and I'm trying to use a 6DOF IMU (the MPU-6050) along with the i2cdevlib. I've been able to set the libraries and to execute a sketch in order to calculate the offset of the IMU starting from the raw data. Now I'm trying to execute the example code that i found on the github of the i2cdevlibhttps://github.com/jrowberg/i2cdevlib/blob/master/Arduino/MPU6050/Examples/MPU6050_DMP6/MPU6050_DMP6.ino setting the output in the YPR modeCode: #define OUTPUT_READABLE_YAWPITCHROLL with and without my offset parameters. In both sketches I found the same issue. The data on the serial shift from the initial position for 5-8 second showing an increment of several degrees (depends on the cases but usually there are 12-25 degrees) of the YPR angles without moving the IMU. The same thing happen with the Euler anglesCode: #define OUTPUT_READABLE_EULER I've tried also to execute the quaternion output modeCode: #define OUTPUT_READABLE_QUATERNION which i don't know how to read (I'm just started learning about this) but the value I read on the serial seems to stay "stable". I might solve this with a delay from the turn on which allow me to see of how much degrees the IMU "virtually moved" and then subtract that value to future reading (such as another offset) but i find this not usefull since I need the IMU to have the right angles on the turn on. Thanks for reading, hope someone could help me
I am working on a quadcopter based on RPi 2 as the control unit and am trying to use your library I2CDevLib for the sensors (MPU6050, BMP085 and HMC5883). I however intend to work in a C only environment and have been trying to use the linux/i2c-dev.h provided by the operating system. There is also the bcm2835 library specifically for the onboard chip. I have a few queries and seek some consultation. 1. Which of the above do you suggest is a better way to implement the I2CDev.h interface? (linux/i2c-dev.h or bcm2835.h) 2. How best can I use your library and still work in an all C environment? I am looking forward to contributing back any new code that I may write to add the library you maintain...