Description
DS1307 I2C RTC Real time clock module with the DS1307 chip. Always the correct time and date can be read via the I2C interface. With battery backup and charging circuit for a LIR2032 battery. With the possibility to solder a DS18B20 digital temperature sensor.
DS1307 I2C RTC specifications:
– Works with a LiR2032 battery
– I2C interface.
– 2032 Battery Holder.
– Supplied without battery.
– Dimensions: 2.9 x 2.6cm.
Arduino code example:
Library
// Date and time functions using just software, based on millis() & timer
#include <Wire.h>
#include "RTClib.h"
RTC_Millis rtc;
void setup () {
Serial.begin(57600);
// following line sets the RTC to the date & time this sketch was compiled
rtc.begin(DateTime(__DATE__, __TIME__));
}
void loop () {
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();
Serial.print(" seconds since 1970: ");
Serial.println(now.unixtime());
// calculate a date which is 7 days and 30 seconds into the future
DateTime future (now.unixtime() + 7 * 86400L + 30);
Serial.print(" now + 7d + 30s: ");
Serial.print(future.year(), DEC);
Serial.print('/');
Serial.print(future.month(), DEC);
Serial.print('/');
Serial.print(future.day(), DEC);
Serial.print(' ');
Serial.print(future.hour(), DEC);
Serial.print(':');
Serial.print(future.minute(), DEC);
Serial.print(':');
Serial.print(future.second(), DEC);
Serial.println();
Serial.println();
delay(3000);
}
Only logged in customers who have purchased this product may leave a review.
Shipping within the Netherlands
This product will be delivered via PostNL letter post in a bubble envelope.- €3.45 shipping costs for orders under €25.
- €2.95 shipping costs for orders between €25 - €45.
- Orders above € 45,- will be
park for free sent by PostNL letter post.
Ordered before 16:30 PM on workdays, shipped the same day!
Click here for costs outside the Netherlands.
Peter (verified owner)
Works well and does not lag after a long time.
A battery was included with mine and that is very useful (it keeps the time)
Easy to set up and with the temperature sensor (available separately) you can also measure the ambient temperature quite accurately.
Product also looks neat.
Price/quality is very good
Gerhard Mulder (verified owner)
Works fine, don't forget to connect the SDA (Serial Data Input/Output) with a pull up resistor of 4k7 to the +5 (or + 3 V)Volt. SCL (Serial Clock In) does not need a pullup resistor. Including battery. You do need some soldering experience because the plug solder islands are minuscule.
Electronics4Fun (verified owner)
Nice real-time clock module that keeps the time and date for you when the power of your Arduino fails. This module works with a coin cell battery.