¤Ï¤¸¤á¤Ë

¼Â¸³´Ä¶­

RTC¥æ¥Ë¥Ã¥È¤ÎÀ½ºî

  • DS1307¤Î¥Ç¡¼¥¿¥·¡¼¥È¤ò»²¹Í¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
    01_circuit.png²óÏ©¿Þ
  • »îºî¤·¤¿´ðÈÄ
    02_Board_a.jpg02_Board_b.jpg
    ¼ÂÁõ¡¦É½¼ÂÁõ¡¦Î¢

RaspberryPi¤È¤ÎÀܳ

²óÏ©¿Þ

Raspbian¤Î½é´üÀßÄê

RTC¤ÈÄÌ¿®¤·¤Æ¤ß¤ë

  • £±¡¥¤Þ¤º¡¢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ǯ¤Î¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

2016-09-24 (ÅÚ) 07:54:13

Elec

¥È¥Ã¥×   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS