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
0
votes
1 answer

MPU6050 values keep changing after start moving the device

I am testing the MPU6050, and I noticed that the values keep changing after I start moving the device; please have a look at the code. after starting the serial monitor, everything will be zeros; if I hold the device and start playing with it, I…
Wolfsbane
  • 13
  • 3
0
votes
0 answers

STM32F407ZET6 with freeRTOS HAL_I2C_Mem_Read always returns HAL_TIMEOUT

I am using freeRTOS on STM32F4x. I am reading MPU6050 MEMS sensor on I2C2 peripheral. When I am just in bare metal mode, the HAL_I2C_Mem_Read function works just fine and returns me the ID of the sensor. However, when i am running with freeRTOS this…
0
votes
0 answers

Why is the default value of WHOAMI register of MPU9250 is 0x71?

I'm reading the datasheet of MPU9250 and I find out the address of MPU6050 inside MPU9250 is b110100x. But when I see the description of WHOAMI register, it says the default value is 0x71. And I cannot figure out any relationship between b110100x…
0
votes
1 answer

Need some help using I2C on Beaglebone

I'm a beginner at I2C communication and I am trying to hook up communication with an I2C device a (mpu6050) using librobotcontrol http://strawsondesign.com/docs/librobotcontrol/group___i2_c.html i2c library in C. The code Excluding stuff not I2C…
Chaz
  • 11
  • 2
0
votes
0 answers

GPS and MPU 6050 don't work together in one program

I'm working on a project that uses MPU 6050 and GPS together embedded in raspberry pi device. However, if I try to run the gps code alone or the code for MPU 6050 (accelerometer/gyroscope) alone, it works. But the problem is when I try to run the…
0
votes
0 answers

angle of the vector perpendicular to the sensor with respect to the vector perpendicular to the earth

I have MPU6050 accelerometer and gyroscope MEMS sensor for calculate roll and pitch. Bu this calculation now enough my project. In my project, sensor is on the top of the box. My idea is to calculate the tipping state of the box with a single angle.…
0
votes
1 answer

mpu6050&dmp and stm32h7 usage

I trying to use mpu6050 with dmp but how I can do that? I didn't find any source, any register or something like that. I have a stm32h7 right now but there is no library related to this or I didn't find again. please someone help me
0
votes
1 answer

MPU6050 Settings?

Does anybody have any good experience with the gy-521 / MPU6050 ? I want to use the accelerometer portion to determine movement on a swinging object. I think i need some high precision settings, but for the life of me have not understood most of…
0
votes
1 answer

Kalman filter F matrix for mpu6050

So i have been trying to study the kalman filter for mpu6050. I used library from here it was made by tkjelectronics/lauszus. I already understand the "big" line of the library itself and already implement it. But i still have no idea why he came…
Juno
  • 21
  • 2
0
votes
0 answers

I'cant calculate °/s datas MPU6050 with Raspberry pi

I have a problem with MPU6050 gyroscope, and Raspberry Pi computer. My project has a function for MPU. I use this code: import time import smbus def mpu(mpudat_m): PWR_MGMT_1 = 0x6B SMPLRT_DIV = 0x19 CONFIG = 0x1A …
Domkrt
  • 85
  • 8
0
votes
2 answers

MPU-6050 Burst Read Auto Increment

I'm trying to write a driver for the MPU-6050 and I'm stuck on how to proceed regarding reading the raw accelerometer/gyroscope/temperature readings. For instance, the MPU-6050 has the accelerometer X readings in 2 registers: ACCEL_XOUT[15:8] at…
Dartlead
  • 13
  • 4
0
votes
1 answer

Signal Vector Magnitude - Accelerometer MPU6050

I'm creating a kind of pedometer on a bracelet with an MPU6050 accelerometer, and for that I'm relying on the following code https://github.com/Perseus14/Pedometer/blob/master/Pedometer.ino . I managed to make the code work, but I am in doubt in the…
0
votes
0 answers

"ESP32: (xQueueGenericReceive)- assert failed!" error when trying to read data from MPU6050

I know, this is a long question but you would really help me out with it. After 3 days of trial and error and research, I'm out of ideas. Maybe you'll find something obvious I've missed or you just know better than I do. The project I'm currently…
Bastian Springer
  • 271
  • 2
  • 11
0
votes
0 answers

Combining two python scripts, one reading an IMU another one moving a servo motor

I am very new in python, but I have been able to make few useful python codes (at least useful for my work). I would like to combine two python scripts, but I have a hard time making it work, I think I am completely lost in how things should look…
D N
  • 1
0
votes
2 answers

Correct configuration I2C via registers avr c Atmega328p

To expand my understanding and current knowledge of programming the Atmega series I've started my own little project. I've decided to program the MPU6050 I2C sensor by directly addressing it's registers. To test the sensor's working and connections…
Thron
  • 21
  • 6