2

When reading the MPU 6050 has accelerometer and gyro, I assumed it was linear acceleration, but now I second guess that. From this video https://www.youtube.com/watch?v=qmd6CVrlHOM it seems like they are using acceleration and gyro to make one rotation direction. I need to know what direction the mpu is moving, not just a rotational value. Is there a way to extract this information?

asked Aug 31, 2015 at 3:26
2
  • Please tell us more. Do you want to measure the acceleration and deacceleration in a direction, or the motion with a constant speed in a direction ? Commented Jun 22, 2017 at 17:04
  • I am trying to find vertical velocity with mpu6050 but I failed. Did you find any benefical thing ? Thanks. Commented Aug 27, 2020 at 17:24

2 Answers 2

1

The MPU6050 has an accelerometer and a rate gyro (which tells you how fast it is rotating). The accelerometer will tell you which direction is down and in a motionless situation, that is all the information you have.

You'll probably want something like the MPU9150, it has a compass, which will give you the directional information you're asking for.

answered Aug 31, 2015 at 3:58
2
  • A compass will not tell you direction of movement, only direction of (apparent) orientation Commented Nov 29, 2015 at 8:41
  • When you're motionless you're ok, no movement information to report :-) The bigger problem, I think, is that at a steady speed you also have 0 acceleration, but you are moving. A compass will tell you your heading, but that may or may not be your direction of movement. I think you're talking about building an INS (inertial navigation system), you'll need to be able to determine a starting state and then track changes (accelerations) from there. You may want a GPS. Commented Dec 29, 2015 at 9:54
0

The MPU6050 has accelerometers in the x, y, and z axis. When placed on flat surface with no acceleration, you should get 0g (or whatever unit it uses, I cannot remember off the top of my head) in the x and Y directions, and 1g in the z axis. By continuously polling these values, you can find out the linear acceleration of each axis at a given moment in time.

What you saw is probably because the chip also has three Gyroscopes, for measuring rotational acceleration and speed. The chip can do both.

answered Jun 22, 2017 at 15:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.