• DS1307 I2C RTC AT24C32 Real Time Clock Module
  • DS1307 I2C RTC AT24C32 Real Time Clock Module
  • DS1307 I2C RTC AT24C32 Real Time Clock Module

DS1307 I2C RTC AT24C32 Real Time Clock Module

Availability: Out Of Stock

  • Price:$10.90
  • Price in reward points: 109 Reward Points: 1
  • Quantity 3+ units 10+ units 30+ units 50+ units More
    Price /Unit $10.68 $10.46 $10.14 $9.70 Contact US
Quantity:

DS1307 I2C RTC AT24C32 Real Time Clock Module

Description:

DS1307 is a real-time chip of DALLAS company,which adopt I2C protocal to communicate with SCM,  therefore is very convenient to link with each other. This product can be used to drive LED lights, as it have a programmable waveforms output, or trigger a certain event as a break off, but be careful when you use it to take some kind of high power module. We design the real clock module to pin out the I2C interface of Ds1307 and programmable waveforms output interface SQW are connected, but usually we will only use the I2C interface to realize basic set the clock/read function.
 
This module communicate with through the I2C interface.You can do some simple design about it,it support“plug and play”.
In circuit connection, we can use sensor shield V4 board, but set the corresponding jumpers wires to IIC position.

Testing Code :
#include <WProgram.h>
#include <Wire.h>
#include <DS1307.h> // written by  mattt on the Arduino forum and modified by D. Sjunnesson

void setup()
{
  Serial.begin(9600);

  RTC.stop();
  RTC.set(DS1307_SEC,1);        //set the seconds
  RTC.set(DS1307_MIN,23);     //set the minutes
  RTC.set(DS1307_HR,12);       //set the hours
  RTC.set(DS1307_DOW,4);       //set the day of the week
  RTC.set(DS1307_DATE,15);       //set the date
  RTC.set(DS1307_MTH,7);        //set the month
  RTC.set(DS1307_YR,10);         //set the year
  RTC.start();

}

void loop()
{

  Serial.print(RTC.get(DS1307_HR,true)); //read the hour and also update all the values by pushing in true
  Serial.print(":");
  Serial.print(RTC.get(DS1307_MIN,false));//read minutes without update (false)
  Serial.print(":");
  Serial.print(RTC.get(DS1307_SEC,false));//read seconds
  Serial.print("      ");                 // some space for a more happy life
  Serial.print(RTC.get(DS1307_DATE,false));//read date
  Serial.print("/");
  Serial.print(RTC.get(DS1307_MTH,false));//read month
  Serial.print("/");
  Serial.print(RTC.get(DS1307_YR,false)); //read year
  Serial.println();

  delay(1000);
}

Write a review

Note: We will keep it confidential.
Note: HTML is not translated!
 
Captcha