#contents *¤Ï¤¸¤á¤Ë [#o219512a] *¼Â¸³´Ä¶ [#n78b3ba7] *RTC¥æ¥Ë¥Ã¥È¤ÎÀ½ºî [#j02fbb7c] -DS1307¤Î¥Ç¡¼¥¿¥·¡¼¥È¤ò»²¹Í¤Ë¤·¤Æ¤¤¤Þ¤¹¡£ |&ref("01_circuit.png",,70%,);|²óÏ©¿Þ| -»îºî¤·¤¿´ðÈÄ |&ref("02_Board_a.jpg",,50%,);|&ref("02_Board_b.jpg",,50%,);| |¼ÂÁõ¡¦É½|¼ÂÁõ¡¦Î¢| *RaspberryPi¤È¤ÎÀܳ [#ue74e479] ||²óÏ©¿Þ| *Raspbian¤Î½é´üÀßÄê [#nf7dbf66] *RTC¤ÈÄÌ¿®¤·¤Æ¤ß¤ë [#t70ec231] -£±¡¥¤Þ¤º¡¢DS1307¤Î¥É¥é¥¤¥Ð¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¡£ pi@raspberrypi:~ $ dmesg | grep -i ds1307 [ 15.326130] rtc-ds1307 1-0068: rtc core: registered ds1307 as rtc0 [ 15.326196] rtc-ds1307 1-0068: 56 bytes nvram [ 15.332385] i2c i2c-1: new_device: Instantiated device ds1307 at 0x68 -£²¡¥I2CÄÌ¿®·Ðͳ¤Ç¡¢DS1307¤òǧ¼±¤·¤Æ¤¤¤ë¤«³Îǧ¡£ pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- -£³¡¥¥Ï¡¼¥É¥¦¥§¥¢¥¯¥í¥Ã¥¯ pi@raspberrypi:~ $ sudo hwclock hwclock: Timed out waiting for time change. hwclock: The Hardware Clock registers contain values that are either invalid (e.g. 50th day of month) or beyond the range we can handle (e.g. Year 2095). -£´¡¥¥·¥¹¥Æ¥à¥¯¥í¥Ã¥¯ÀßÄê¤Î³Îǧ pi@raspberrypi:~ $ timedatectl status Local time: Fri 2016-09-23 22:54:24 JST Universal time: Fri 2016-09-23 13:54:24 UTC RTC time: Sat 2000-01-01 00:00:00 Time zone: Asia/Tokyo (JST, +0900) NTP enabled: no NTP synchronized: no RTC in local TZ: no DST active: n/a ¤³¤Î»þÅÀ¤Ç¤Ï¡¢¡ÖRTC¡×¤¬2000ǯ¤Î¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£ RIGHT:2016-09-24 (ÅÚ) 07:54:13 ---- [[Elec]]