School of Engineering and technology
Department of Electronics and Communication Engineering
Arduino Project
on
Digital clock using Arduino Uno
Presented by Project Coordinator
Prathibha L Prof. Silpa Sivan P
22BBTCA121 Assistant Professor,
Thanushree G Dept of ECE.
22BBTCA158
Date: 27/05/ 2024
School of Engineering & Technology 1
Outline
• Abstract
• Introduction
• Objectives
• Methodology
• Hardware Description
• Software Used
• Advantages
• Application
• Conclusion
• References
24/05/2024 School of Engineering & Technology 2
Abstract
Digital Clock Using Arduino Uno
• This project demonstrates the creation of a digital clock using an
Arduino Uno microcontroller. The primary objective is to design a
functional and accurate digital clock that displays the current time in
hours, minutes, and seconds. This project leverages the simplicity and
versatility of the Arduino platform, along with additional components
such as a Real-Time Clock (RTC) module and a seven-segment display
or an LCD screen.
24/05/2024 School of Engineering & Technology 3
Introduction
Digital clocks are ubiquitous in modern electronics, found in
devices ranging from household appliances to complex industrial
equipment. This project aims to build a digital clock that
accurately keeps time using readily available electronic
components and the Arduino Uno, an open-source
microcontroller board.
24/05/2024 School of Engineering & Technology 4
objectives
[Link] a Functional Digital Clock : Create a clock that accurately displays hours, minutes, and
seconds.
[Link] Arduino Uno: Utilize Arduino Uno as the main microcontroller for the project.
[Link] Accurate Timekeeping: Integrate an RTC module for precise and reliable timekeeping.
[Link] Clear Display: Use an LCD or seven-segment display for readable time output.
. [Link] Time Setting: Add push buttons for manual time adjustment.
[Link] Stable Power Supply: Design for stable operation with USB or external power.
[Link] Circuit Design Skills: Create and understand circuit schematics connecting components.
[Link] the Arduino: Write and debug code to manage timekeeping and display functions.
[Link] for Reliability: Ensure the clock maintains accurate time and operates consistently.
[Link] the Project: Provide detailed documentation including schematics and code.
[Link] Enhancements: Identify future improvements like alarm functionality and wireless sync.
24/05/2024 School of Engineering & Technology 5
Methodology
[Link]: The Arduino Uno is connected to the RTC module and the display. The RTC
module communicates with the Arduino via I2C protocol.
[Link]: The Arduino is programmed using the Arduino IDE. The program
retrieves the current time from the RTC module and updates the display.
[Link] Setting (Optional): Push buttons can be integrated to allow manual setting of
the time.
[Link] Supply: The system can be powered via USB or an external power source.
24/05/2024 School of Engineering & Technology 6
Hardware Description
COMPONENTS OF PROJECT
Arduino-UNO
LCD Display
Jumper wires
Bread Board
Potentiometer
School of Engineering & Technology 7
Arduino uno board Jumper wires
Ultrasonic sensor Servo Motors USB Cable
24/05/2024 School of Engineering & Technology 8
Software Used
1. ARDUINO IDE SOFTWARE
2. CODE
console port
line number
24/05/2024 School of Engineering & Technology 9
Circuit Diagram
24/05/2024 School of Engineering & Technology 10
Source Code void loop()
{
digitalWrite(trigpin, LOW);
• //PendTech delay(1);
digitalWrite(trigpin, HIGH);
• //automatic railway gate delayMicroseconds(50);
digitalWrite(trigpin, LOW);
• #include <Servo.h>
duration = pulseIn(echopin,
• Servo servoMain; // Define our Servo HIGH);
• int trigpin = 10; cm = (duration/68.82);
distance = cm;
• int echopin = 11;
• int distance; if(distance<10)
• float duration; {
[Link](90); // Turn
• float cm; Servo back to center position
• void setup() (90 degrees)
• { delay(4000);
}
• [Link](9); // servo on digital pin 10 else{
• pinMode(trigpin, OUTPUT); [Link](0);
delay(20);
• pinMode(echopin, INPUT);
}
• }
}
24/05/2024 School of Engineering & Technology 11
Advantages
[Link]: Tailor your clock to your preferences and needs.
[Link]: Easily add features beyond timekeeping like alarms or temperature
monitoring.
[Link]-Friendly: Simple programming language and extensive community support.
[Link]: Learn about electronics and coding hands-on while building your
clock.
[Link]: Add extra components like sensors or displays to enhance
functionality.
24/05/2024 School of Engineering & Technology 12
Application
[Link] Digital Clock: Arduino Uno with RTC module displays hours, minutes, and
seconds on LCD or LED.
[Link] Clock: Arduino Uno triggers buzzer or melody at set times for wake-up or
reminders.
[Link] and Humidity Monitor: Arduino Uno shows real-time temperature
and humidity alongside time.
[Link] Timer: Arduino Uno tracks and displays elapsed time for cooking,
exercise, or tasks.
[Link] Clock: Arduino Uno displays multiple time zones using additional RTC
modules or internet connectivity.
24/05/2024 School of Engineering & Technology 13
Conclusion
This project successfully showcases the potential of the Arduino Uno in
creating practical and functional electronic projects. By integrating an RTC module,
the digital clock maintains high accuracy, making it a valuable addition to various
applications. The project highlights the importance of microcontroller-based design
in modern electronics and serves as a foundational exercise for more complex
timekeeping and embedded system projects.
24/05/2024 School of Engineering & Technology 14
References
[1] [Link]
[2] [Link]
[3] [Link]
[4][Link]
School of Engineering & Technology 15
24/05/2024 School of Engineering & Technology 16