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
20 views

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

Connecting MPU6050 with Arduino without using A0-A5 pins.
-1
votes
0answers
18 views

How to interface 5 flex sensor and MPU6050 with Arduino Uno at the same time? [closed]

Circuit for connecting 5 flex sensor and MPU6050 at the same time and to address them in program.
1
vote
0answers
64 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
29 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
50 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
31 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, ...
-1
votes
0answers
17 views

Mpu6050 Air mouse jitter when sensitivity is increased

Hello guys i have a pro micro with mpu6050 code working on my 9250, its an air mouse and i need make it more precise so i increased sensitivity but it start to drift a little every few seconds... Any ...
0
votes
0answers
37 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
27 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
22 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
60 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
27 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
29 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
40 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
27 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
114 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
24 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
31 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
27 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
49 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
28 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
103 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
29 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
151 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
67 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
0answers
30 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
56 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 ...
0
votes
1answer
69 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
379 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
122 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
67 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
27 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
63 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
28 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
149 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
88 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
291 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
0answers
157 views

MPU-6050 Interrupt Sample Code

does anyone know where I could find some working code the demonstrates how to use the interrupt pin on the MPU-6050? My goal is to be able to shake the sensor in order to trigger an interrupt which ...
0
votes
2answers
35 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
296 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
766 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
757 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
84 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 ...
0
votes
2answers
191 views

MPU-6050 with Arduino - postmortem

I'm working with MPU-6050 with Arduino Uno. I copied the code below from Arduino Playground - MPU6050. Code : // MPU-6050 Short Example Sketch // By Arduino User JohnChi // August 17, 2014 ...
-1
votes
1answer
66 views

Arduino help adding a second mpu 6050 sensor my working code

Background information: I currently have this arduino code that uses one mpu 6050 sensor to get angles in the x, y, and z directions and then display them to the user nicely. Code can be found here ...
-1
votes
1answer
63 views

Is it possible to send data from device (e.g. MPU6050) to Arduino through cut/hacked USB cable?

So I understand the USB cable consists of VCC, GND and Data+, Data-. Is it possible to connect an MPU-6050 gyro to these 4 pins, especially data+/-, and still receive them normally through the SCL/...
0
votes
0answers
190 views

MPU9250 Arduino code for tilt angle code

I want code for MPU9250 to check if it is tilted. If so, it should blink led. Please help me with code. I'm using following code to check the xyz-axis. #include "MPU9250.h" MPU9250 mpu; void setup() ...