Questions tagged [mpu6050]

The MPU-6050 is a 6DOF. In other words it has 6 Degrees Of Freedom, 3 axes of acceleration (x, y, z) and 3 axes of rotational movement (yaw, pitch, roll). It uses the I2C protocol.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

How to calibrate Mpu6050 using library?

I am using i2cdev library Code:(i did not know this code is correct or not) #include <Arduino.h> #include <MPU6050.h> #include <kalman.h> #include <stdint.h> #define ...
0
votes
0answers
32 views

Data transmission rate of accelerometer mpu6050 to arduino uno vs Sampling rate of mpu6050

mpu6050 has sampling frequency of 1kHz (mentioned in datasheet). But when i interface it with arduino uno via I2C communication (400Khz bus speed), i only get 50 raw data (each of x,y,z). There is no ...
0
votes
1answer
54 views

NodeMCU V3 and MPU6050 strange values

I am new to this platform, so please if I do something against the regular rules please let me know so I can learn. Now my problem: I have a nodeMCU V3 connected to a MPU6050. Using my Arduino Uno I ...
0
votes
0answers
18 views

Simulate MPU6050

I’m not able to occur myself an MPU6050 on these circumstances, so is it possible to simulate the MPU6050 on Proteus or a similar software ?!
0
votes
1answer
17 views

MPU6050 Accelerometer freezes/glitches after acceleration

I am trying to do rotational vector calculation using a MPU6050 chip which actually work really well with not too much drift when I rotate the MPU slowly. However, when I accelerate too much, e.g. ...
0
votes
0answers
29 views

MPU6050 stuck on same values while getting the angle as output

I am trying get the rotation value from MPU6050. I am using an Arduino Uno board. My connections are: MPU6050 Arduino VCC -> 5V GND -> GND SCL -> A5 SDA -> A4 INT -&...
0
votes
1answer
77 views

How can I fix this error “invalid operands of types 'const char [17]' and 'float' to binary 'operator+'”?

#include <Wire.h> long aX,aY,aZ,gX,gY,gZ; float rtX,rtY,rtZ,gfX,gfY,gfZ; void setup() { Serial.begin(9600); Wire.begin(); setupMPU (); } void loop() { recordAccelregisters(); ...
0
votes
1answer
34 views

How to connect MPU6050 with Arduino Uno without using A0-A5 pins?

Connecting MPU6050 with Arduino without using A0-A5 pins.
1
vote
0answers
118 views

ESP8266 NodeMCU CP2102 ESP-12E I2C with MPU 6050 Error

So the previous two questions could be found here: ESP8266 computtion error and ESP8266 not working with MPU 6050 over wire library and I2C However, it was not resolved, and with updates and debugs,...
0
votes
0answers
45 views

How to send sms message on specific area using Longitude and Latitude

Good day everyone! what code should i used for sending sms message depends on the area. the things that i used in my protoype i have MPU6050 accelometer, SIM800C GSM MODULE, NEO6MV2 GPS MODULE. So the ...
0
votes
0answers
89 views

ESP8266 not working with MPU 6050 over wire library and I2C

I'm trying to use this version of ESP8266 to access MPU 6050. However, it's not working. https://www.amazon.com/gp/product/B07HF44GBT/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1 i.e. ...
0
votes
0answers
94 views

How fast exactly can MPU 6050 bus go?

I'm using nano to access MPU 6050 chip. However, it took 5ms to update the loop and was costing me lots of time. So I wanted to find out if there's a way to accelerate the I2C bus speed. Eventually, ...
0
votes
0answers
56 views

Why does my program stop working? (MPU6050)

I'm using the DMP example from Jeff Rowberg's MPU library (with Arduino UNO) and it works well. But with this simple modification it works for a while and then stops. I don't understand why this is ...
0
votes
1answer
53 views

How to calibrate MPU 6050 thermometer?

I'm using MPU 6050 and there's a thermometer onboard. However, I looked through the chip set data sheets but could not find the instruction for temperature sensing. Could you tell me how to calibrate ...
0
votes
0answers
31 views

Arduino Multiplexing several MPU6050 with a CD74HC4067 problem

I am really new to Arduino so probably there will be a lot of problems with my code... I need to get the data from various MPU6050 with just one Arduino ONE board, I managed to get the data with one ...
0
votes
1answer
62 views

How to add another condition in the loop?

I am using mpu6050 for counting the twitch movement. The algorithm is counting the peak/twitch whenever it goes above the threshold value. Now, I want to add that the algorithm count twitch only when ...
0
votes
1answer
47 views

Establishing wireless comm. between PC and arduino pro micro to exchange speech and gyro data

I have a client project to make a wireless head-mounted mouse. What wireless module should I use so that I can exchange data between my laptop and the arduino pro micro through the USB port like a ...
0
votes
1answer
45 views

fixing drifting issue for elechouse voice recog module v3.1 and MPU6050 sensor for head mouse even after doing sensor calibration?

For my head mouse project which is based on the voice recognition module V3.1 for left click, double click, right click operations, MPU 6050 accelerometer and gyroscope for cursor movement, I am ...
-1
votes
2answers
53 views

Is it possible to get values only during vibration/movement from an Accelerometer(ADXL335/MPU6050)?

I'm trying to make a wearable motion sensor using ESP32 board and ADXL335 Accelerometer. Presently when I'm serial printing the output I'm getting the tilt value as well, which have different values ...
0
votes
0answers
43 views

MPU6050 - Why is my gyro integration incorrect?

My situation: I am able to communicate over i2c with my MPU6050 IMU I can get accelerometer and gyro data I can compute the sensor's orientation using my accelerometer Issue: when trying to compute ...
0
votes
1answer
353 views

Why is my MPU6050 DMP failing to initialize but I can still get raw accel values from MPU6050

I have been using MPU6050 modules for some time now for yaw measurements using the integrated DMP chip. Everything has gone swimmingly until yesterday, when my initialization code started reporting ...
0
votes
0answers
34 views

MPU6050 with Arduino I2C Unreliable with Motor Noise

I have an autonomous wall-tracking robot that uses relative angle changes from a I2C-connected MPU6050 module along with ultrasonic 'ping' sensors for motor speed control to acquire and then track a ...
-1
votes
1answer
46 views

Multiple MPU9250 Synced

I am interested in collecting data from 3 MPU9250 via I2C communication protocol. As I've read, I can collect measurements on the same I2C Bus from up to two MPUs. However, how can I collect Synced ...
0
votes
0answers
34 views

Can't log mpu6050 and gps data to sd card at the same time

I am working on a school project, where I have to log GPS and acceleration data to an sd card at the same time, but I cannot get it to work. Logging GPS and acceleration data separately work fine. The ...
0
votes
1answer
78 views

How to connect MPU6050 to arduino using only digital pins

I am relatively new to Arduino and microchips, but I am good at electronics. I want to connect MPU6050 accelerometer+gyroscope module to Arduino. I searched on the internet and everywhere it is said ...
0
votes
0answers
31 views

What is the best way to connect arduino uno with matlab ?? For my project

I conect MPU6050 sensor with arduino uno and read data 1-temperature 2-accelerometer 3-gyroscope on arduino And i wont to send this data to matlab to draw it What is the best way can i do that
0
votes
1answer
136 views

Connecting MPU6050 to Arduino Lilypad

To preface, I am very new to Arduino and I watched this video on YouTube. It shows how you can build a motion controlled car with Arduino and I decided to make this for my school project. One thing ...
0
votes
0answers
32 views

How to calibrate an inclined MPU 6050 on Arduino?

I'm trying to use the MPU 6050 sensor (gyroscope + accelerometer) with my Arduino UNO to get some data when walking, running and making some other moves while carrying it. The problem is that my ...
1
vote
1answer
273 views

Why Wire.write twice?

I'm checking an example for the MPU6050 and got to this part Wire.beginTransmission(0x68); //begin, Send the slave adress (in this case 68) Wire.write(0x1B); //We ...
1
vote
0answers
80 views

How does this MPU6050 Example Code Work?

I'm trying to understand the logic for one of the example Arduino programs for the MPU6050 IMU module. The entire program can be found here. There is an if() statement inside a while() loop inside ...
0
votes
0answers
36 views

MPU-6050 showing all -1s

I am following this tutorial and have an MPU-6050 connected to an Arduino Micro with the following connections VCC - 5V/3.3V GND - GND SDA - A2 SCL - A3 I'm trying to run the short example ...
0
votes
1answer
44 views

How long should TinyMPU6050.h calibration run for?

I just found a lightweight library for the MPU6050 gyro. Example below. mpu.Calibrate() never seems to end. I'm keeping it very still. When I take this out, the rest of the code works fine. https://...
0
votes
0answers
73 views

SD delay in writing to file

I am using MPU6050 on an Arduino Mega 2560 with Data logging shield v1.0 and an 8Gb Kingston Micro-SD HC card.I am facing a problem in logging and successfully writing to a file 100 values/sec. Now in ...
0
votes
0answers
35 views

Rocket deploy system

I found a code from Astronomica Messier that allows to activate a servo from a Gyroscope MPU 6050 change in direction. I followed the wiring and uploading correctly. The thing is that the MPU is ...
-1
votes
1answer
90 views

MPU6050 Gyroscope does not give reliable readings

It gives reliable readings for a couple of seconds and then it becomes unreliable. My arduino code is this: #include<Wire.h> const int MPU6050_addr=0x68; int16_t AccX,AccY,AccZ,Temp,GyroX,...
0
votes
1answer
552 views

Changing I2C address of MPU-6050

Is it possible to change I2C address of MPU-6050 ? I am trying to connect a bunch of MPU-6050 to my Arduino. Almost all of them are running on the same address. Few are running on different address. ...
0
votes
0answers
163 views

DMP of MPU6050 only shows zeros and fifo is overflown

I am trying to use the dmp of the mpu 6050 with jeff rowbergs libraries. Besides I am using an arduino nano and windows 10. Also I am using the sketch "MPU6050_DMP6.ino" from with almost no changes. ...
0
votes
1answer
125 views

Why is Arduino I2C so sensitive to RFI/EMI?

I have a 2-motor robot project that uses a MP6050 for relative heading (yaw) measurements, and I'm having problems with the I2C bus when the motors are running. I have done most of the things ...
0
votes
1answer
37 views

request for a member “X” in something not a structure or a union

i was programming a Self Balancing Robot, I am writing the code in vscode using platformio extension. when i put the code i need to get the angle out of the gyro in another file (named angle.c) ...
0
votes
1answer
92 views

MPU6050/DMP Intermittent bad data output?

I have a DFRobots MPU6050 module wired to SCL/SDA/Pin 2 on a Mega 2560 board, using Jeff Rowberg's I2CDev/MPU6050_6Axis_MotionApps libraries. I have 2.2K pullups on the MPU6050 module, tied to +5V, ...
0
votes
0answers
32 views

What is the unit of the output from dmpGetLinearAccelInWorld()

#ifdef OUTPUT_READABLE_WORLDACCEL #ifdef OUTPUT_READABLE_WORLDACCEL // display initial world-frame acceleration, adjusted to remove gravity // and rotated based on known ...
0
votes
0answers
209 views

using two mpu6050 to get more accurate and precise angles

i have been using this gyro for a while, now i am aware of all measures taken, to improve the outcome of this board. my question is: would using two at the same time improve the results? if yes how ...
0
votes
0answers
58 views

Adjusting Project Code

I am working on a project and I have such code that works perfectly making the car go back and forth, right and left but the car doesn't stop when I stop tilting the MPU6050. I need to adjust it by ...
-1
votes
2answers
116 views

Connect MPU6050 in pins other than A4 & A5

I need to use a MPU6050 gyro and a Ultrasonic sensor for my project. My Arduino Uno did not come with separate SDA and SCL pins, so I have to use the A4 and A5 pins for that purpose, and I have ...
0
votes
2answers
342 views

Using MPU-6050 without I2C

My target is to use multiple MPU-6050 at once, I searched on the internet and found that they can be hooked up really simply. Just connect in parallel and use I2C-Scanner. Then get those addresses and ...
0
votes
2answers
36 views

Cannot make LCD & Gyro work together

I'm new to this so there are some poor methods in my code when I try to introduce the LCD into the loop. My issue is that the LCD delay and the servo delay are interfering with each other. How can I ...
0
votes
0answers
476 views

SOLVED Accelerometer/gyro MPU6050 is freezing after random time

SOLVED: I "solved" the problem by cycling my Arduino's power and I haven't had an issue since. I would still like to figure out what was going on. I still think it's something in that MPU6050 library ...
1
vote
1answer
1k views

How do I know if GY-521 MPU6050 has been calibrated properly?

I am planning to use the accelerometer of MPU6050 for a project. I know that before using module (I am using GY-521 MPU6050), one needs to calibrate it. I am using code by Luis Rodenas for ...
0
votes
1answer
997 views

Remove gravity from accelerometer of MPU-6050

I am currently working with MPU-6050. Now I want to minus gravity from my accelerometer's value as we minus the offset. Here is the code: #include <Wire.h> #include <MPU6050.h> //read as ...
0
votes
1answer
114 views

Changing Baud Rate not working

I have copied this code from Github : #include <Wire.h> #include <MPU6050.h> MPU6050 mpu; // Timers unsigned long timer = 0; float timeStep = 0.01; // Pitch, Roll and Yaw values ...