0% found this document useful (0 votes)
3 views

Mwe Project

Uploaded by

darshanram.g9141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Mwe Project

Uploaded by

darshanram.g9141
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

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
1.Build a Functional Digital Clock : Create a clock that accurately displays hours, minutes, and
seconds.
2.Use Arduino Uno: Utilize Arduino Uno as the main microcontroller for the project.
3.Ensure Accurate Timekeeping: Integrate an RTC module for precise and reliable timekeeping.
4.Provide Clear Display: Use an LCD or seven-segment display for readable time output.
. 5.Enable Time Setting: Add push buttons for manual time adjustment.
6.Ensure Stable Power Supply: Design for stable operation with USB or external power.
7.Develop Circuit Design Skills: Create and understand circuit schematics connecting components.
8.Program the Arduino: Write and debug code to manage timekeeping and display functions.
9.Test for Reliability: Ensure the clock maintains accurate time and operates consistently.
10.Document the Project: Provide detailed documentation including schematics and code.
11.Explore Enhancements: Identify future improvements like alarm functionality and wireless sync.

24/05/2024 School of Engineering & Technology 5


Methodology
1.Setup: The Arduino Uno is connected to the RTC module and the display. The RTC
module communicates with the Arduino via I2C protocol.
2.Programming: The Arduino is programmed using the Arduino IDE. The program
retrieves the current time from the RTC module and updates the display.
3.Time Setting (Optional): Push buttons can be integrated to allow manual setting of
the time.
4.Power 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; {
servoMain.write(90); // Turn
• float cm; Servo back to center position
• void setup() (90 degrees)
• { delay(4000);
}
• servoMain.attach(9); // servo on digital pin 10 else{
• pinMode(trigpin, OUTPUT); servoMain.write(0);
delay(20);
• pinMode(echopin, INPUT);
}
• }
}
24/05/2024 School of Engineering & Technology 11
Advantages

1.Customizable: Tailor your clock to your preferences and needs.


2.Flexible: Easily add features beyond timekeeping like alarms or temperature
monitoring.
3.User-Friendly: Simple programming language and extensive community support.
4.Educational: Learn about electronics and coding hands-on while building your
clock.
5.Expandable: Add extra components like sensors or displays to enhance
functionality.

24/05/2024 School of Engineering & Technology 12


Application

1.Basic Digital Clock: Arduino Uno with RTC module displays hours, minutes, and
seconds on LCD or LED.
2.Alarm Clock: Arduino Uno triggers buzzer or melody at set times for wake-up or
reminders.
3.Temperature and Humidity Monitor: Arduino Uno shows real-time temperature
and humidity alongside time.
4.Countdown Timer: Arduino Uno tracks and displays elapsed time for cooking,
exercise, or tasks.
5.World 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] https://www.electronicsforu.com/

[2] https://wokwi.com/

[3] https://www.tinkercad.com/

[4]https://www.youtube.com/watch?si=ltETa5VEzK3NEgHs&v=aa035_wkVeQ&feature=youtu.

School of Engineering & Technology 15


24/05/2024 School of Engineering & Technology 16

You might also like