Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two MPU6050 sensors to work with Arduino Uno #143

Open
bgw2117 opened this issue Mar 7, 2015 · 3 comments
Open

Two MPU6050 sensors to work with Arduino Uno #143

bgw2117 opened this issue Mar 7, 2015 · 3 comments

Comments

@bgw2117
Copy link

bgw2117 commented Mar 7, 2015

I am trying to read yaw, pitch and roll from two mpu6050 sensor simultaneously using Arduino Uno. The sensors are from sparkfun. I got A0 as high in one chip and low in the other (0x69 and 0x68).

I set up the sensors parallel as in:
A5 - SCL_1 - SCL_2
A4 - SDA_1 - SDA_2

3.3V - VIO_1 -- VIO_2 -- VDD_1 - VDD_2
GND -- GND_1 - GND_2

I also created a new interrupt for the second sensor in Jeff's code.

INT_1 -- D2
INT_2 -- D3

After all of this, I am still getting inconsistent results. Anyone has any idea why that might be?

@ghost
Copy link

ghost commented Mar 20, 2015

use a separate object for the new sensor
MPU6050 mpu;
MPU6050 mpu1(0X69);

@serenaricci
Copy link

Hello everybody,
We should connect two mpu6050 to an Arduino mega but we don't know how to connect them physically.
We know that we have to turn the i2c adress from 0x68 to 0x69 in order to have 2 different adress, one for each sensor.
Someone says that it must connect them in parallel but other thinks that it is usefull to set two digital pins high or low to "swich on/off" a sensor in order to read information alternated.
moreover we would like to read quarternion or euler data but now we are only able to receive raw data.
May anyone help us?
thanks

@ghost
Copy link

ghost commented Aug 6, 2015

@Tirocinio connect it in parallel physically, SDA SCL to sensor 1 and same to sensor 2 also. Make sure you change the address of the second sensor by connecting the address pin to high or soldering the AD0 patch(Depending on break out board). And switching sensors alternately beats the purpose of using the I2C interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants