alvaro36horas
Posts: 11
Joined: Tue Jun 16, 2015 2:43 pm

How many i2c buses can I use with new RaspberryPi 2 B model?

Tue Jun 16, 2015 2:54 pm

I am not sure if the second i2C bus (pin 27 BCM0: ID_SD and pin 28 BCM1: ID_SC) is only for use with i2c EEPROM for configuration purposes.
Thank you.

User avatar
joan
Posts: 14175
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How many i2c buses can I use with new RaspberryPi 2 B mo

Tue Jun 16, 2015 3:37 pm

It is not intended for general use. Nothing prevents you from using it at the moment though. I don't know if such use will be compromised by a future update

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 7124
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: How many i2c buses can I use with new RaspberryPi 2 B mo

Tue Jun 16, 2015 7:57 pm

There's no real reason why it can't be used as long as you don't want to use the camera module - that uses the I2C-0 peripheral direct from the GPU, and there is no arbitration between the two processors.
Memory says that there are no pullups fitted to those pins, so you may need to fit your own.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

alvaro36horas
Posts: 11
Joined: Tue Jun 16, 2015 2:43 pm

Re: How many i2c buses can I use with new RaspberryPi 2 B mo

Wed Jun 17, 2015 8:55 am

I understand 6by9. ;)
Thanks 6by9 and Joan, yours answers were very useful.
Best regards,
Álvaro

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: How many i2c buses can I use with new RaspberryPi 2 B mo

Sat Jun 27, 2015 5:42 am

I use both buses all the time. Works great.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

User avatar
joan
Posts: 14175
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How many i2c buses can I use with new RaspberryPi 2 B mo

Sat Jun 27, 2015 8:05 am

Of course it is also possiible to bit-bang I2C on any pair of spare gpios.

Bit-bang does allow for repeated starts and clock stretching.

My offering.

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