Page 1 of 1

Pi Zero I2C + GY521 connection

Posted: Sat Sep 09, 2017 4:00 am
by Netzer
I'm trying to talk via I2C to the gyro sensor MPU6050 which sits on a GY 521 board. But i can't get the device being detect.

I tested another i2c device (EEPROM) and got the device address detected. So i guess it has to be a hardware problem.

As far as i could find out:
  • RPi has a 1.8k pullup resistor on SDA and SLC already on board
  • GY 521 also has also a pullup resistor (2.2k) on each line on board
Could the resistors be the problem? A good resistor value in sum would be around 5k on each line?

(The wiring should be ok, there are a lot of instructions around the net and i've checked it multiple times. I use 5v on the GY521 since it has a voltage converter)

Any help appreciated!

Re: Pi Zero I2C + GY521 connection

Posted: Sat Sep 09, 2017 8:40 pm
by OutoftheBOTS
Although your r correct that the resistor on the pull up is a bit large, I have used this board myself without a problem.

Double check your wiring then in the terminal type "I2Cdetect -y 1" and see if it detects it.

Re: Pi Zero I2C + GY521 connection

Posted: Sun Sep 10, 2017 9:00 am
by bensimmo
I have the same and don't remember any problem.
Just check the connections/soldering etc