Questions tagged [mpu6050]

The MPU6050 is a Motion and Position sensor device that operates on an I2C bus. Importantly it is a 3.3 Volt device that is popularly used to provide 6-axis information with other devices and not just the Raspberry Pi - so connection of modules incorporating it may need special attention/configuration to work on the RPi.

The device is made by InvenSense and the main product page is here.

Some past question and answers have suggested that specific set up steps may be required, e.g. not-all-devices-that-are-connection-via-i2c-are-showing.

27 questions
4
votes
2 answers

MPU6050 Python Library

I would like to use my MPU6050 gyro/accelerometer in some projects but I can't find a good library. I would prefer it to be in python but can deal with C++. I want something where I can do a simple detection of the gyro. I don't want extreme…
NULL
  • 2,240
  • 8
  • 28
  • 49
3
votes
1 answer

Change I2C Pins on Raspberry Pi

On a RPi 3, default SDA-I2C and SCL-I2C are assigned to pins 3 and 5 (same as GPIO02 and GPIO03). Is possible to change to another pins? How can I do this?
Roberto Franco
  • 33
  • 1
  • 1
  • 3
2
votes
0 answers

I2C and camera issues

Is there any known issue by using I2C components and the RPi Camera at the same time? I am using: Raspberry Pi B+, running Raspbian (updated and upgraded to the latest versions) MPU6050 3 Axis Gyroscope and Accelerometer Raspberry Pi Camera…
user22948
2
votes
1 answer

Not all devices that are connection via I2C are showing

I have linked this chip to my raspberry pi. I used these instructions to do it then installed everything I was told to install using these instructions. For some reason only two of the devices are showing when I run sudo i2cdetect -y 0 as you can…
cross
  • 21
  • 2
2
votes
1 answer

Using MPU9250 / 6500 with Raspberry Pi 4

The senson is detected when I do i2cdetect -y 1 But I cannot find any tutorial regarding MPU9250/6500 for RPi4. All I get is of MPU6050.. so can I use the 6050's libraries? Also almost every guide out there is mostly for Pico using…
44yu5h
  • 121
  • 8
2
votes
1 answer

MPU-6050 is not being detected by Raspberry Pi

I am trying to interface MPU-6050 with the Raspberry Pi, Since it require I2C connections so I have connected using the following pins: 3.3V connect to VCC SDA connect to SDA SCL connect to SCL Ground connect to GND However, when I check if the…
Sufiyan Ghori
  • 433
  • 9
  • 18
1
vote
3 answers

Self-balancing robot using Raspberry 3b+

I have built a self balancing robot using raspberry pi 3b+. I am not able to reduce the response time. Hence, the robot doesn't balance properly. I am using MPU 6050, 150rpm 12V DC motor. I checked mpu 6050 and the motors individually and they seem…
ece12345
  • 11
  • 2
1
vote
1 answer

Rasberry with MPU6050 detects strange peaks in acceleration and gyroscope measurements

I am setting up the MPU 6050 with Raspberry 3b + for measuring acceleration and gyroscope. I made some tests with the sensor MPU 6050 at rest (just on the table, without motion). The measurements show some strange high peaks (two green peaks in…
hoang tran
  • 113
  • 3
1
vote
1 answer

How to set up MPU6050's registers properly?

I would like to use the MPU6050 as IMU in my quadcopter. I've been Googling for 2 days, but I can't find anything where this is explained well. I know that the settings are not general, but I hope there exists something like a scheme. I've read…
Alex
  • 195
  • 2
  • 10
1
vote
2 answers

MPU6050 gyroscope not responding

I was testing my MPU6050 with Raspberry PI and got accelerometer(X,Y,Z) and gyroscope(X,Y,Z) data forming on registers at decentely high sample rate. Looks like I've accidently fed +5v from RPI to SDA or SCL the other day and weird things started to…
user3081123
  • 123
  • 4
1
vote
1 answer

I2C OS error when activating motors

I'm building an autonomous robot controlled by a Raspberry Pi 3 and I'm having a problem reading the sensor. I'm using an H Bridge board to activate the motors and an I2C gyroscope sensor (MPU6050) both work perfectly in separate tests, but when I…
1
vote
1 answer

Seperate GPIO pin outputs influencing sensor readings

I'm controlling a Nema 17 stepper motor with an L298n driver via BCM pins 5, 6, 26, 25. Basically, all I'm doing is alternating them between HIGH and LOW. Alongside, I'm reading the acceleration measurements of a MPU6050 sensor. However, as soon as…
cheesus
  • 121
  • 3
0
votes
2 answers

OSError: [Errno 121] Remote I/O error or pigpio.error: 'I2C read failed' on MPU6050

So I use MPU6050 to get acceleration from stepper motor linear rail movement(steper motor working in thread, I use pigpio for the motor) by make the MPU6050 can work on threading and it can show data on gui graphic (I use pyqt to create GUI dan…
Jan sebastian
  • 103
  • 2
  • 5
0
votes
1 answer

Raspberry Pi not detecting MPU6050 with i2cdetect

I am trying to connect my GY-521 MPU6050 to my Raspberry Pi Zero W using I2C detect but I'm unable to find the MPU6050 on the table. The results using i2cdetect: pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d …
ALDNJML
  • 1
  • 2
0
votes
1 answer

Using the HMC5883L on the GY87

This was touched on in this question, but I was unable to get the solution to work: (Not all devices that are connection via I2C are showing) I have a GY-87 multi-sensor module and can get the IMU (MPU6050) and Baro to work without issue. Those are…
Speedy
  • 1
  • 3
1
2