Ds3231 Rtc Module Precise Real Time Clock I2C At24C32
Rs. 79.00 Rs. 91.00
- Product Code: SEN-RTC
- SKU -
- Availability: In Stock
- Price in reward points: 2
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS: | |
Operating Voltage (VDC) | 2.7 ~ 5.5 |
Voltage Supply for RTC | 2.2 V ~ 5.5 V |
Accuracy | ±2ppm from 0°C to +40°C, ±3.5ppm from -40°C to +85°C. |
Battery Holder | 2032 Coin Battery. |
I2C interface | Fast (400kHz) I2C Interface. |
EEPROM | AT24C32 32Kbit Serial I2C. |
OVERVIEW:
-1 Hz output pin SQW.
-32 KHz output pin 32K.
-Voltage Supply: 2.2 V ~ 5.5 V (for RTC).
-Time Format: HH: MM: SS (12/24 hr).
-Date Format: YY-MM-DD-dd.
-DS 3231 based RTC with 2032 Battery Holder.
PACKAGE INCLUDES:
1 PCS x Ds3231 Rtc Module Precise Real Time Clock I2C At24C32
//SOURCE CODE TAKEN FROM BELOW LINK
//https://www.electronicshub.org/arduino-ds3231-rtc-module-tutorial/
#include <Wire.h>
#include <LiquidCrystal.h>
#include "RTClib.h"
DateTime now;
char daysOfTheWeek[7][12] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
RTC_DS3231 rtc;
LiquidCrystal lcd(7, 6, 5, 4, 3, 2); // (rs, e, d4, d5, d6, d7)
void showDate(void);
void showTime(void);
void showDay(void);
void setup ()
{
Serial.begin(9600);
lcd.begin(16,2);
//delay(2000);
if (! rtc.begin())
{
Serial.println("Couldn't find RTC Module");
while (1);
}
if (rtc.lostPower())
{
Serial.println("RTC lost power, lets set the time!");
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
}
void loop ()
{
now = rtc.now();
showDate();
showDay();
showTime();
}
void showDate()
{
lcd.setCursor(0,0);
lcd.print(now.day());
lcd.print('/');
lcd.print(now.month());
lcd.print('/');
lcd.print(now.year());
}
void showDay()
{
lcd.setCursor(11,0);
lcd.print(daysOfTheWeek[now.dayOfTheWeek()]);
}
void showTime()
{
lcd.setCursor(0,1);
lcd.print("Time:");
lcd.print(now.hour());
lcd.print(':');
lcd.print(now.minute());
lcd.print(':');
lcd.print(now.second());
lcd.print(" ");
}
15 days