Firstly i have to say i know less about arduino and i made a lot of research about it but i did not understand anything how can i use multiple I2C devices i want to combine I2C LCD with DS1307 please help
just hook them up. I2C is a bus.
You just connect the i2c signals and power to both devices.
i.e.
Vcc from Arduino to both devices
GND from Arduino to both devices
SCL from Arduino to both devices
SDA from Arduion to both devices
--- bill
Look at the examples that come built in to the IDE their is code examples for you to follow. Also look a the RTC code examples from the place you got the RTC from.
They are both wired the same and it is really just a matter of knowing the addresses and calling them. The code will be something like
#define DS1307_ADDRESS 0x68
LiquidCrystal_I2C lcd(0x27,20,4);
where 0x68 and 0x27 are the vital addresses.
NewStudent:
Firstly i have to say i know less about arduino and i made a lot of research about it but i did not understand anything how can i use multiple I2C devices i want to combine I2C LCD with DS1307 please help
only use ONE set of pullup resistors(4.7k), one from VCC to SCL, the other from VCC to SDA. Connect GND, VCC, SCL, SDA to each device in parallel.
Chuck.