Is it possible to use DS1307 RTC for DS1302 RTC codes?

Hi, I’m a newbie here. I’ve been trying to do a project on an Arduino alarm clock using 16x2 LCD, 4x4 Keypad, a buzzer and DS1307 RTC. The only one source of codings that is similar to my project that I’ve found across the Internet is using DS1302 RTC. So, I’m wondering if it’s possible to use DS1302 RTC codes on DS1307 RTC? Your advices and tips are very appreciated.

DS1302 has a 3 wire interface (like SPI), DS1307 has an I2C interface, so my opinion is, no ds1302 code will not work for ds1307.

1 Like

I see! :slight_smile: Thank you for replying!

Read the data sheet for the RTC you have and write some code yourself to interface to it. I realise that if you are new to this that might seem daunting, but actually they are quite easy to control. The data sheet tells you what it expects and what you will get back as a response. Once you get any kind of meaningful response from the RTC you will feel very satisfied and you will have learnt a lot.

1 Like