Skip to main content

DS3231 RTC Module

This module is very useful if you want to create project with time related data such as data logging, alarm and clock. This module keep track the time even the system has been turned off. Thanks to small coin battery installed on this module. Once it has been set, module will keep track the time as long as battery is still life.

There are many libraries that can be used for this module. But here the simple one we will use. Let start to configure it. This module use I2C interface, so you can use it in parallel with other I2C module.



Wiring:

GND <----> GND
VCC <----> 5V
SDA <----> A4(analog pin 4)
SCL <----> A5(analog pin 5)

Libraries:

Download : http://www.rinkydinkelectronics.com/library.php?id=73, or modified version https://github.com/satujamsaja/Arduino/tree/master/ds3231

Sketch:

Download sketch : https://github.com/satujamsaja/Arduino/tree/master/ds3231

Result:




I have also created simple oled clock using this RTC module and oled library downloaded from: http://rinkydinkelectronics.com/library.php?id=79 or the modified library and sketch here: https://github.com/satujamsaja/Arduino/tree/master/ds3231oledi2c

Result:


Good luck.



Comments

Popular posts from this blog

Read temperature and barometric pressure from GY BMP 280 using Arduino

This sensor based on BMP 280 digital pressure sensor made by Bosch. You can find the complete datasheet here . This small sensor is quite impressive with it's accuracy. It claimed to be ±1 hPa in measuring barometric pressure, ±1.0°C in temperature measurement and ±1 meter in altitude accuracy. Pretty impressive right ?

Using LCD 2004a I2C on project with Arduino

On previous post measurement sensor results displayed on serial monitor. This is good when we are on development stage. When we want something more independent we need external display. I have purchased a few type of display. For now we will use LCD 2004 for external display.

RDA5807M FM radio module for Arduino

I was surprised with it's ability to receive FM radio broadcast without any problem in such a small module. The size is not bigger than a coin, really small. It may a bit difficult for wiring but it can be done. You can also add small power audio amplifier and use small speaker directly. Here is the module chip, small power amplifier in prototyping pcb.