Introduction: DIY RTC DS1307 Module and Use With Raspberry Pi
Hi Friends,
After a lot of research I came up building my own RTC using DS1307.
I will be using my RTC with Raspberry Pi.
I would have purchased a module but that was way too costly..so I decided to build my own.
Lets get started.
Step 1: Parts List
I usually shop for parts from http://electroncomponents.com
Parts Required:
- DS1307 ( I ordered one but actually got a chinese VS1307N, but config is the same)
- 8 Pin IC Socket
- Coin cell Battery Holder.
- 3v Maxel Coin cell battery
- 32.768kHz Crystal
- 4 PIN Header
- 2nos 1K Resistor
Step 2: Schematics and PCB
Step 3: Putting It All Together
I used a prefboard to put everything together.
And this is what I have.
Step 4: Setting Up on Raspberry Pi
I use Occidentials v0.2 on my Pi. It has HW SPI enabled.
I followed the instructions from http://www.abelectronics.co.uk/rtcpi-raspberrypi-t... to setup my pi and here its works great. Though had some issues, rebooted after making every change to config files.
Incase you need any help do let me know and I'll be glad to help you out to my best.
Thanks for reading.

Participated in the
Raspberry Pi Contest
8 Comments
8 years ago on Introduction
Whether the Vcc of your module connect to the 5V or 3V3 pin of P1 on the Raspberry PI?
Reply 3 years ago
I would like to know the same! since this IC need to be feed with 5V I would like to know if he is connecting the Raspberry 5V header pin to the VCC schematich pin! Logic works with 3.3V and this is fine, but voltage of power connections are unclear here.
8 years ago on Introduction
Hi Mr Suresh
Hope every things is fine with you.
Mr Suresh I want to control my house lights using RPi as a timer clock. I have brought a 8 channel relay board, RPi model A+ and an real clock timer
If its ok with you can you guide me in setting up this timer with the required script. which GPIO should I connect the timer clock. I am new to RPi.
9 years ago on Introduction
this is probably a really nooby questions, but what exactly is this thing and what is it used for?
Reply 9 years ago on Introduction
Raspberry pi does not have a RTC. It picks time from internet. This mode is used to provide date time to pi. Its a hardware clock for pi.
Reply 9 years ago on Introduction
I see, interesting.
9 years ago on Introduction
I am not too sure about that. What I understand is the voltage to pull data is not sufficient so we use resitirs to provide additional regulated voltage to the bus.
9 years ago on Introduction
Why do some people use a 0.1uF capacitor instead of the resistors? does it make a difference?