Go Down

Topic: I2C questions (which pins?) (Read 786 times) previous topic - next topic

bennyb

Hello,

I'm trying to connect a MAX1236 via I2C to my Arduino Pro board with ATMEGA328.

What is very unclear to me is which pins are used on the Arduino board for SDA/SCL

I've tried pins 20/21 (red this somewhere) also 27/28 (which doesn't work either), connecting a scope to these lines did not show any activity.

Also, how can I override the default settings (I would like to use 27/28 as they are default for ATMEGA328)

Any help greatly appreciated !

Grumpy_Mike

The correct pins are 27 / 28, these are physical pin numbers on the chip used as A4 & A5
Be sure to add 4K7 pull up resistors to each pin.

Quote
Also, how can I override the default settings

You can't it is built into the hardware.

bennyb

Are the internal pull up resistors not being used ?

Grumpy_Mike

Yes but they are too big to do the job correctly.

bennyb

Great, I'll try this tonight!

Grumpy_Mike

This explains what the signals look like without the pull up resistors:-
http://www.dsscircuits.com/articles/effects-of-varying-i2c-pull-up-resistors.html

If you are having difficulty connecting to things run an I2C bus scanner, this is just one of them:-
http://omarfrancisco.com/i2c-bus-scanner/

bennyb


Go Up