Jump to content
I2Cdevlib Forums

Search the Community

Showing results for tags 'mpu6050'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • I2Cdevlib Web Tools
    • I2C Protocol Analyzer
    • I2C Device Entry Interface
    • I2C Device Library API
  • I2Cdev Platform Discussion
    • Arduino (ATmega)
    • Arduino Due (ARM Cortex M3)
    • MSP430
    • Other Platforms
  • I2C Device Discussion
    • AD7746 capacitance-to-digital converter (Analog Devices)
    • ADS1115 16-bit A/D converter (Texas Instruments)
    • ADXL345 3-axis accelerometer (Analog Devices)
    • AK8975 3-axis magnetometer (AKM Semiconductor)
    • BMA150 3-axis accelerometer (Bosch Sensortec)
    • BMP085 pressure sensor (Bosch Sensortec)
    • DS1307 real-time clock (Maxim)
    • HMC5843 3-axis magnetometer (Honeywell)
    • HMC5883L 3-axis magnetometer (Honeywell)
    • iAQ-2000 indoor air quality sensor (AppliedSensor)
    • IQS156 ProxSense capacitive touch sensor (Azoteq)
    • ITG-3200 3-axis gyroscope (InvenSense)
    • L3G4200D 3-axis accelerometer (STMicroelectronics)
    • MPL3115A2 Xtrinsic Smart Pressure Sensor (Freescale)
    • MPR121 12-bit capacitive touch sensor (Freescale)
    • MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
    • MPU-9150 9-axis accelerometer/gyroscope/magnetometer (InvenSense)
    • PanelPilot multi-screen digital meter (Lascar Electronics)
    • SSD1308 128x64 OLED/PLED driver (Solomon Systech)
    • TCA6424A 24-bit I/O expander (Texas Instruments)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi, I've searched hole forum and the Internet ant haven't found many (to be honest almost none) information if anyone have successfully implemented I2CDev library on BeagleBone Black. I would like to use it with MPU6050. I've started to implement it, but without any success so far. Below, there is one question abut this library, I hope it is not too big offtop. What is the proper way of working this function: int8_t I2Cdev::readBytes(uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data, uint16_t timeout) All the time I was thinking that it shoud read length bytes starting from regAddr. So for exaple int8_t I2Cdev::readBytes(devAddr, 10, 4, data, timeout) would read bytes from registers 10, 11, 12 and 13. But we have this function (from MPU6050 library): void MPU6050::getFIFOBytes(uint8_t *data, uint8_t length) { I2Cdev::readBytes(devAddr, MPU6050_RA_FIFO_R_W, length, data); } and in my opinion it should read length bytes from one register (MPU6050_RA_FIFO_R_W = 74) byte by byte and this is something different from what I described before. I have the same concers about writeBytes function. I would appreciate any help with understanding this functions
  2. Hello, dear pro MPU users! :-) I have no problem to compile the example for Arduino. This is good :-) But I can't move all the initializations and all the serial output into new class, I called Sensor. I'v created Sensor.h, Sensor.cpp In the sensor.h: #ifndef SENSOR_H #define SENSOR_H #include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" //#include "MPU6050.h" // not necessary if using MotionApps include file // Arduino Wire library is required if I2Cdev I2CDEV_ARDUINO_WIRE implementation // is used in I2Cdev.h #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE #include "Wire.h" #endif class Sensor{ public: static Sensor & getInstance(){ static Sensor instance; return instance; } bool init(); bool getYpr(float & y, float & p, float r); protected: MPU6050 _mpu; .................................. ...................... ........... In the main project: #include "Wire.h" #include "sensor.h" void setup() { Sensor::getInstance().init(); } void loop() { float y,p,r; Sensor::getInstance().getYpr(y,p,r); } And I have a lot of errors like this: I'v found some information, that this may be caused by including "MPU6050.h", but I don't do it! I can't attach archives here. So, here is a link to a dropbox with my test project: https://dl.dropboxusercontent.com/u/51786067/testMPU.rar Hope, my question is not very stupid :-) Thanks!
  3. Hey everyone, I want first to thank a lot Jeff Rowberg for his work, because without him my project might not be so advanced. I will first present outlines of my project: The idea is to track arm position in 3D space, this by using 3 GY-521connected on a Teensy 2.0 board. All sensors are connected on the two I2C pins of the board and each of them is connected from one digital pin to the ADO of the sensor. Because sensors have only 2 addresses, I have created a loop that will change the ADO to HIGH for one sensor and 2 others to LOW. In that way, I will query data from only the sensor that is HIGH and at the end stock it in an array. When the 3 sensors have send their data I print the results and return in initial condition. Everything is going well, I have good results but their is still one thing that I can't fix: my second sensor, the one in the middle is delayed and this is really annoying. The point that is really confusing, is that others sensors work very well, if the problem might be due to the delay of querying result, the 3rd one should be worst, but it is not the case... Also It is not a sensor problem because I have already replace it twice... I Also have try to call only the second sensor without the two others and the delay persist. Is someone have any suggestion of how fixing this problem, I will be really grateful to him.
  4. Hey everyone, I want first to thank a lot Jeff Rowberg for his work, because without him my project might not be so advanced. I will first present outlines of my project: The idea is to track arm position in 3D space, this by using 3 GY-521connected on a Teensy 2.0 board. All sensors are connected on the two I2C pins of the board and each of them is connected from one digital pin to the ADO of the sensor. Because sensors have only 2 addresses, I have created a loop that will change the ADO to HIGH for one sensor and 2 others to LOW. In that way, I will query data from only the sensor that is HIGH and at the end stock it in an array. When the 3 sensors have send their data I print the results and return in initial condition. Everything is going well, I have good results but their is still one thing that I can't fix: my second sensor, the one in the middle is delayed and this is really annoying. The point that is really confusing, is that others sensors work very well, if the problem might be due to the delay of querying result, the 3rd one should be worst, but it is not the case... Also It is not a sensor problem because I have already replace it twice... I Also have try to call only the second sensor without the two others and the delay persist. Is someone have any suggestion of how fixing this problem, I will be really grateful to him.
  5. Hi all I am trying to get my mpu6050 to generate a motion interrupt. I mainly want my host processor to only start storing data from the mpu6050 when it detects that it has started moving. To my knowledge I only need to set the correct registers and connect the INT pin to a interrupt port on my host processor. The code is already set up but it does not receive a interrupt. the registers that I have set to enable the motion detection is: INT_PIN_CFG register is set to 0x30 INT_ENABLE register is set to 0x40 I left the motion threshold to 0. I would think that this should cause an interrupt on the INT pin, but so far I am not getting anything.
  6. Hello, Thanks for the awesome work on the MPU60X0 series Mr.Jeff. I am having some trouble on using this : http://www.ebay.com/itm/NEW-MPU-6050-Module-3-Axis-Gyroscope-Accelerometer-Module-for-Arduino-MPU-6050-/170881535422 with an arduino uno. I wired up the sda, scl, vcc ,gnd and INT pins to arduino. The raw sketch in the examples works fine with relatively changing values with respect to the mpu, however when i try to run the DMP sketch from the examples (for ypr), I get random values ( all sorts from -ve to +ve extremes). Please help , what might be going wrong? Like this: ypr -87.13 44.97 1.53 ypr 1.48 -12.48 9.21 ypr -165.70 2.07 -43.67 FIFO overflow! ypr 161.94 -23.04 6.82 ypr -112.91 22.77 -66.79 ypr 63.09 67.35 20.87 ypr -0.02 0.03 -0.02 ypr 96.41 -65.82 -23.38 ypr -173.59 -11.67 55.13 ypr -179.77 -25.37 4.16 ypr 34.97 -52.92 21.85 ypr 176.46 24.11 -0.73 ypr -47.54 18.19 -69.33 ypr -40.63 8.71 -22.80 ypr 180.00 -0.25 0.13 ypr -42.68 -54.78 29.34 ypr -0.46 13.73 -10.30 ypr -165.67 2.11 -43.72 ypr 13.93 3.98 81.43 ypr -0.02 -0.03 3.53 ypr 33.11 -0.77 70.05 ypr -9.67 -21.45 -66.33 ypr 180.00 0.22 -19.05 ypr 84.95 29.47 49.47 ypr 162.55 -22.88 6.86 ypr -114.71 -21.13 68.85 ypr -43.29 -77.13 -5.42 ypr -0.02 0.03 -0.02 ypr 10.51 42.09 -34.33 ypr 20.90 2.08 64.16 ypr -179.78 -25.30 3.98 ypr -98.58 -6.70 -69.35 ypr 176.27 23.92 -0.76 ypr 43.45 86.87 -1.40
  7. Hi, I am currently working on a project where I am required to interface the MSP430g2553 with the MPU6050 and receive the raw values. I tried out several programs from the internet and none of them seem to work.I managed to find a working code which seems to give out lots of garbage values and also the values are not stable. It would be very much helpful if you could provide me with a working code or help me with debugging the code. I have attached the CCS project along with this post.
  8. Hi, I'm using Arduino Uno, and GY-521 MPU6050, trying to run the example MPU6050_DMP6. I uncommented #define OUTPUT_READABLE_YAWPITCHROLL, commented the teapot define. and got data like this, really in a mess: Initializing DMP... 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... ypr -11.65 -5.99 -0.20 ypr -117.95 -2.31 5.66 ypr 41.37 -71.00 6.51 ypr 180.00 0.00 -0.07 ypr -74.75 39.15 0.42 ypr 20.44 59.11 -29.95 ypr 179.98 -11.79 -0.56 ypr -80.68 -2.44 28.89 ypr 179.38 6.68 -3.68 ypr 66.52 52.38 36.50 ypr -37.36 -65.09 -20.80 ypr -180.00 -0.00 0.14 ypr -75.51 -47.65 15.82 ypr 1.41 1.11 -57.96 ypr -172.87 1.83 -43.98 ypr 106.46 -13.79 1.29 ypr -180.00 0.03 58.89 ypr 11.27 37.51 -51.48 ypr -30.22 39.54 34.30 ypr 180.00 0.01 5.10 ypr -1.55 -33.32 32.75 ypr -11.38 -6.58 -0.30 ypr -113.70 20.09 -58.35 ypr -5.59 -2.23 30.65 ypr 180.00 0.00 -0.07 ypr 50.86 57.03 19.18 ypr -6.88 59.55 13.49 ypr 179.98 -11.87 -0.52 ypr 36.61 25.55 5.77 ypr 179.35 7.47 -4.53 ypr 28.58 -28.44 -61.56 ypr 0.77 -23.04 62.77 PS: My chip works well with MPU6050_raw(can get stable data). Does anyone have any idea about this?why the data is so unstable?
×
×
  • Create New...