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.
195 questions
-1
votes
2
answers
114
views
How can you trace out the short-term trajectory of a 6DOF IMU
I've looked and looked on forums, wrote prompt after prompt in DeepSeek and ChatGPT but I've hit a roadblock.
I'm currently working on a project where I want to write numbers in the air using a ...
0
votes
0
answers
550
views
Connecting Multi MPU6050 using I2C on ESP32 Wroom 32D
I want to connect two MPU6050 sensor on Esp32 using the I2C protocol.
ESP32 to MPU6050 connection, I'm using -
VCC(ESP32) - VCC(MPU6050_1) - VCC(MPU6050_2)
GND(ESP32) - GND(MPU6050_1) -...
0
votes
0
answers
222
views
MPU6050 when searching is at address 0x68 but as a result shows only "0"
My circuit uses an Arduino Nano which I communicate via Α4 and A5 via I2C. There are several BMP280, HMC5883 and MPU6050 sensors on the I2C line. While I was dealing with these other two sensors, my ...
2
votes
0
answers
556
views
MPU 6050 Pitch and Roll values bouncing back to zero
I wired an MPU 6050 to an Arduino Pro Micro:
...and installed the MPU 6050 library by Electronic Cats in the Arduino IDE.
I used the IMU_Zero sketch to capture the acceleration and gyro offsets. I ...
0
votes
1
answer
844
views
How often does a mpu6050 gyro sonsor need calibration?
I want to use it in my real car for daily use to measure yaw angle when needed.
Is is ok to only calibrate it once at first then use it every day when driving without any problem? if not, how often ...
1
vote
2
answers
761
views
Stabilize data from four gyros/accelerometer [closed]
I am currently working on a university project. My aim is to get a rough estimate of the posture of a person's back. For this I have built a system that collects the data from 4 MPU6050 at a central ...
3
votes
2
answers
1k
views
Adafruit MPU-6050 and adafruit I2C Multiplexer
I have 3 adafruit MPUs hooked up to adafruit I2c Multiplexer. All of which is hooked up to a Arduino uno.
Attached is also my code.
/* Assign a unique ID to this sensor at the same time */
/*...
2
votes
0
answers
281
views
Extract Static Acceleration from MPU6050 using Formula
I am trying to implement a research paper for my project and there is a formula which I am failing to interpret:
According to the research paper, we extract the static acceleration component for each ...
2
votes
2
answers
3k
views
MPU 6050 only reads 0 in output
I am new to using MPU 6050. I am stuck at a basic code of getting readings from the sensor. The code I used is attached below. Its the one with GY 521 breakout board. Concluding that my sensor is ...
3
votes
3
answers
4k
views
MPU6050 does not give output
I need help getting my MPU 6050 to actually give me data. As of right now, my program is only reading 0s from the gyroscope and when I move it, the values all go to -1 and the program just stops until ...
2
votes
3
answers
3k
views
MPU6050 Calibrating Accelerometer
I recently got an MPU6050 and I noticed the accelerometer data was a bit off, especially on the Z axis.
I'm running it on a Teensy 4.0 with Adafruit's MPU6050 library and basic example code: https://...
0
votes
2
answers
590
views
Why float and not 16-bit Integer? Mpu6050 with atmega328P
I've been trying to follow this example code for interfacing my atmega328P with Mpu6050:
https://www.instructables.com/Accelerometer-MPU-6050-Communication-With-AVR-MCU/
And was wondering a couple of ...
0
votes
2
answers
937
views
Serial and I2C not working together
I have very peculier problem. When I run this code SSD1306 fails to initialize. Output at serial console is:
20:26:33.194 -> MPU6050 OLED demo
20:26:33.532 -> SSD1306 allocation failed
#include &...
1
vote
0
answers
931
views
Using MPU6050 with ESP32 Cam- MPU Not Detected
Hi I'm trying to build a self balancing robot using my esp32 cam, but so far I haven't been able to setup my mpu6050 with it.I'm using the adafruit libraries with the given example sketches.
The only ...
1
vote
1
answer
111
views
Having trouble with MPU6050 and AFE4404 printing together, potential conflict?
I am having trouble getting the two sensors to work together. There are a total of four sensors connected to the Arduino, and while the MPU and AFE individually work fine with the other two sensors, ...
1
vote
0
answers
217
views
Connecting MPU6050 to Arduino Due but using Jeff Rowbergs Library
I am working on a personal project in which I need to collect accurate data from the MPU6050 using an Arduino Due.
I can interface and read data from the MPU using the SLC and SDA pins and the "...
2
votes
1
answer
1k
views
MPU6050 FIFO overflow and freezing problems
I'm using the sensor MPU6050 to control movements of my robotic arm. The code works fine when it is a standalone program but I keep encountering 'FIFO overflow' when the code is compiled into the main ...
1
vote
0
answers
172
views
Why do I get error "Error compiling for board Arduino Uno" with my mpu6050 video stabilization code?
This is the code I'm working with. I'm using it for video stabilization system. It was working fine but for some reason now it gives me this error? Is it because I deleted the library and installed ...
1
vote
1
answer
375
views
Why am I only getting -1 values in the Serial Monitor, when interfacing with the MPU 6050?
I am trying to smoke test my Seeeduino XIAO (Arduino-compatible) board with an IMU sensor, the MPU 6050. I mainly care about the accelerometer and gyroscope values.
But when I run my Arduino code on ...
1
vote
1
answer
1k
views
Stepper motor slow when reading from MPU 6050 sensor
I'm trying to get an inverted pendulum project working (following the instructions here), and while my stepper motor moves the cart just fine when that's the only code in the Arduino sketch, as soon ...
1
vote
0
answers
169
views
Getting some strange data from an MPU-6050
I'm trying to create an IMU unit using MPU-6050 unit.
I've got 100k data records, and this is the result:
It seems to me that's a kind of offset in gx. Why?
Why I'm getting this kind of drifting in ...
1
vote
2
answers
1k
views
How to fix HC05 burning even after while using voltage regulator?
I'm using two circuits for my wireless head mouse project, one of them is a transmitter circuit with Arduino Pro Micro, HC05 Bluetooth module, Elechouse Voice Recognition Module V3.1, GY-521 module ...
2
votes
0
answers
242
views
Get deceleration (negative acceleration when apply brake force)
I want to build a device to measure deceleration force when a car brakes. I am using a MPU6050 for get data and I read from it acceleration on X,Y,Z axes in m/s2 and also it gives me gyro in degrees/...
3
votes
1
answer
3k
views
How to implement a tilt compensated compass?
So i was trying to implement a tilt compensated compass, using HMC5883L and MPU6050. The problem i am facing is, there are 2 equations for tilt compensation
Tilt Compensated X: X,Y,Z are compass ...
1
vote
0
answers
55
views
connect gy512 is not visible by i2c bus
I am a newbie. Please help to make gy512 visible on i2c interface.
i did
sda - a4
scl - a5
vcc - 5v
gnd - gnd
I have used i2c sticker scatch and use PC monitor.