Introduction: #5 Arduino Compatible Real Time Clock Modules (DS1307 & DS3231)

A Real Time Clock module (RTC) is an RTC is an RTC. Right? Wrong!

Whilst these two very common, Arduino-compatible RTCs appear very similar, and are connected via the I2C (pronounced Eye Squared See, or Eye Eye See) communications bus they perform quite differently, yet cost about the same.

The video shows how to use the modules and where to buy them but also highlights why the DS3231 should be the device of choice for all serious Arduino (and other microcontroller) developers - not least is the much improved, temperature-compensated accuracy and the on-board temperature sensor! Let's face it, the last thing you want to have to do is to connect the module back to your PC or laptop because the time has drifted by a couple of minutes. Especially when that Arduino project is buried inside that bee-hive at the bottom of the garden.

The next step in a future video will be to develop a code library to set the date and time using just two buttons (so using just two valuable pins on the Arduino) and which compensates for leap years, daylight saving time (UK-based but can be altered via the code for your part of the world). No more trips with your laptop precariously balance on the top of that bee-hive. (Spoiler: the code is written, it just needs turning into a library).

Have a peek at the video and do leave (constructive!) comments on how you think it might be improved in a future version, give it a thumbs up, share and if you have not already please subscribe to this Instructables channel - as well as my YouTube Channel (that way you don't miss any new videos, published weekly). Enjoy!

Comments

About This Instructable

605views

15favorites

License:

Bio: Arduino compatibles and other electronics for beginners! If you're getting started with the Arduino platform you'll be interested in my experiences as I ... More »
More by Ralph S Bacon:#13 Matrix Membrane Switch (12-key 4x3) an Arduino PLUS a LED MAX7219 Display #11 Arduino and LED 7-segment Displays Using a MAX7219 - Part 3#10 Arduino and LED 7-segment displays using a MAX7219 - Part 2
Add instructable to: