Pages: [1]   Go Down
Author Topic: Arduino with more i2c  (Read 89 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 67
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
     i want to use to library that use the analog pin 4 and 5 but the thing is that one is for the lcd and the second is for the ds1307. I want to keep the pin 0 and 1 for the serial communication. do you guy have some tips.

Thanks
Logged

Portugal
Offline Offline
Edison Member
*
Karma: 37
Posts: 1579
Pretending you know everything then you will learn nothing.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i2C is a BUS.
This bus uses A4(SDA pin and A5(SCLK).Your ds1307 also have those e pins and they are shared with your LCD(if it also use I2C off course)
 All you need to do is put pull-up resistors on both lines and connect LCD and ds1307  in the bus.
Every device as an ID so be sure ds1307 as a different ID from the LCD.
Quote
The slave address byte contains the 7-bit DS1307 address, which is 1101000
Your LCD should have an address also, some of then you could choose the address or it is already defined.
« Last Edit: October 16, 2013, 05:27:45 pm by HugoPT » Logged

Debian,Mint,Ubuntu
Arduino Mega 2560
Arduino Nano
Arduino Duemilanove
MAC OS Montain Lion
Raspberry PI Model B


Pages: [1]   Go Up
Jump to: