¤Ï¤¸¤á¤Ë

¼Â¸³´Ä¶­

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).
2016-09-24 (ÅÚ) 07:54:13

Elec

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