I am having problems getting the i2C scanner to recognize my GY-521. I am trying to connect it without using a logic level converter if possible.
I tried setting the A4 and A5 pins as inputs, setting them low to disable the internal pull-ups using the following code:
pinMode(A4, INPUT);
pinMode(A5, INPUT);
digitalWrite(A4,LOW);
digitalWrite(A5,LOW);
However, when I upload this code, the serial monitor doesn't even update, and TX light on the Arduino Uno does not blink. This happens with either the pinMode or digitalWrite functions commented out as well. However, with both of them commented out, the I2C scanner works, but does not see any I2C devices
I also tried adding 4.7k resistors as pullup resistors between SDA and SCL and pins A4 and A5. When I do this the scanner does not find any I2C devices. The GY-521 is on (blue led is lit up) but nothing I do seems to make the I2C scanner find a I2C device.
Any other ideas?
Thank you in advance.