Raspberry Pi‎ > ‎SANKI Device‎ > ‎

DS1307 (Clock)

RTC-DS1307 Clock

Hardware

 
   


Pin Connect

Please Read the above Diagram

Temerial

Load up the RTC Module 
$ sudo bash
$ sudo modprobe rtc-ds1307
  • $ sudo echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device 
  • $ sudo echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device 

Test and Result


Test :

sudo hwclock -r

Result :

Sat -1 Jan 2000 00:01:20 UTC -0.08234 seconds



Python

Reference