Download Print this page

Raspberry Pi 52PI-RPI-RTC User Manual page 13

Rtc expansion module

Advertisement

Raspberry Pi RTC Module User Manual
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
13
www.52pi.com

Advertisement

loading
Need help?

Need help?

Do you have a question about the 52PI-RPI-RTC and is the answer not in the manual?

Questions and answers

Related Products for Raspberry Pi 52PI-RPI-RTC