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
10
votes
2 answers

MPU-6050: Correctly reading data from the FIFO register

Introduction The MPU-6050 is a popular module that contains a temperature sensor, accelerometer, and gyroscope. A user may read the sensor information over I2C or SPI. Two documents are publicly available for reading data out of the IC registers.…
Micrified
  • 3,338
  • 4
  • 33
  • 59
7
votes
0 answers

ESP8266 + Micropython: Why do I keep getting the same value with periodic i2c reads?

I am writing some simple code using MicroPython running on a Digistump Oak, which is basically an ESP8266 breakout board. I'm trying to understand the behavior that I see when performing periodic reads of the sensors via i2c. The following code…
larsks
  • 277,717
  • 41
  • 399
  • 399
5
votes
2 answers

I2C not detecting ? issues in hardware or any other?

I have been working through some i2c examples. Plugging it all together and I find that I need to install the i2c-tools package, then use raspi-config to enable the I2C system. The wiringPi gpio command has a shortcut to the i2cdetect command and…
Jerwin Prabu
  • 336
  • 1
  • 3
  • 16
4
votes
1 answer

MPU6050 FIFO overflow and freezing problems

Im using the sensor MPU6050 to control movements of my robotic arm. The codes work fine when it is a standalone program but i keep encountering 'FIFO overflow' when the codes are complied into the main program. This is the code that i am…
Ivan
  • 41
  • 1
3
votes
1 answer

MPU6050 only outputs 0x00 on I2C with MicroPython

I've been trying to talk to my MPU6050 with a Pi Pico running MicroPython. I can verify the I2C is working because when running i2c.scan(), I get the MPU6050 address(0x68). However, when trying to read a specific register from the MPU6050, I always…
inzig0
  • 51
  • 1
  • 3
3
votes
2 answers

MPU6050 - Gyroscope tilt angle measurement for self balancing robot?

I have calculated the tilt angle of accelerometer by following formula: Angle_Accel = atan(Ax/sqrt(Ay*Ay+Az*Az))*(180/PI) I want to calculate the tilt angle from gyroscope now and I am using Gx co-ordinate to integrate as follows but my result is…
Zero_Cool
  • 53
  • 1
  • 10
2
votes
1 answer

ATMEGA328P-PU takes upload, but cannot communicate through Serial

I am using Standalone ATMEGA328P-PU to get the accelerometer data from mpu6050 and send to to Serial at baudrate 115200 and also it sends the data to another serial(to HC05 bluetooth module). But the problem is that sometimes I am facing a strange…
2
votes
1 answer

Arduino UNOv3 synchronisation of GPS and IMU MPU6050

I am relatively new with Arduino and I want to: Set the frequency of the IMU to 100 Hz. Synchronise GPS and MPU6050 in order to get data at the same time: 1 set of IMU data and 1 set of GPS data -> 99 sets of IMU data. (//1 second) -> 1 set of…
2
votes
2 answers

How does the complementary filter work?

I'm trying to combine the data from an accelerometer and a gyroscope to accurately measure the pitch and yaw angles of an object. After researching the complementary filter and attempting to implement it, i have a few questions on how it works. I've…
MrBigRig
  • 21
  • 1
  • 3
1
vote
1 answer

PID using Axis-Angle or Rotation Matrix

I went through euler angles and I understood it is prone to Gimbal locks at certain angles. This worries me and might cause failure in my robot. I learned that Axis-Angle and Rotation Matrices are safe. is there anyway to to build a PID controller…
Linux Man
  • 11
  • 1
1
vote
1 answer

Detect the speed of the vehicle using MPU6050

i have been trying to get speed of the vehicle using MPU-6050 but couldn't find my way to do it so, in the end i am stuck here def stateCondition(): while True: acc_x = read_raw_data(ACCEL_XOUT_H) acc_y = read_raw_data(ACCEL_YOUT_H) …
1
vote
0 answers

Getting only 100sample/second from MPU6050 through Raspberry pi Pico

I wanted to plot the raw sensor data like the accelerometer gyroscope and temperature data of MPU6050. For me MPU6050 is soldered with Pico and Pico is connected to my laptop via a USB connection. Now, my problem is the frequency is quite low like…
1
vote
1 answer

How to take sensor output into individual integers in csv file

I have a 6 DoF sensor that outputs various data into a text file. Currently the text output looks like 14:46:25,22.835882352941177,"(-0.020917304775809907, 0.041168453348568536, -0.03810413481453269)" And I would like it to…
colem
  • 15
  • 4
1
vote
1 answer

MPU6050 and STM32F4 data transmission issue

I am using a STM32F446 with a MPU6050, I am using I2C communication for this application, the problem is that it only shows me one value and does not update, I mean, if the value in the serial monitor is 1, 1, 1 then it only shows that one every…
1
vote
0 answers

Can gravity affect into MPU6050 signal?

I stream ax,ay,az from sensor mpu6050 to calculate the angle as this equation: ax = data_mpu["ax"] ay = data_mpu["ay"] az = data_mpu["az"] phi = np.arctan2(ay,az) * 180/np.pi theta = np.arctan2(ax,az) * 180/np.pi psi = np.arctan2(ay,ax) *…
Loc
  • 13
  • 2
1
2 3 4 5 6 7 8