Arduino Uno I2c master slave scenario - Help understand

Hello All,

I am preperaring to use I2c between Uno, DS1302 and a 16X2 LCD display and wonder how is the SLAVE address determined

Thanks

DS1302 ? Are you sure ? That is not I2C.

The I2C slave address is set inside the chip by the manufacturer. It is fixed.
To be more flexible, some chips have pins to be able to select an other I2C slave address.

The i2c_scanner sketch sniffs the i2c bus for devices.
http://playground.arduino.cc/Main/I2cScanner

Well in regards to the DS1302 is says to connect like so

VCC---+5 V/3.3V
GND with---GND with
The CLK---P02
The DAT---the P01
The RST---P00

Is the DS1302 using the same Arduino pins as I2C?

NOTE: I think I made a mistake and should be using DS1307 for I2c please confirm

Thanks for the tip

The DS1302 uses 3 pins and it not the same as I2C. In fact, those 3 pins communication doesn’t look like anything.

The DS1307 is a I2C device.
Don’t buy one from Ebay, they have problems. Buy one for example from Sparkfun or Adafruit.

I also wonder why there is info on DS1302

http://playground.arduino.cc/Main/DS1302#.Uy3ZP_ldVmy

but none on the DS1307

http://playground.arduino.cc/Deutsch/DS1307#.Uy3Z__ldVmw

Caltoa:
DS1302 ? Are you sure ? That is not I2C.

The I2C slave address is set inside the chip by the manufacturer. It is fixed.
To be more flexible, some chips have pins to be able to select an other I2C slave address.

The i2c_scanner sketch sniffs the i2c bus for devices.
Arduino Playground - I2cScanner

Thanks for the pointer to the script.

Search this page for the text "ds1307" (I count 19 times) :
http://playground.arduino.cc/Main/InterfacingWithHardware

And Adafruit has a super tutorial : Overview | DS1307 Real Time Clock Breakout Board Kit | Adafruit Learning System

Also the time library has DS1307 code included : Arduino Playground - HomePage

Caltoa:
Search this page for the text "ds1307" (I count 19 times) :
Arduino Playground - InterfacingWithHardware

And Adafruit has a super tutorial : Overview | DS1307 Real Time Clock Breakout Board Kit | Adafruit Learning System

Also the time library has DS1307 code included : Arduino Playground - HomePage

Very nice. Thank you.

On a side note I see 2 set of pins for I2C on the Uno. Are they internaly connected?

Yes, the A4=SDA and A5=SCL are also on the pins at the row of pin 8 to AREF.
That is because not every Arduino board has them at A4 and A5.

The ISCP with the MOSI and MOSI and so signals are also on the pins 11,12,13.

The "ICSP for USB interface" is something else, they are only connected to the chip for the usb interface. They are used to write the firmware into that chip. You never have to use those pins, and many times the pins are not soldered on the board.