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.

104 questions
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
  • 194,279
  • 34
  • 297
  • 301
5
votes
1 answer

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
  • 306
  • 1
  • 3
  • 15
3
votes
0 answers

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
  • 31
  • 1
3
votes
1 answer

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
  • 2,632
  • 3
  • 30
  • 45
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
  • 8
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…
1
vote
0 answers

What does the MPU6050s DMP initialization data mean?

I was wondering what are those 3kB of hex data loaded to DMP on initialization. I know they are supposed to be some kind of “program” for DMP, but what do they do? Is there a way to get assembly version, and if so, is there a way to make my own? Or,…
1
vote
0 answers

Mpu6050 not connecting to Esp32 after coming back from DeepSleep Mode

I am a complete noob in hardware programming. I was doing a project in which i had to calculate roll and pitch values from mpu6050 while implementing deep sleep mode in esp32 to reduce power consumption. I followed online tutorials and managed to…
1
vote
0 answers

Fall detection using MPU6050 and sim900a

I am trying to make fall detection using MPU6050, SIM900a, and Arduino Nano. after uploading the code to Arduino, the serial monitor show me this: serial monitor output this is the code that I have tried, #include // Library for…
Blue Star
  • 11
  • 2
1
vote
1 answer

Setting initial values for pitch and roll for MPU6050 DMP processing

I want to handle case when my MPU6050 is disconnected and reset. Unfortunately, after reinit MPU6050 shows pitch and roll values as 0 and stabilizes after ~1-2s with right values. I would like to hint DMP by writing last read values before reset. Is…
1
vote
0 answers

How can I calculate vertical velocity with MPU9250?

What I am trying to archive with this sensor is a variometer. The main function of variometer is to tell how many meters / second it is going up or down. I have a ESP32 Dev module connected to a MPU9250. I used this library (with a little fix),…
kukrt
  • 1,529
  • 2
  • 14
  • 26
1
vote
0 answers

mpu6050 CONFIG register

To enable low pass filter in mpu6050 the the first three bits [0:2] have to be modified in CONFIG register (0x1A) according to the required cutoff frequency. How to set/reset that particular bits? Already 255 is stored in that register (1111 1111)…
1
vote
0 answers

How to do "burst reading" of mpu6050's sensor registers?

In "MPU-6050 Register Map and Descriptions Revision 3.2" it talks about burst reading data from registers mpu6050. The data within the accelerometer sensors’ internal register set is always updated at the Sample Rate. Meanwhile, the user-facing…
Natal04ka
  • 27
  • 3
1
vote
2 answers

write continuous data to csv file

I am using a code in python to get the data of a sensor, the sensor measures vibration in different axis. the code works well but i am trying to write the output data to a csv file automatically. this is the code i am using: import smbus …
1
2 3 4 5 6 7