Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

DIY Arduino Based Real Time Clock with Alarm

By Samidha Verma November 18, 2016

In another extraordinary project of electronics hub, they have designed an Arduino based Real Time Clock with alarm. The gripping part of this clock is that it is battery powered and it runs when the microcontroller is reprogrammed or there is no external power. As soon as the power is reinstated, RTC shows the real time regardless of the fact that the power was off for long duration.

Real Time Clocks are often useful in data logging applications, time stamps, alarms, timers, clock builds etc. This sort of functionality is often seen in computers, where this real time clocks are referred as CMOS (Complementary Metal Oxide Semiconductor).

DIY Arduino Based Alarm Clock (Image Courtesy: Electronics Hub)

Generally, microcontrollers and microprocessors have built in timers but are workable only when the power is turned on. Hence, when the microcontroller is coupled to the power supply, the internal timers automatically reset to 0. So, to avoid resetting in the case of power cut, a separate RTC chip is encompassed in different applications like data loggers.

Taking a cue from the benefits of a Real Time Clock that displays accurate time and date, this project is designed while featuring an alarm clock. RTC ICs DS1307 is used along with Arduino in this project and the battery is attached to the RTC in a separate slot, which displays clock and calendar with all timekeeping functions.

The components used in this project are Arduino UNO, DS 1307 RTC Module, Push Buttons, 16X2 LCD Display, Buzzer, 10 KΩ and 10 KΩ POT. The communication between the microcontroller and RTC IC DS1307 is a serial I2C bidirectional bus.

DIY Arduino Based Alarm Clock Circuit Connections (Image Courtesy: Electronics Hub)

The circuit is designed with two pins on Arduino for I2C communication, where analog pins 4 and 5 acts as SDA (Serial Data) and SCL (Serial Clock) and both the pins of RTC are dragged high using 10KΩ resistors. The six pins of LCD that is used to display the clock is connected to Arduino while three buttons are for setting the alarm along with buzzer, which is connected to pin 11 of Arduino.

The alarm is set by pressing the set button, which jumps to the alarm mode and demands for hours with current time being displayed. As the increment button is pressed to change the hours, the hours will be incremented between 0 and 23 in 24-hour format.

The next button is pressed to go to minute’s tab, where the same procedure is followed and the alarm is set. The values are stored in the EEPROM of the Arduino that continuously compares time with the current time. When the stored values and current value matches, it triggers the buzzer for the alarm.

After the alarm is stored in the internal EEPROM of Arduino, the time and alarm keeps running as there is a backup supply to the RTC. The connections established are shown in the circuit diagram and by modifying the code of Arduino, the functions like snooze and multiple alarms can be added.

For codes, video and the circuit diagram, visit the following website.


Filed Under: Reviews

 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • The Analog Gods Hate Me
  • is there vay for credit card size phone charger?
  • Innovus Scan Reorder deletes Scan In Pad
  • How to get 3D model of ACPL-847-300E
  • How to find the resonance frequency and impedance of a planar spiral coil in HFSS?

RSS Electro-Tech-Online.com Discussions

  • Fixing board, Easy question HEX SCHMITT
  • Can I make two inputs from one??
  • The Analog Gods Hate Me
  • How to make string LEDs?
  • It's Amazing What A Buck And A Quarter....

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How to monitor temperature and humidity on a TFT display with graphics
  • Tria modules integrate edge AI processing with multi-core processors
  • pSemi introduces RF switch with 52 dBm PMAX,PEAK and 90-dBm IIP3 linearity
  • XP Power launches 1.3 kW power supply with 58.9 W/cm³ density
  • How to enable Wi-Fi provisioning in ESP32-based IoT products

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe