Raspberry Pi RTC Module User Manual
www.52pi.com
13
8. type in [sudo reboot] wait the raspberry pi restart
Then type in [sudo i2cdetect
–y 1], if RTC works ,it should be like picture below
Type in [sudo su –] change root user
Type in [modprobe i2c-dev] to load I2C device
Type in [
echo "ds1307 0x68" > /sys/class/i2c-adapter/i2c-1/new_device] add RTC to
system
Then you can use “hwclock” command to use this RTC module
If you want to know more about hwclock command you can type in “man
hwclock” to get details
A brief description like following:
Command [hwclock
–r] to get RTC time
Command [hwclock -w]set the system time to RTC time
Like following