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.

Filter by
Sorted by
Tagged with
0
votes
0answers
116 views

Python I2C error with SMBus and GY-521 (MPU6050), bytes omitted resulting in crash

I am using an GY521 (MPU6050) to test the I2C interface. I am able to read data from it, but sometimes, randomly, the python interpreter would crash: IOError: [Errno 121] Remote I/O error. I have used ...
0
votes
0answers
139 views

How to read from MPU6050s FIFO buffer and light sensor simultaneously

I am facing the problem that I cannot read acceleration values of MPU6050s FIFO buffer and a signal from a light sensor at the same time properly. First of all my setup consists of a RasPi 2B where I ...
0
votes
2answers
242 views

MPU6050 data logging start and stop on button press

I would really appreciate if anyone could give an advice or directions on how to start and stop data logging for accelerometer MPU6050 with a button press. So far I have a script that I start manually ...
1
vote
3answers
2k views

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 ...
1
vote
1answer
306 views

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 ...
0
votes
1answer
1k views

MPU 6050 Accelorometer Gyroscope code is giving me an angle of 75 degrees when it's suppose to be 90 degrees

I used a bubble level and Angle apps to verify that my MPU 6050 is actually rotated 90 degrees. Even so, my code tells me that the MPU 6050 is rotated ~75 degrees when it is in fact rotated around 90 ...
0
votes
1answer
3k views

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 ...
0
votes
1answer
675 views

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 -...
0
votes
1answer
909 views

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 (...
0
votes
2answers
545 views

Raspberry Pi Detects I2C Device Sometimes

I have my MPU-92/65 connected to my Raspberry Pi and it's sometimes detected but not always. $ i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -...
2
votes
1answer
5k views

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?
0
votes
0answers
688 views

Wireless Gyro/Accelerometer Sensors for Raspberry Pi

Is there a way to have a wireless gyro/accelerometer sensor connected to Raspberry Pi? Have worked with single MPU-6050 in the past. Was wondering if there was a way to have a wireless sensor instead....
5
votes
1answer
2k views

GY-521 module / MPU-6050 3x Accelerometer not detected by i2cdetect

I got this GY-521 module (https://www.aliexpress.com/item/MPU-6050-3-Axis-gyroscope-acce-lerometer-module-3V-5V-compatible-For-Arduino/2035920870.html?spm=2114.13010608.0.0.pRpLS4) and no matter what ...
0
votes
1answer
936 views

MPU6050: Two sensors receiving same data

I am using the Raspberry Pi 3 Model B to read in two MPU6050 sensors at the same time. I faced some initial problems in setting up everything but now I am able to read in data relatively fast. My ...
0
votes
1answer
706 views

How many i2c buses?

My project involves talking to 16 IMU's at once. I can do 2 MPU6050 on one bus because of addressing, but I pretty much need 400kbps for throughput. I was looking over the pigpio library to see if I ...
0
votes
1answer
1k views

Error when execute sudo vi /etc/modules

I am following this tutorial I want to enable I2C feature on Raspi2. I need to write some line on modules.conf (.conf ? I don't remember the extension). But executing sudo vi /etc/modules on ...
4
votes
2answers
3k views

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 ...
2
votes
0answers
598 views

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 ...
2
votes
1answer
635 views

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 ...
1
vote
1answer
1k views

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 ...
1
vote
2answers
755 views

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 ...
1
vote
1answer
3k views

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 ...