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:
Result:
Good luck.
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