I am trying to check whether there are any resistors missing from my Arduino set up.
Basically, I have connected two GY-521 gyroscopes to my Arduino Mega 2560 using I2C (addressing each sensor separatedly by connecting one of them to VCC and the other to GND through their AD0 pins). This is the Fritzing schematic:
The thing is, I don't have an amazing grasp on electronics and I don't know if I should be connecting the SCL and SDA cables to an external pull-up resistor. As far as I know, the Wire.h library that I used to establish the I2C protocol automatically activates the internal pull-up resistors from the pins 20 and 21 (here, lines 88 and 89).
I'm guessing those two lines are referring to the 50k ohm resistor that is integrated in the ATmega2560 chip and not the 10k ohm resistors that are integrated into the circuit and cannot be disabled.
Am I about to fry my sensors or is my set up alright?
Here is my code, for reference:
#include <Wire.h>
//I2C adressing
#define MPU 0x68
#define MPU2 0x69
int16_t AcX, AcY, AcZ, AcX2, AcY2, AcZ2;
int LED = 52;
const int FC = 13;
int state_FC = 0;
int cont_FC = 0;
int prestate_FC = 0;
const int FIX = 12;
int state_FIX = 0;
void setup() {
Wire.begin();
Wire.beginTransmission(MPU);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
Wire.begin();
Wire.beginTransmission(MPU2);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
Serial.begin(9600);
pinMode(FC, INPUT);
pinMode(FIX, INPUT);
pinMode(LED,OUTPUT);
}