タグ

DS3231に関するimanaka99のブックマーク (2)

  • ArduinoでRTCモジュールを使う

    Arduinoには時計機能が無いため、時計機能を持たせるには外部RTCモジュール等を使う。 RTCモジュールの一つであるDS3231搭載モジュールは時計を設定しておくとコイン電池でArudinoの電源オフ時も時計情報を保持し、好きな時に時計を読み出すことが出来るが、時計機能以外にも温度センサーや設定可能な方形波出力信号出力、指定日時に割り込みで起こしてくれる2つのアラーム機能、32KbitのEEPROMが付いているなど単に時計機能だけでなく便利なおまけ機能も搭載されている。 通信はI2C信号で行う。DS3231の時計機能アドレスがデフォルト0x68、AT24C32のEEPROMのデフォルトアドレスが0x57となっている。時計機能を使うだけであれば、Vcc/Gnd/SCL/SDAの4つを繋ぐだけ。(Arduino UNOの場合、SCL/SDAはA5/A4ピンでも同じ) 制御にはライブラリを使

    ArduinoでRTCモジュールを使う
  • DS1307RTC Library, For Accessing Real Time Clock (RTC) Chips

    Teensy 3.0 has a built-in RTC, so the DS1337 offers little benefit. However, the DS3231 includes a temperature compensated crystal, so it is recommended for applications requiring high accuracy. The ChronoDot board provides the DS3231 chip in an easy-to-use package. For use with Teensy 3.0, you must add pullup resistors for the SDA and SCL signals. Basic Usage RTC.get(); Reads the current date & t

    DS1307RTC Library, For Accessing Real Time Clock (RTC) Chips
  • 1