Pages: [1]   Go Down
Author Topic: i2c beginner question  (Read 637 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I successfully plug an i2c RTC clock with my Arduino board.
Now, I have other i2c components that I would like to plug also (EEPROM for example, and probably more to come).

What kind of electronic component should I buy (not a serial to parallel Shift-register I guess... )?

Does someone has an example of such a wiring? ... may be also a piece of code  smiley-wink

Thanks !
« Last Edit: February 11, 2010, 10:15:11 am by strus_fr » Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What kind of electronic component should I buy

One with a different address to the first device.
Logged

Per Arduino ad Astra

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well, does that mean that I only have to put them in series?  :-/
Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, I2C is a bus, the devices are in parallel.
All the SCLKs are connected together, and all the SDAs are connected together.
Logged

Per Arduino ad Astra

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, so what is the purpose of the i2c i/o expander I saw here:
http://www.neufeld.newton.ks.us/electronics/?p=241&cpage=1

is it needed only if you have the same address?
Logged

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That device is a way of adding extra digital I/O pins to a design, it isn't any kind of bus repeater.
Logged

Per Arduino ad Astra

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 84
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, I think it is clearer now. Thanks
Logged

Pages: [1]   Go Up
Jump to: