


To work range power clock cycle will continue.

You just connect the 9-volt battery, by the negative terminal join to diode 1N4001 into pin 20 of IC1 and the positive terminal at pin 28. – If you want to connect a battery backup to the circuits continues to operate, even when the power goes out. You can choose display is 12 hours with open pin 28. These switches you are able to put directly on PCB. Note: PCB layout print in 300 dot per inch Add delay and clear previous time from screen. Increment the values of hours, min, and sec variables based on specific conditions. Display the digital clock time inside an infinite while loop. Then soldered directly to the PCB and LED display. Declare hours, min, and sec variables and initialize with tm structure attributes. You place the electronic components on the PCB board correctly completed, as shown in the picture, The display numbers can use bent wire to perpendicular. The output signal for control turn on-off electric appliance circuit, get from pin 17 of IC1.įigure 2 The PCB layout of Cheap Digital time clock with alarm circuitįigure 3 The components layout of this projects To extended for another nine minutes, with the press of a switch S7. In the case of alarm circuit operation and we want to Repeat alarm. This section is designed to display the time in hours and minutes format and is wired such that it functions in 24-hour mode. Press switch S4 to set minutes, Time to show the remaining time. shows the circuit of the 24-hour digital clock section. To set the time turn on- off the Electric appliance.Ģ. – Cancel the alarm system, press S2 to hold down. Press switch S2 or other switches to stop the alarm sound. Shop for wholesale digital wall clock project on and find various types of wall clocks with different uses. When the time limit, the alarm signal will ring. And the sleep out signal from pin 17 that you can continue to use, to control another circuit. The P1 so is fine an alarm sound pressure as you want. The alarm signal from pin 16 of IC1, will be entered to the potentiometer P1(Volume), to pin 3 of IC2 (LM386), that is alarm signal amplifiers to drive the loudspeaker. This is an interesting python project for beginners where we used tkinter and pygame.Two diode D1, D2 are the switch signal generators to the cathode of display number for working alternately and relation with the input of IC1. We have successfully created alarm clock project in python. We also have hrbtn, minbtn, secbtn to take respective values from the user. Greet: It is a label to display the message” Take a short nap!”.Ĥ. Hrs, Mins, Secs: They are tkinter string variables that store the hour’s, minute’s and second’s value entered by the user before setting an alarm.ģ. And if doesn’t match the time_now it continues step b after sleeping for one second. As soon as time matches it displays a wake-up message and plays the alarm song using pygame and mixer. It also checks if current time matches the alarm time.

It stores the current time in time_now in specified format (“%H:%M:%S”)ī. alarmclock: This is the most important method because it performs the following tasks:Ī. Setalarm: It sets an alarm by calling alarmClock method by passing the alarm time as argument(if the user has entered a correct and non-empty time).Ģ. Setbtn=Button(root,text="set alarm",command=setalarm,bg="DodgerBlue2",įg="white",font = ('arial', 20, 'bold')).grid(row=4,columnspan=3) Hrbtn=Entry(root,textvariable=hrs,width=5,font =('arial', 20, 'bold')) Text="Take a short nap!").grid(row=1,columnspan=3) Greet=Label(root, font = ('arial', 20, 'bold'), (r'C:\Users\BOSS\Desktop\MyPlaylist\WakeUP.mp3') Text="Wake up!Wake up!Wake up",bg="DodgerBlue2",fg="white").grid(row=6,columnspan=3) Wakeup=Label(root, font = ('arial', 20, 'bold'), The main parts of this project are set switch, microcontroller unit and LCD display.
#DIGITAL CLOCK MINI PROJECT INSTALL#
To install the libraries, you can use pip installer from the cmd/Terminal: pip install tkinterīefore proceeding ahead, please download source code of python alarm clock: Python Alarm Clock Code Creating main.py from time import strftimeĪlarmtime=f"" Digital clock project is developed for the users to use a digital clock. The prerequisites are: basic concepts of Python and Tkinter Keeping you updated with latest technology trends, Join TechVidvan on Telegram Prerequisites
