Netzer
Posts: 1
Joined: Sat Sep 09, 2017 3:56 am

Pi Zero I2C + GY521 connection

Sat Sep 09, 2017 4:00 am

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!

User avatar
OutoftheBOTS
Posts: 711
Joined: Tue Aug 01, 2017 10:06 am

Re: Pi Zero I2C + GY521 connection

Sat Sep 09, 2017 8:40 pm

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.

User avatar
bensimmo
Posts: 4654
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Pi Zero I2C + GY521 connection

Sun Sep 10, 2017 9:00 am

I have the same and don't remember any problem.
Just check the connections/soldering etc

Return to “Interfacing (DSI, CSI, I2C, etc.)”