{"id":19944,"date":"2021-09-11T05:58:15","date_gmt":"2021-09-11T05:58:15","guid":{"rendered":"https:\/\/electropeak.com\/learn\/?p=19944"},"modified":"2023-05-27T13:30:28","modified_gmt":"2023-05-27T13:30:28","slug":"interfacing-ds3231-real-time-clock-rtc-module-with-arduino","status":"publish","type":"post","link":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/","title":{"rendered":"Interfacing DS3231 Real Time Clock RTC Module with Arduino"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"19944\" class=\"elementor elementor-19944\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e7b732a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e7b732a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ba026c0\" data-id=\"ba026c0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-62a1cf07 elementor-widget elementor-widget-heading\" data-id=\"62a1cf07\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">DS3231 RTC Module Features <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-57d98708 elementor-widget elementor-widget-text-editor\" data-id=\"57d98708\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>DS3231 real time clock module features high accuracy and low power consumption. This RTC module maintains seconds, minutes, hours, day, date, month, and year information. In this module, the date is set based on whether the month is 29, 30 or 31 days, and also whether it is leap year or not. This module can be used in 12-hour and 24-hour formats.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-9990059 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9990059\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-0d88e2b\" data-id=\"0d88e2b\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7bca9b8 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"7bca9b8\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_position&quot;:&quot;absolute&quot;}\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"fas fa-pen\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d9fe2b5 elementor-widget elementor-widget-heading\" data-id=\"d9fe2b5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Note<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c65e10c elementor-widget elementor-widget-text-editor\" data-id=\"c65e10c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>The DS3231 module is available in two different types on the market. There is actually no difference between the two types in terms of functionality and operation, and only the appearance and pin assignments are different.<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-f44093d elementor-widget elementor-widget-spacer\" data-id=\"f44093d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66635b5 elementor-widget elementor-widget-image\" data-id=\"66635b5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"DS3231-1\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjMyOTMsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wOVwvRFMzMjMxLTEuanBnIn0%3D\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1.jpg\" class=\"attachment-large size-large wp-image-23293\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1-400x300.jpg 400w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-1-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4fe3faa8 elementor-widget elementor-widget-heading\" data-id=\"4fe3faa8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">DS3231 RTC Module Pinout<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3259a92 elementor-widget elementor-widget-text-editor\" data-id=\"3259a92\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Two types of DS3231 RTC modules are available in the market. One of the types of the DS3231 RTC module has <strong>6 pins:<\/strong><\/p><ul><li><strong>INT<\/strong>: interrupt output<\/li><li><strong>COT<\/strong>: Clock output<\/li><li><strong>SCL<\/strong>: Serial Clock Input for I2C protocol<\/li><li><strong>SDA<\/strong>: Serial Data Input \/ Output for I2C protocol<\/li><li><strong>VCC<\/strong>: Module power supply &#8211; 5V<\/li><li><strong>GND<\/strong>: Ground<\/li><\/ul><p>You can see the pinout of this module in the <strong>image below.<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0a96706 elementor-widget elementor-widget-image\" data-id=\"0a96706\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Pin1.jpg\" class=\"attachment-large size-large wp-image-23295\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Pin1.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Pin1-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Pin1-400x300.jpg 400w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Pin1-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-788cc687 elementor-widget elementor-widget-text-editor\" data-id=\"788cc687\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The other type of the DS3231 module <strong>has 5 pins<\/strong>:<\/p><ul><li><strong>VCC<\/strong>: Module power supply \u2013 5 V<\/li><li><strong>SCL<\/strong>: Serial Clock Input for I2C protocol<\/li><li><strong>SDA<\/strong>: Serial Data Input \/ Output for I2C protocol<\/li><li><strong>NC<\/strong>: Not used<\/li><li><strong>GND<\/strong>: Ground<\/li><\/ul><p>You can see the pinout of this module in the <strong>image below.<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-12293f8e elementor-widget elementor-widget-image\" data-id=\"12293f8e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Pin-2.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"DS3231-Pin\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTk5NTMsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvRFMzMjMxLVBpbi0yLmpwZyJ9\">\n\t\t\t\t\t\t\t<img decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Pin-2.jpg\" class=\"attachment-large size-large wp-image-19953\" alt=\"DS3231 RTC Module Pinout\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Pin-2.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Pin-2-533x400.jpg 533w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-737a4c7 elementor-widget elementor-widget-heading\" data-id=\"737a4c7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Required Materials<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-534217d7 elementor-widget elementor-widget-image\" data-id=\"534217d7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/Required-Materials.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"Required-Materials\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MjMzMDAsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wOVwvUmVxdWlyZWQtTWF0ZXJpYWxzLmpwZyJ9\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"500\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/Required-Materials.jpg\" class=\"attachment-large size-large wp-image-23300\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/Required-Materials.jpg 600w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/Required-Materials-480x400.jpg 480w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ca2d110 elementor-widget elementor-widget-heading\" data-id=\"ca2d110\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Hardware Components<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-19eaff6a elementor-widget elementor-widget-html\" data-id=\"19eaff6a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"70%\">Arduino UNO R3 \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/electropeak.com\/arduino-uno-r3-original\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">DS3231 I2C Real Time Clock RTC Module\r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/electropeak.com\/extremely-accurate-rtc-module\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">DS3231 Real Time Clock RTC Module for Arduino & Raspberry Pi\r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/electropeak.com\/high-precision-clock-module-ds3231\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n\t<td width=\"70%\">Male to Male jumper wire \r\n<\/td>\r\n\t<td class=\"center\" width=\"10%\">\u00d7<\/td>\r\n    <td class=\"center\" width=\"10%\">1<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/electropeak.com\/30cm-40p-male-to-female-jumper-wire\" target=\"_blank\"><i class=\"fa fa-shopping-cart\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7353548b elementor-widget elementor-widget-heading\" data-id=\"7353548b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Software Apps<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7f57a904 elementor-widget elementor-widget-html\" data-id=\"7f57a904\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"table-2\">\r\n<table width=\"100%\" class=\"zebra\">\r\n<tbody>\r\n\r\n<tr>\r\n\t<td width=\"90%\">Arduino IDE<\/td>\r\n\t<td class=\"center\" width=\"10%\"><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\"><i class=\"fa fa-info\" style=\"\"><\/i><\/a><\/td>\r\n<\/tr>\r\n\r\n\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7cc03fc2 elementor-widget elementor-widget-heading\" data-id=\"7cc03fc2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Interfacing DS3231 RTC Module with Arduino <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b80ed37 elementor-widget elementor-widget-heading\" data-id=\"b80ed37\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 1: Circuit<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-085f930 elementor-widget elementor-widget-text-editor\" data-id=\"085f930\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The following circuits show how you should connect Arduino to DS3231 module. Connect wires accordingly.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ba5cf61 elementor-widget elementor-widget-image\" data-id=\"ba5cf61\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-wire1.jpg\" class=\"attachment-large size-large wp-image-23298\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-wire1.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-wire1-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-wire1-400x300.jpg 400w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-wire1-768x576.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-32896216 elementor-widget elementor-widget-image\" data-id=\"32896216\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"DS3231-wire\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTk5NTUsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvRFMzMjMxLXdpcmUtMS5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"600\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1.jpg\" class=\"attachment-large size-large wp-image-19955\" alt=\"DS3231 Module Arduino circuit\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1-533x400.jpg 533w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1-768x576.jpg 768w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-wire-1-400x300.jpg 400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aebed51 elementor-widget elementor-widget-heading\" data-id=\"aebed51\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 2: Installing Library<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e2c56e9 elementor-widget elementor-widget-text-editor\" data-id=\"e2c56e9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>From this part, everything is the same for both types of the DS3231 RTC module. Download the\u00a0<b>DS3231_library<\/b> from the link below. Then, go to &#8220;Include Library&#8221; and install it.<\/p><p><div class='w3eden wpdm_package_shortcode'><!-- WPDM Link Template: Call to Action 3 -->\n\n<div class=\"well c2a3\">\n    <div class=\"media\">\n        <div class=\"mr-3\" align=\"left\">\n            <img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/zip.svg\" \/>\n        <\/div>\n        <div class=\"media-body\">\n            <h3 class=\"media-heading\" style=\"padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt;\">\n                <a style=\"font-weight: 700\" href=\"https:\/\/electropeak.com\/learn\/download\/ds3231-rtc-module-library-file\/\">DS3231 RTC Module Library File<\/a>\n                <span style=\"font-size:8pt;font-weight:300\" class=\"text-muted ml-4\">\n                    <i class=\"fas fa-hdd mr-1\"><\/i> 11.83 KB\n                    <i class=\"ml-3 far fa-arrow-alt-circle-down mr-1\"><\/i> 2448 downloads\n                <\/span>\n            <\/h3>\n            &#8230;\n        <\/div>\n        <div class=\"ml-3\" align=\"right\">\n            <a class='wpdm-download-link download-on-click btn btn-primary '  rel='nofollow' href='#' data-downloadurl=\"https:\/\/electropeak.com\/learn\/download\/ds3231-rtc-module-library-file\/?wpdmdl=19960&#038;refresh=6aaa7f85128131789558661\">Download<\/a>\n        <\/div>\n    <\/div>\n\n<\/div>\n<style>\n    .well.c2a3 .btn {\n        padding: 11px 30px;\n        font-size: 11pt;\n    }\n\n    .well.c2a3 .media-body {\n        font-size: 11pt;\n    }\n\n    .well.c2a3 .wpdm_icon {\n        height: 42px;\n        width: auto;\n    }<\/style>\n<\/div><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-631da25 elementor-widget elementor-widget-image\" data-id=\"631da25\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Library-1.jpg\" data-elementor-open-lightbox=\"yes\" data-elementor-lightbox-title=\"DS3231-Library\" data-e-action-hash=\"#elementor-action%3Aaction%3Dlightbox%26settings%3DeyJpZCI6MTk5NTYsInVybCI6Imh0dHBzOlwvXC9lbGVjdHJvcGVhay5jb21cL2xlYXJuXC93cC1jb250ZW50XC91cGxvYWRzXC8yMDIxXC8wMVwvRFMzMjMxLUxpYnJhcnktMS5qcGcifQ%3D%3D\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"619\" height=\"375\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Library-1.jpg\" class=\"attachment-large size-large wp-image-19956\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Library-1.jpg 619w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-Library-1-600x363.jpg 600w\" sizes=\"(max-width: 619px) 100vw, 619px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-53270e91 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"53270e91\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-df673f6\" data-id=\"df673f6\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;gradient&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7cfd7b83 elementor-view-stacked elementor-widget__width-auto elementor-absolute elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"7cfd7b83\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;_position&quot;:&quot;absolute&quot;}\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-lightbulb\"><\/i>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2f8fd4c5 elementor-widget elementor-widget-heading\" data-id=\"2f8fd4c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">Note<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-447a33e elementor-widget elementor-widget-text-editor\" data-id=\"447a33e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you need more help with installing a library on Arduino, read this tutorial:\u00a0<a href=\"https:\/\/electropeak.com\/learn\/how-to-install-an-arduino-library\/\"><em>How to Install an Arduino Library<\/em><\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-7dc791cb elementor-widget elementor-widget-heading\" data-id=\"7dc791cb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Step 3: Code<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6a461e2f elementor-widget elementor-widget-text-editor\" data-id=\"6a461e2f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Upload the following code to your Arduino. Then, open Serial Monitor.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-184b4ab3 elementor-widget elementor-widget-html\" data-id=\"184b4ab3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class=\"line-numbers lang-arduino\"><code>   \/*  \r\nmodified on Nov 22, 2020\r\nModified by MehranMaleki from Arduino Examples\r\nhttps:\/\/electropeak.com\/learn\/\r\n*\/\r\n\r\n#include &lt;Wire.h&gt;\r\n#include &lt;ds3231.h&gt;\r\n \r\nstruct ts t; \r\n \r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  Wire.begin();\r\n  DS3231_init(DS3231_CONTROL_INTCN);\r\n  \/*----------------------------------------------------------------------------\r\n  In order to synchronise your clock module, insert timetable values below !\r\n  ----------------------------------------------------------------------------*\/\r\n  t.hour=3; \r\n  t.min=0;\r\n  t.sec=0;\r\n  t.mday=14;\r\n  t.mon=11;\r\n  t.year=2020;\r\n \r\n  DS3231_set(t); \r\n}\r\n\r\nvoid loop() {\r\n  DS3231_get(&amp;t);\r\n  Serial.print(&quot;Date : &quot;);\r\n  Serial.print(t.mday);\r\n  Serial.print(&quot;\/&quot;);\r\n  Serial.print(t.mon);\r\n  Serial.print(&quot;\/&quot;);\r\n  Serial.print(t.year);\r\n  Serial.print(&quot;\\t Hour : &quot;);\r\n  Serial.print(t.hour);\r\n  Serial.print(&quot;:&quot;);\r\n  Serial.print(t.min);\r\n  Serial.print(&quot;.&quot;);\r\n  Serial.println(t.sec);\r\n\r\n  delay(1000);\r\n}\r\n<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6b1cb3f4 elementor-widget elementor-widget-text-editor\" data-id=\"6b1cb3f4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In this code, first, the time information including second, minute, day, month, year and century are set as the starting point and the module starts working and is updated every second. Then, every second, the information is received from the module and displayed in the Serial Monitor.<\/p>\n<p>The output is as follows:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf62f5c elementor-widget elementor-widget-image\" data-id=\"cf62f5c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"438\" src=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-serial-1.jpg\" class=\"attachment-large size-large wp-image-19957\" alt=\"\" srcset=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-serial-1.jpg 800w, https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/01\/DS3231-serial-1-600x329.jpg 600w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ab90054 elementor-widget elementor-widget-text-editor\" data-id=\"ab90054\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>With these steps, you can easily interface the DS3231 RTC module with Arduino and utilize its precise timekeeping capabilities for your projects.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>DS3231 RTC Module Features DS3231 real time clock module features high accuracy and low power consumption. This RTC module maintains seconds, minutes, hours, day, date, month, and year information. In this module, the date is set based on whether the month is 29, 30 or 31 days, and also whether it is leap year or [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":23288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1842],"tags":[4432],"platform":[1071],"bytype":[1075],"difficulty":[1077],"related_products":[2459,4508],"class_list":["post-19944","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-clocks","tag-date-time","platform-arduino","bytype-hookup-guides","difficulty-beginner","related_products-misc-03-003","related_products-misc-03-004"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak<\/title>\n<meta name=\"description\" content=\"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak\" \/>\n<meta property=\"og:description\" content=\"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"Electropeak\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-11T05:58:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-27T13:30:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mehran Maleki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mehran Maleki\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/\"},\"author\":{\"name\":\"Mehran Maleki\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/person\\\/66714d7ed628304044d2655e23cc2f51\"},\"headline\":\"Interfacing DS3231 Real Time Clock RTC Module with Arduino\",\"datePublished\":\"2021-09-11T05:58:15+00:00\",\"dateModified\":\"2023-05-27T13:30:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/\"},\"wordCount\":428,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/DS3231-Teaser.jpg\",\"keywords\":[\"Date &amp; Time\"],\"articleSection\":[\"Clocks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/\",\"name\":\"Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/DS3231-Teaser.jpg\",\"datePublished\":\"2021-09-11T05:58:15+00:00\",\"dateModified\":\"2023-05-27T13:30:28+00:00\",\"description\":\"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#primaryimage\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/DS3231-Teaser.jpg\",\"contentUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/DS3231-Teaser.jpg\",\"width\":1200,\"height\":900},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Interfacing DS3231 Real Time Clock RTC Module with Arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#website\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\",\"name\":\"Electropeak\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#organization\",\"name\":\"ElectroPeak\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/logo-electropeak-v3-square.png\",\"contentUrl\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/logo-electropeak-v3-square.png\",\"width\":620,\"height\":620,\"caption\":\"ElectroPeak\"},\"image\":{\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/electropeak.com\\\/learn\\\/#\\\/schema\\\/person\\\/66714d7ed628304044d2655e23cc2f51\",\"name\":\"Mehran Maleki\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g\",\"caption\":\"Mehran Maleki\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak","description":"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/","og_locale":"en_US","og_type":"article","og_title":"Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak","og_description":"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.","og_url":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/","og_site_name":"Electropeak","article_published_time":"2021-09-11T05:58:15+00:00","article_modified_time":"2023-05-27T13:30:28+00:00","og_image":[{"width":1200,"height":900,"url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg","type":"image\/jpeg"}],"author":"Mehran Maleki","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mehran Maleki","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#article","isPartOf":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/"},"author":{"name":"Mehran Maleki","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/person\/66714d7ed628304044d2655e23cc2f51"},"headline":"Interfacing DS3231 Real Time Clock RTC Module with Arduino","datePublished":"2021-09-11T05:58:15+00:00","dateModified":"2023-05-27T13:30:28+00:00","mainEntityOfPage":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/"},"wordCount":428,"commentCount":2,"publisher":{"@id":"https:\/\/electropeak.com\/learn\/#organization"},"image":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg","keywords":["Date &amp; Time"],"articleSection":["Clocks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/","url":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/","name":"Interfacing DS3231 Real Time Clock RTC Module with Arduino|Electropeak","isPartOf":{"@id":"https:\/\/electropeak.com\/learn\/#website"},"primaryImageOfPage":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#primaryimage"},"image":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg","datePublished":"2021-09-11T05:58:15+00:00","dateModified":"2023-05-27T13:30:28+00:00","description":"Learn How to interface a DS3231 Real Time Clock RTC Module with Arduino. This tutorial covers the features, pinout,connect and program the DS3231 module.","breadcrumb":{"@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#primaryimage","url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg","contentUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2021\/09\/DS3231-Teaser.jpg","width":1200,"height":900},{"@type":"BreadcrumbList","@id":"https:\/\/electropeak.com\/learn\/interfacing-ds3231-real-time-clock-rtc-module-with-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/electropeak.com\/learn\/"},{"@type":"ListItem","position":2,"name":"Interfacing DS3231 Real Time Clock RTC Module with Arduino"}]},{"@type":"WebSite","@id":"https:\/\/electropeak.com\/learn\/#website","url":"https:\/\/electropeak.com\/learn\/","name":"Electropeak","description":"","publisher":{"@id":"https:\/\/electropeak.com\/learn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/electropeak.com\/learn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/electropeak.com\/learn\/#organization","name":"ElectroPeak","url":"https:\/\/electropeak.com\/learn\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/logo\/image\/","url":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2026\/07\/logo-electropeak-v3-square.png","contentUrl":"https:\/\/electropeak.com\/learn\/wp-content\/uploads\/2026\/07\/logo-electropeak-v3-square.png","width":620,"height":620,"caption":"ElectroPeak"},"image":{"@id":"https:\/\/electropeak.com\/learn\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/electropeak.com\/learn\/#\/schema\/person\/66714d7ed628304044d2655e23cc2f51","name":"Mehran Maleki","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3182eb4fcddd5995ed6f7ce4a7097249d959e89315d288ca971583af62afe5ad?s=96&d=mm&r=g","caption":"Mehran Maleki"}}]}},"_links":{"self":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/19944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/comments?post=19944"}],"version-history":[{"count":17,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/19944\/revisions"}],"predecessor-version":[{"id":25311,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/posts\/19944\/revisions\/25311"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/media\/23288"}],"wp:attachment":[{"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/media?parent=19944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/categories?post=19944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/tags?post=19944"},{"taxonomy":"platform","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/platform?post=19944"},{"taxonomy":"bytype","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/bytype?post=19944"},{"taxonomy":"difficulty","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/difficulty?post=19944"},{"taxonomy":"related_products","embeddable":true,"href":"https:\/\/electropeak.com\/learn\/wp-json\/wp\/v2\/related_products?post=19944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}