Skip to content
TechIsSoCool edited this page Mar 30, 2020 · 1 revision

Welcome to the DS3231_tisc wiki!

Alarm Clock Implementation Using Arduino and DS3231

  • This project demonstrates how to create an alarm clock with two alarms using an Arduino and a DS3231 Real Time Clock module.
  • The DS3231_tisc library is a C++ interface to the DS3231 which provides functions needed to implement an alarm clock. The clock can be set to 12 or 24 hour mode. There are 2 alarms, which can be independently set, enabled, and disabled.
  • This code includes an Arduino sketch demonstrating the use of the library to implement the alarm clock.
  • The purpose of this code is twofold:To provide a DS3231 interface you find useful, and to serve as a programming learning opportunity for those newer to programming.
  • This code is heavily commented in order to accommodate programmers of all skill levels.
  • This code is easily adapted to your own hardware configuration. Display and user input code is separated from program logic and DS3231 interface code. These user input/output routines can be rewritten in place to accommodate your hardware.
  • Download the code from https://github.com/TechIsSoCool/DS3231_tisc/. Keep all of the files into the same project folder.
  • As written, the code uses an Arduino Mega2560 board and a 3.5” LCD TFT touchscreen based on a 9486 controller. You will have to replace LCD display actions with something appropriate for the hardware you are using. The same goes for touchscreen actions, which you may replace with another touchscreen or physical buttons. The code will fit in much smaller Arduino boards.
  • Constructive feedback is welcomed: [email protected]

Psuedo-code Flowchart

DS3231 Library Flowchart - Page 1/3


DS3231 Library Flowchart - Page 2/3


DS3231 Library Flowchart - Page 3/3


Clone this wiki locally