Department of Computer Engineering New Satara College of Engineering & Management (Poly.), Korti-Pandharpur. AY: 2021-2022
Department of Computer Engineering New Satara College of Engineering & Management (Poly.), Korti-Pandharpur. AY: 2021-2022
A
Project Report
On
“Alarm Clock ”
Submitted & Presented in the partial fulfillment of the requirement for the
award on
Diploma in Computer Engineering
By
CERTIFICATE
This is to certify that the project report “Alarm Clock ” has been presented of Computer
Engineering by, Ms. Gangathade N.S., students of T.Y COMPUTER in the partial fulfillment for the
award of Diploma in Computer Engineering as per curriculum laid by the
Maharashtra State Board of Technical Education, MUMBAI during the academic year 2021-2022
We hereby declare that, Dissertation entitled “Alarm Clock” is completed and submitted for the award of
Diploma Engineering in Computer Engineering branch, of New Satara College of Engineering And
Management (Poly.),Korti, Pandharpur. It has not been previously presented and to the best of my
knowledge, for the award of diploma engineering title of this or any other university or examination body.
DATE:-
We feel happiness in forwarding this project design report as an image of sincere efforts the
successful design report reflects efforts of our guide in giving us good information.
Our sincere thanks to our guide Prof. Kshirsagar. V.S.., Who has been a constant source of
inspiration and guiding star in achieving our goal. We give our special thanks to Prof. Puri S.B. head of
computer department for providing encouragement and all facilities required for completion of work. We
express our deep gratitude to all staff members who lend us their valuable support and co-operation.
We are also equally indebted to our principal for his valuable help whenever needed. At last we thank
all those who directly or indirectly encouraged and helped us.
Ms.Gangathade N.S
.
ABSTRACT
Alarm clocks are a common fixture in almost all houses and it plays a vital role in determining a person's
state of mind for the rest of the day. The Smart Alarm is a fully integrated alarm clock that will help the user
to wake up in the morning with lights that gradually increase in brightness and the user's favorite music or a
default beeping tone when the brightness has reached its maximum. There is an additional feature that
generates a tantalizing coffee aroma for waking up the person in a relatively pleasant environment. Weather
forecast and reminders will also be displayed in the clock. The sunrise simulation, aroma generation, weather
forecast and news display will be done using Arduino Uno R3.View less
An alarm clock (or sometimes just an alarm) is a clock that is designed to alert an individual or group of
individuals at a specified time. The primary function of these clocks is to awaken people from their night’s
sleep or short naps; they are sometimes used for other reminders as well. Most use sound; some use light or
vibration. Some have sensors to identify when a person is in a light stage of sleep, in order to avoid waking
someone who is deeply asleep, which causes tiredness, even if the person has had adequate sleep. To turn off
the sound or light, a button or handle on the clock is pressed; most clocks automatically turn off the alarm if
left unattended long enough. A classic analog alarm clock has an extra hand or inset dial that is used to
specify the time at which the alarm will ring. Alarm clocks are also used in mobile phones, watches, and
computers.
INTRODUCTION
Alarm Clock is no doubt that an alarm clock is always handy to alert us whenever we sleep, take a short
nap, or to remind us about the work, we always get oblivious about.
Our ancestors have been using an alarm clock, going back to its 2,000 years long history but over time, the
new advancements in technologies allow us to keep an alarm clock without it containing a dial, gear trains,
etc. How? Let’s find out further.
The objective of our project is to implement an alarm clock using Python. Python consists of some very
innovative libraries such as datetime and tkinter which help us to build the project using the current date and
time as well as to provide a user interface to set the alarm according to the requirement in 24-hour format.
Prerequisites
This project requires good knowledge of Python and GUI (Graphic User Interface). Python when
combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful
object-oriented interface to the Tk GUI toolkit. All the modules used need not be downloaded beforehand
like the other libraries like NumPy, thus this project will be user friendly and accessible in any virtual
environment used for python programming.
A Python Alarm Clock Script consists of very useful libraries such as datetime and tkinter which help us to
build project using the current date and time. Apart from this, they provide a user interface to set the alarm
according to the requirement in 24-hour format.
To develop this python project, you need basic knowledge of the Python language and Tkinter library. We
are going to need the following libraries:
Explanation:
Datetime and time modules in python help us to work with the dates and time of the
current day when the user is operating python and to manipulate it too.
Explanation:
time.sleep(1) halts the execution of the further commands given until we get the time
value from the user later in the code and returns the background thread of the clock time
going on at a regular interval.
now is used to print the time and date is used to print the current date by string
conversion using strftime().
Define another function here named actual_time() which takes in the user value for setting
the alarm in the string format. The same argument of (set_alarm_timer) as alarm before to
execute the while loop which we further use while making GUI
If loop suggests that if the user input time set_alarm_timer matches with the while loop
ongoing time now, the message is printed as” Time to Wake up”.
clock.mainloop()
#Execution of the window.
Explanation:
The dialog box has the title as DataFlair Alarm Clock with a geometry of (400*200). We
pass on the heading to mention the time format for 24 hours using time_format.
The second heading is given above the user input boxes for the labeling to be “Hour Min
Sec” using addTime
Justto make the dialog box look funkier, adding another label as “when to wake you up”
using setYourAlarm.
Aswe have already converted the current time in the string before (actual time), the
variables we initialize for the user input dialog boxes are in StringVar().
Submit takes the command of the defined function actual_time and executes the clock as
it acts as a set button to start the program.
Clock.mainloop() is
the basic and the last command was given to compile all the previous
commands with their basic settings of color, font, width, axis, etc. and displays the
window as soon as the program is run.
Code
Output