Questions tagged [mpu6050]

The MPU6050 is an accelerometer, commonly available 6DOF IMU (inertial measurement unit).

The MPU6050 is a 6DOF IMU from Invensense. It contains a 3-axis accelerometer, a 3-axis MEMS gyroscopic sensor, and a temperature sensor.

117 questions
1
vote
1 answer

Arduino Wire Library returning Error Code 7 (which is not defined in the library)

I'm using an ESP32 to try to read from an IMU, the MPU-6050. I'm using the code that is available on the Arduino web site with a slight variation; I'm checking the error code on endTransmission and am printing it (I started to do this because I was…
Joel
  • 2,230
  • 1
  • 20
  • 28
1
vote
1 answer

How do I calculate tilt angle from mpu6050?

I am building a self-balancing robot and I have managed to configure the gyroscope mpu6050 and I now have six readings Ax,Ay,Az and Gx,Gy,Gz. My question is how do I calculate tilt angle from both Ax,Ay,Az and Gx,Gy,Gz? Here is what I know so far,…
Zero_Cool
  • 53
  • 1
  • 10
1
vote
0 answers

distance measure using mpu 6050 accelerometer

I want to calculate traveled distance of mpu 6050 sensor using the acceleration of x,y,z. How to get the traveled distance that sensor traveled using accelerometer values by integrating.Can you please explain the code example for getting the…
1
vote
0 answers

get the distance using mpu 6050 accelemetor

I want to calculate traveled distance of mpu 6050 sensor using the acceleration of x,y,z. How to get the traveled distance that sensor traveled using accelerometer values by integrating the accelerometer values.Can you please explain the code…
1
vote
1 answer

Program stops after while loop begins

I'm trying to move my servos according to data from my gyro. Unfortunately, my program stops after the while loop begins. For instance, in my code once the gyroX value reaches 3000 the serial monitor stops giving me gyro data and the servo does not…
1
vote
1 answer

MPU6050 Power Management using Tiva C Direct Register Mode

Having no success getting the MPU6050 out of SLEEP mode. I understand that the SLEEP bit (bit 6) needs to be cleared, but reading the Power Management register after performing the clear returns 0x40. i.e bit 6 has not been cleared. Yes this is for…
jdb
  • 21
  • 2
1
vote
1 answer

Mpu6050 not detecting in nodemcu

I am trying to interface mpu6050 to nodemcu as follow:   Vcc - 3v Gnd - gnd Sda - D2 Scl - D1 But it's not detecting the sensor The sensor works with Arduino with connection Vcc - 5v Gnd - gnd Sda - A5 Scl - A4 INT - d2 The code I tried was the…
Manish Malviya
  • 546
  • 2
  • 15
1
vote
1 answer

How to perform MPU6050 Accelerometer Temperature Calibration?

I'm doing a project with the MPU6050 accelerometer. First I calculate the offsets of the MPU only once executing the sketch of Luis Ródenas. Later, once I get the offsets, I copy them into the configuration of a second sketch and I always execute it…
1
vote
0 answers

MPU 6050 SD Writing Frequency Arduino is not constant , how to have a constant writing frequency?

I am a noob and i am from civil engineer, I apologize in advance. I have a MPU6050 connected to my Arduino Uno and I write the data on an SD. I can write at a sample rate of 20millis. Why i have this default frequency? This is part of the code //…
1
vote
0 answers

Using Adafruit i2c Multiplexer with imu9150 (or mpu6050)

I am working on a project that will use multiple imu 9150s (very similar to mpu 6150, a combination of a gyroscope, accelerometer and magnetometer) to measure lower body angles. Because I require communication between multiple devices…
Geoffrey
  • 11
  • 3
0
votes
0 answers

MPU6050 Quaternion calculation with stm32

I've been interested in mpu6050 for a while. I can read gyro data but i need help how to convert it to quaternion. This is pretty easy on Arduino, jrowberg's library is really great. But i am working with a STM32F4. I also checked the mpu6050's…
0
votes
0 answers

MPU6050 over PCA9548 in Raspberry not created IIO

I'm have the rpi zero w uname -a Linux raspberrypi 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l GNU/Linux I'm have the mux device pca9548, pwm pca9685a and mpu6050. My…
DanisKu
  • 1
  • 2
0
votes
1 answer

Values in variables not displaying on Serial monitor

Trying to read mpu 6050 accelerometer,gyroscope values on serial monitor through uart on a stm32g431cbt6 board. The string gets printed except for the values which remain at zero. Serial Monitor Output. Is it a problem with the implementation of…
JKx
  • 1
0
votes
0 answers

How to access the DMP of MPU6050 using a Raspberry Pi

I'm trying to make a drone controlled by a raspberry pi, and for it I need accurate pitch, roll and yaw data. I've tried using a complementary filter but it's just too slow and laggy. I've been doing a lot of research and I've found that the MPU6050…
0
votes
1 answer

Calibrating MPU6050

I using a MPU 6050 and raspberry pi pico for making an IMU. I have set the range of accelerometer as +- 2 g but there is a .96 g offset this severly limits the sensing range on the positive side. I have written a calibration program which works fine…