HomeDS1307 RTC I2C Module with AT24C32 (Real Time Clock)
DS1307 RTC I2C Module with AT24C32 (Real Time Clock)
DS1307 RTC I2C Module with AT24C32 (Real Time Clock)DS1307 RTC I2C Module with AT24C32 (Real Time Clock)
Standard shipping in 3 working days

DS1307 RTC I2C Module with AT24C32 (Real Time Clock)

₹78
₹54
Saving ₹24
31% off
Product Description

The DS1307 RTC I2C Module with AT24C32 (without battery) is a popular module used in electronics for timekeeping and data storage. Let me break down what it offers and how it's typically used:

Key Components of the Module:

  1. DS1307 RTC (Real-Time Clock):
  • The DS1307 is a widely used real-time clock (RTC) IC that communicates over the I2C bus, allowing it to easily interface with microcontrollers (like Arduino, ESP32, Raspberry Pi, etc.).
  • It keeps track of time (seconds, minutes, hours, day, date, month, and year) and can maintain accurate time even when the power is off—but only if it has a battery (not included in this version).
  • The DS1307 provides an output that gives the current time in BCD (Binary Coded Decimal) format.
  1. AT24C32 EEPROM:
  • The AT24C32 is an I2C-based EEPROM (Electrically Erasable Programmable Read-Only Memory) that offers 32KB of data storage.
  • It is used to store non-volatile data such as configurations or sensor readings, even when the system is powered off.
  • This EEPROM uses I2C to communicate, which allows for easy integration with microcontrollers, just like the DS1307 RTC.
  1. I2C Communication:
  • Both the DS1307 and the AT24C32 use the I2C protocol, which requires only two data lines—SDA (data) and SCL (clock)—to communicate with a microcontroller.
  • This is convenient because you can connect multiple I2C devices on the same bus, making it ideal for projects where you need to save pin space.
  1. Without Battery:
  • This particular version does not include the backup battery for the DS1307 RTC.
  • The battery is typically a CR2032 coin cell (or similar) that ensures the RTC continues keeping track of time even when the power is disconnected.
  • Without the battery, the RTC will lose track of time every time the system is powered off, meaning you'd need to set the time each time you power it on.

Pinout Overview (Typical DS1307 I2C Module with AT24C32):

The module usually has the following pins (depending on the version):

  1. VCC – Power supply (usually 5V or 3.3V depending on the microcontroller).
  2. GND – Ground.
  3. SDA – I2C Data Line (used for both RTC and EEPROM communication).
  4. SCL – I2C Clock Line (used for both RTC and EEPROM).
  5. SQW/OUT – Square Wave Output (optional, used for outputting a square wave signal, typically 1Hz, for various timekeeping purposes).
  6. 32K/OUT – Optional output for 32kHz square wave (often used for more precise time measurement in some systems).
  7. VBAT – Battery backup input (for the coin cell battery to keep RTC running when power is off).

Applications:

  • Timekeeping: It is most commonly used in projects that require accurate timekeeping, like clocks, data loggers, and scheduling systems.
  • Data Logging: The combination of the DS1307 RTC and AT24C32 EEPROM allows for time-stamped data storage. This can be used in applications such as logging sensor data over time (e.g., temperature or humidity sensors).
  • Microcontroller Projects: It is ideal for adding real-time clock functionality to Arduino, Raspberry Pi, or other microcontroller-based systems.

Advantages:

  1. Low Power Consumption: The DS1307 RTC and AT24C32 EEPROM consume very little power, making them ideal for battery-powered systems.
  2. Compact Design: It's small and easy to integrate into projects without taking up much space.
  3. Easy Integration with I2C: Since both the RTC and EEPROM communicate over I2C, it's simple to wire up and communicate with microcontrollers, especially those with limited GPIO pins.
  4. Non-volatile Data Storage: The AT24C32 allows you to store up to 32KB of data, which can be useful for saving configurations, logs, or other data.

Considerations:

  • No Battery: Without the backup battery, the DS1307 will not keep time when the system is powered down, so you'll need to manually set the time every time the device is powered on.
  • Limited Storage Capacity: The AT24C32 offers 32KB of storage, which is fine for basic data logging, but it may not be enough for larger data storage needs.
  • Clock Drift: While the DS1307 is generally accurate, it may experience slight drift over time without a crystal oscillator, especially if used in critical timing applications.

Usage Example (Arduino):

Here’s a basic example of how you might interface the DS1307 and AT24C32 with an Arduino:

#include <Wire.h>
#include <RTClib.h>

RTC_DS1307 rtc;  // Create an instance of the DS1307 RTC
const int eepromAddress = 0; // Starting address in the AT24C32 EEPROM

void setup() {
  Wire.begin();
  rtc.begin();

  // Set up the RTC time (if needed)
  if (!rtc.isrunning()) {
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // Set time to compile time
  }

  // Write some data to EEPROM
  Wire.beginTransmission(0x50); // I2C address for AT24C32
  Wire.write((byte)(eepromAddress >> 8));  // High byte of address
  Wire.write((byte)(eepromAddress & 0xFF)); // Low byte of address
  Wire.write(0x42);  // Write data (e.g., ASCII 'B')
  Wire.endTransmission();
}

void loop() {
  // Reading time from RTC
  DateTime now = rtc.now();
  Serial.print(now.year(), DEC);
  Serial.print('/');
  Serial.print(now.month(), DEC);
  Serial.print('/');
  Serial.print(now.day(), DEC);
  Serial.print(" ");
  Serial.print(now.hour(), DEC);
  Serial.print(':');
  Serial.print(now.minute(), DEC);
  Serial.print(':');
  Serial.print(now.second(), DEC);
  Serial.println();

  delay(1000);  // Wait 1 second
}



Origin:- China

Brand:- Generic

Share
Customer Reviews

Secure Payments

Shipping in India

Cash on Delivery

Great Value & Quality