DIY RTC DS1307 Module and Use With Raspberry Pi

by sureshmali in Circuits > Raspberry Pi

26605 Views, 71 Favorites, 0 Comments

DIY RTC DS1307 Module and Use With Raspberry Pi

IMG_0368.jpg

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.

Parts List

IMG_0361.jpg

I usually shop for parts from http://electroncomponents.com

Parts Required:

  1. DS1307 ( I ordered one but actually got a chinese VS1307N, but config is the same)
  2. 8 Pin IC Socket
  3. Coin cell Battery Holder.
  4. 3v Maxel Coin cell battery
  5. 32.768kHz Crystal
  6. 4 PIN Header
  7. 2nos 1K Resistor

Schematics and PCB

DS1307_Schem.jpg
PCB_DS1307.jpg

Putting It All Together

IMG_0367.jpg
IMG_0366.jpg

I used a prefboard to put everything together.

And this is what I have.

Setting Up on Raspberry Pi

Putty_HWCLOCK.PNG

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.