Board, Modul dan Shield

Modul RTC DS3231

Kompilasi oleh : Reza Ervani

RTC adalah singkaan dari Real Time Clock.

Secara sederhana modul RTC merupakan sistem pengingat Waktu dan Tanggal yang menggunkan baterai sebagai pemasok power agar modul ini tetap berjalan.

Modul ini mengupdate Tanggal dan Waktu secara berkala, sehingga kita dapat menerima Tanggal dan Waktu yang akurat dari Modul RTC kapanpun kita butuhkan.

Konfigurasi Pin RTC DS3231

DS3231 adalah perangkat dengan enam terminal, dua diantaranya tidak wajib untuk digunakan, sehingga pada dasarnya kita memiliki 4 (empat) pin utama. Empat pin utama ini namanya juga dicantumkan di sisi modul yang sebelahnya.

Nama PinDeskripsi
VCCHubungkan ke sumber tenaga positif.
GNDHubungkan ke Ground
SDASerial Data pin (I2C interface)
SCLSerial Clock pin (I2C interface)
SQWSquare Wave output pin
32K32K oscillator output

Fitur Modul RTC DS3231

  • RTC menghitung detik, menit , jam dan tahun
  • Akurasi: +2ppm hingga -2ppm untuk 0ºC hingga +40ºC , +3.5ppm hingga -3.5ppm untuk -40ºC hingga +85ºC
  • Sensor Temperatur Digital dengan akurasi ±3ºC
  • Dapat membunyikan alarm dua kali sehari
  • Output gelombang square dapat diprogram
  • Aging Trim Register
  • Antarmuka 400Khz I2C
  • Konsumsi power rendah
  • Sirkuit dapat menangani switch secara otomatis jika ada kegagalan baterai
  • Backup Batere CR2032 dengan masa hidup dua hingga tiga tahun
  • Ukuran portable

Spesifikasi Modul RTC DS3231

  • Voltase operasi Modul DS3231 : 2.3V – 5.5V
  • Dapat beroperasi pada voltase rendah
  • Mengkonsumsi sekitar 500nA saat menggunakan batere
  • Voltasi maksimum pada SDA , SCL : VCC + 0.3V
  • Temperatur operasi : -45ºC to +80ºC

Ekuivalen DS3231

DS1302, DS1307, dll

Dimana saja Modul RTC DS3231 digunakan ?

Untuk memahami penggunaan Modul RTC DS3231 perhatikan hal-hal berikut ini :

Kasus 1 : Saat anda membutuhkan tanggal dan waktu yang akurat. Meskipun banyak modul RTC di pasaran, DS3231 adalah salah satu yang paling populer karena keakuratannya. Chip yang dimilikinya menampilkan waktu yang akurat dibandingkan kebanyakan modul.

Kasus 2:  Saat konsumsi power adalah masalah, Modul RTC DS3231 mengkonsumsi saat sedikit tenaga untuk dapat berfungsi. Sehingga modul ini dapat digunakan pada sistem mobile

Case3: Where high speed communication is of need. DS3231 RTC MODULE capable of communicating with high speed TWI interface.

The DS3231 can also work on both 24Hr and 12Hr format finding applications in GPS systems. With two alarm clock and temperature sensor on board the use of DS3231 module is promoted even further than other modules.  

Bagaimana Menggunakan Modul RTC DS3231

Sebagaimana disebutkan sebelumnya, satu-satunya cara untuk berkomunikasi dengan RTC adalah melalui antarmuka I2C. Data dikirimkan ke modul atau diterima dari modul melalui antarmuka I2C. Sehingga kita dapat menerima data DATE dan TIME melalui antarmuka ini. Diagram Sirkuit default dari modul RTC DS2331 adalah tampak seperti berikut :

As shown in circuit diagram the module is connected to +5V power supply. The module can work on +5V regulated power and higher voltage may damage the module. The I2C interface is established as shown in figure. All you need to do is connect SDA of module to SDA of controller and SCL is connected to SCL of controller.

The communication between controller and module is really complex. Usually the information is sent or received byte to byte. So using libraries which are written for the module DS3231 is ideal. Using libraries makes the communication easy. All you need to do is download these libraries and call them in programs. Once the header file is included, the controller performs the communication by itself and provides the date and time for you. The alarm clock can also be set or changed easily using libraries.

 And when the power goes down, the RTC module chip draws the power from battery source connected to it automatically. So the time will be up to date. And when the system restarts the controller can get the real time from module without error.

Applications

  • Robotics
  • Gaming
  • Servers
  • Perangkat Computer
  • GPS
  • Utility power meters

2D-Model

Ukuran dalam milimeter

Leave a Reply

Your email address will not be published. Required fields are marked *