Questions tagged [mpu6050]

The MPU-6050 is a 6DOF. In other words it has 6 Degrees Of Freedom, 3 axes of acceleration (x, y, z) and 3 axes of rotational movement (yaw, pitch, roll). It uses the I2C protocol.

The MPU-6050 is a gyroscope / accelerometer IC made by InvenSense. It can measure movement in 6 axes, 3 of acceleration and 3 of rotation. You can use it as an accelerometer and a gyroscope at the same time.

It uses the I2C protocol which makes it easy to combine this sensor with many other I2C using sensors.

Important: Notice that this IC runs on 3.3V which means 5V will burn it out. However, some breakouts, like the GY-521, have all that you need to connect an MPU-60X0 directly to your Arduino. The GY-521 has a voltage regulator so it's ok with 5V.

There is a good library on GitHub that is quite popular for this sensor. With detailed and understandable examples, beginners can use it too.

Extra link:

Datasheet from InvenSense

195 questions
2
votes
2 answers

MPU 6050 only reads 0 in output

I am new to using MPU 6050. I am stuck at a basic code of getting readings from the sensor. The code I used is attached below. Its the one with GY 521 breakout board. Concluding that my sensor is broken I have changed sensor and now using the third…
user78465
  • 21
  • 2
1
vote
1 answer

MPU6050 FIFO overflow and freezing problems

I'm using the sensor MPU6050 to control movements of my robotic arm. The code works fine when it is a standalone program but I keep encountering 'FIFO overflow' when the code is compiled into the main program. This is the code that I am using: …
Ivan
  • 11
  • 1
1
vote
0 answers

Getting some strange data from an MPU-6050

I'm trying to create an IMU unit using MPU-6050 unit. I've got 100k data records, and this is the result: It seems to me that's a kind of offset in gx. Why? Why I'm getting this kind of drifting in acz? This is the setup code: void…
Mauro Assis
  • 111
  • 2
1
vote
1 answer

MPU6050 Accelerometer freezes/glitches after acceleration

I am trying to do rotational vector calculation using a MPU6050 chip which actually work really well with not too much drift when I rotate the MPU slowly. However, when I accelerate too much, e.g. change direction in my slow rotations or just…
Twometer
  • 123
  • 7
1
vote
0 answers

Why does my program stop working? (MPU6050)

I'm using the DMP example from Jeff Rowberg's MPU library (with Arduino UNO) and it works well. But with this simple modification it works for a while and then stops. I don't understand why this is happening. If someone knows this will help me a…
Irene
  • 11
  • 1
1
vote
0 answers

How does this MPU6050 Example Code Work?

I'm trying to understand the logic for one of the example Arduino programs for the MPU6050 IMU module. The entire program can be found here. There is an if() statement inside a while() loop inside the normal Arduiono sketch loop() function, and I'm…
starship15
  • 764
  • 4
  • 10
1
vote
1 answer

MPU6050 doesn't work

I am trying to do a self-balancing bot as a school project, but I got stuck with the MPU6050. I tried using the code by Jeff Rowberg (MPU_6050_raw) but it's reading only zeros. I tried the MPU_6050_DMP and got stuck at "initializing DMP..." and no…
Zohary
  • 23
  • 1
  • 1
  • 3
1
vote
1 answer

MPU6050: Setting Gyro Output Range Throws of Positional Reading

I am using the MPU6050 in conjunction with an Arduino and Jeff Rowberg's i2cdev library, and my project requires that the gyro rate outputs be more precise than the default setting, which is 1/16.4 of a degree (+/-2000 deg/sec range). The gyro…
Ember
  • 83
  • 2
  • 11
1
vote
1 answer

MPU6050 hanging/freezing

I am really short of interrupt pins on my Arduino because I have a project that already uses a lot of Arduino pins and to read DMP data from MPU6050 you always have to use an interrupt pin. I searched A LOT in the internet and many people says it's…
Samul
  • 215
  • 2
  • 9
1
vote
1 answer

Translating accelerometer angle to PWM output (was MPU-6050 DMP6 example)

I'm trying to make a self balancing robot with MPU-6050. When I try the DMP6 example it works good and the Serial Monitor gives me the yaw pitch roll angles but whenever I try to output PWM on pin 6 nothing happens and I don't know why. Here is the…
hemaessam
  • 11
  • 3
1
vote
1 answer

I2Cdev #include weirdness

I am using Jeff Rowberg's MPU6050 library, and I simply don't understand what is going on in the following lines of the first example (MPU6050_raw.ino): #include "I2Cdev.h" #include "MPU6050.h" // Arduino Wire library is required if I2Cdev…
DoubtBearer
  • 103
  • 1
  • 5
0
votes
1 answer

How long should TinyMPU6050.h calibration run for?

I just found a lightweight library for the MPU6050 gyro. Example below. mpu.Calibrate() never seems to end. I'm keeping it very still. When I take this out, the rest of the code works…
paul1066
  • 1
  • 1
  • 3
0
votes
1 answer

What is importance of the reflow profile?

I was reading the MPU6050 datasheet to understand all the type of errors that affect the accelerometer, after finding information on the Reflow Profile i look up on wikipedia the Reflow Soldering Definition As a noob i can't understand the…
Andrea Ciufo
  • 225
  • 1
  • 3
  • 9