Python Krish Nikam
Python Krish Nikam
1
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION (MSBTE), MUMBAI
Brahma Valley College of Technical Education, Anjaneri, Nasik
Department of Computer Technology
2023-2024
AProject Report On
[Alarm clock]
By
[Nikam Krish]
[Padavi Chandani]
[Wagh Shubham]
[Patil Prashant]
[Bachhav Sharmila]
[Prof. S.A.Bhamare]
2
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
This is to certify that
[Nikam Krish][2207780297]
[Padavi Chandani][2107780164]
[Wagh Shubham][2207780313]
[Patil Prashant][2207780299]
[ Bachhav Sharmila][2107780168]
have successfully completed their Project on at Brahma Valley College of
Technical Education, Anjaneri, Nashik in the partial fulfillment of the
Diploma course in Computer Technology in the academic Year 2023-
2024.
3
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
4
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
5
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
6
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
7
Brahma Valley College of Technical
Education, Anjaneri, Nasik
CERTIFICATE
8
ACKNOWLEDGEMENT
I would like to deeply thank the various people who, during the several months
which this endeavor lasted, provided us with useful and helpful assistance. Without
care and consideration, this seminar would likely not have matured.
First I would like to thank our project guide Head of Dept. Prof. M. M. Kulkarni
Sir for his guidance and interest. Her guidance reflects expertise we certainly do
not master ourselves. I also thank him for his patience throughout, in cross-
reviewing which constitutes a rather difficult balancing act.
Second, I would like to thank all the Staff Members of Computer Department for
providing us their admirable feedback and insights whenever I discussed my
project with them. I also extend my thanks to our lab assistants who guided us in
implementation of our seminar.
I would like to extend my special thanks to our Principal, Prof. V. P. Nikhade for
his encouragement and words of wisdom.
[Nikam Krish]
[Padavi Chandani ]
[Wagh Shubham]
[Patil Prashant]
[ Sharmila Bachhav]
9
INDEX
1 Brief Introduction 7
3 Action Plan 7
4 Resources Required 7
Part B
1 Brief Description 8
7 Skill Developed 17
8 Applications of Microproject 17
PART A-Plan
Title of micro-project: Alarm clock
1. Aim/Benefits of the Micro-Project-
a) Skill Development.
b) Understanding Concepts.
10
c) Problem-Solving Skills.
d) Creativity and Innovation.
3. Proposed Methodology-
The objective of an online exam portal is the comprehensive and efficient evaluation of the proposed
methodology involves first outlining the project requirements, including basic functionalities like
setting alarms and displaying time. Next, design the project structure, breaking it down into
manageable components. Begin coding by implementing core features incrementally, such as time
display and alarm setting. Test thoroughly to ensure functionalities work as expected, and refine the
code for clarity and efficiency. Documentation should be provided for usage instructions. Optional
enhancements, like adding snooze functionality or a user-friendly interface, can be integrated based on
interest. Finally, deploy the project, sharing it for feedback and potential contributions to foster a
collaborative learning environment.
Action Plan-
4.Resources Required:
11
Developing an alarm clock project in Python entails defining its features, designing its structure and
interface, coding functionalities incrementally, and thoroughly testing and debugging the code.
Refinement involves enhancing code quality, documenting usage instructions, and potentially
adding extra features. Feedback from peers aids in refining the project further before packaging and
sharing it for deployment.
Code:
12
from tkinter import *
import datetime
import time
import winsound
from threading import *
root = Tk()
root = Tk()
root.geometry("400x200")
def Threading():
t1 = Thread(target=alarm)
t1.start()
def alarm():
while True:
set_alarm_time = f"{hour.get()}:{minute.get()}:{second.get()}"
time.sleep(1)
current_time = datetime.datetime.now().strftime("%H:%M:%S")
print(current_time, set_alarm_time)
if current_time == set_alarm_time:
print("Time to Wake up")
# Playing sound
winsound.PlaySound("sound.wav", winsound.SND_ASYNC)
frame = Frame(root)
frame.pack()
hour = StringVar(root)
hours = ('00', '01', '02', '03', '04', '05', '06', '07',
'08', '09', '10', '11', '12', '13', '14', '15',
'16', '17', '18', '19', '20', '21', '22', '23', '24'
)
hour.set(hours[0])
hrs = OptionMenu(frame, hour, *hours)
hrs.pack(side=LEFT)
13
minute = StringVar(root)
minutes = ('00', '01', '02', '03', '04', '05', '06', '07',
'08', '09', '10', '11', '12', '13', '14', '15',
'16', '17', '18', '19', '20', '21', '22', '23',
'24', '25', '26', '27', '28', '29', '30', '31',
'32', '33', '34', '35', '36', '37', '38', '39',
'40', '41', '42', '43', '44', '45', '46', '47',
'48', '49', '50', '51', '52', '53', '54', '55',
'56', '57', '58', '59', '60')
minute.set(minutes[0])
second = StringVar(root)
seconds = ('00', '01', '02', '03', '04', '05', '06', '07',
'08', '09', '10', '11', '12', '13', '14', '15',
'16', '17', '18', '19', '20', '21', '22', '23',
'24', '25', '26', '27', '28', '29', '30', '31',
'32', '33', '34', '35', '36', '37', '38', '39',
'40', '41', '42', '43', '44', '45', '46', '47',
'48', '49', '50', '51', '52', '53', '54', '55',
'56', '57', '58', '59', '60')
second.set(seconds[0])
root.mainloop()
Output:
14
15
7. Skill Developed:
The goal of this project, Alarm Clock Using Python, is to create an alarm clock using Python. Python
contains some essential libraries such as DateTime and Tkinter, which assist us in constructing a project
utilizing the current date and time. They also give a user interface to set the alarm according to the demand
in a 24-hour format.
8. Applications of Microproject:
1. Learning Python Basics: Developing an alarm clock project allows beginners to learn the
basics of Python programming, such as variables, conditionals, loops, and functions.
2. Understanding Time and Date Operations: Working on an alarm clock project helps in
understanding how to work with date and time in Python, including modules like datetime.
3. GUI Development: You can expand the project by implementing a graphical user interface
(GUI) using libraries like Tkinter or PyQt. This provides an opportunity to learn about GUI
programming and user interaction.
4. Event Handling: Implementing features like setting alarms, snooze, and dismissing alarms
involves event handling. Learning event-driven programming is crucial for many
applications beyond just alarm clocks.
5. File I/O: You can incorporate file handling operations to save and load alarm settings or
store logs, providing exposure to file input/output operations in Python.
6. Error Handling: Handling errors and exceptions, such as invalid user input or file-related
errors, is an essential skill. An alarm clock project offers opportunities to practice error
handling techniques.
16
17