Raspberry Pi‎ > ‎SANKI Device‎ > ‎

RTC-DS1307 Clock + EEPROM AT24C32

RTC-DS1307 Clock + EEPROM AT24C32

Hardware

 
   


Pin Connect

 Raspberry Pi RTC-DS1307 
+5  VCC 
 GND GND 
 
CLOCK
 
 SDA SDA 
 SCL SCL 
 DS -- 
 SQ -- 
BAT  -- 

AT24C36 
 
 SDA SDA 
 SCL SCL 
 DS -- 

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