Pages: [1]   Go Down
Author Topic: Changing I2C address of DS1307 RTC  (Read 1772 times)
0 Members and 1 Guest are viewing this topic.
Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello to the Arduino community!

I have 2 DS1307 RTCs and i want to connect them to the same I2C bus.

I have read the datasheet of DS1307 but i can not find something that states how to change the default address.

Is it possible to change the default address of DS1307? So i can program each of them with a different time (kind of World Time project).

Thank you smiley
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I see no indication of being able to change the address.

Why not use a single DS1307 and simply calculate the difference is software?  If you only care about time of day it's a simple operation.

-j
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17303
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I agree. Also be aware that man with one watch always knows the time, man with two watches never really sure.  smiley-wink

Lefty
« Last Edit: June 24, 2009, 07:36:41 pm by retrolefty » Logged

Greece
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys

Thanks for you replies.

Never though it that way! I will try the software approach.

And yes, imagine what a confusion would be when having multiple watches showing different times  smiley-grin
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 309
Posts: 26514
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Watch out for the tricky quarter and half hour zones!
http://en.wikipedia.org/wiki/Time_zone
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Cumming, GA
Offline Offline
Edison Member
*
Karma: 20
Posts: 1658
Ultimate DIY: Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Make me think of the Three Stooges routine when Moe asks Curly for the time? Curly pulls up his sleeve to reveal three watches and asks Moe: "What's with the three watches?" Curly replies: "That's how I tell time. See, the one on this end is three hours fast every other day. The one on the other end is two hours slow each Thursday. The one in the middle is broken and stopped at 3 o'clock" "So," says Moe, "What time is it?" Curly reaches into his pocket, pulls out a pocket watch, and says: "Four-thirty."
Logged

Pages: [1]   Go Up
Jump to: