I will talk about Ds3231 Arduino Circuit DS3231 RTC device, main components and application of this module and at the end we will show you how to Interface a DS3231 Real Time Clock device with Arduino.
Note on Real Time Clock (RTC):
The DS3231 is a Real Time Clock made by Maxim Integrated American Company. It is a low cost, extremely precise RTC with transmission over I2C Interface. An important feature of DS3231 RTC is that it has integrated crystal oscillator and temperature sense ability and you do not have to attach an external crystal.we need to download it first.
It is accessible in SO16 Package. Although it require only 8 pins in the accessible 16 pins to function, the integration of crystal makes the IC large and it is packed as a 16 pin IC rather than 8 pin IC.
DS3231 Pin Configuration
|Pin No||Pin Name||Description|
|3||SQW||Square wave output|
|14||Vbat||Power supply from battery|
|15||SDA||Serial input &output|
|16||SCL||Serial Clock Input|
Interfacing DS3231 RTC with Arduino
I have setup an easy data logging application where the data from a sensor is stored in the SD Card in the sort of a text file.
By integrating a DS3231 in this project, you can keep detect the data log with precise time details. So, interfacing DS3231 RTC device with Arduino has a numerous implementation and advantages.
- Push button
- SSD1306 Module
- lcd 2×16
DS3231 Circuit Design
Let’s begin the connections between Arduino and DS3231. The junction between them is I2C, point out the I2C Pins on your Arduino Board. In Arduino, A4 and A5 are SDA and SCL pins. Attach these pins with similar SDA and SCL pins of the DS3231 component. Also, join the Vcc and GND of the RTC component to 5v and GND of Arduino.
Connect the push button with Arduino pin 8 and 9.
To see the output, I am using an LCD component. Join the CS with GND and connect Vcc with CS pin.
you can see how to relay interfacing with arduino in proteus. my last post is what is relay
DS3231 Proteus Library
The working of the Arduino DS3231 RTC device is very simple. Arduino first stored the RTC component with its peasant address.
Arduino then upload the internal registers of the RTC with the date and time at which the code is assemble and uploaded to Arduino. The updated date and time can be display on the LCD.
If you want the DS3231 device to keep time even after you disjoin power to Arduino, you can also attach a 3v Battery.
- GPS Module
- Power Meters
So this is it. I hope you consider this guide helpful. Will meets you guys next time with new topic. Till then take care, have fun.
ds3231 arduino circuit pinout proteus library
CHECK THIS LINK Arduino Simulator