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

Government Polytechnic, Washim: Mr. U. A. Bagade K. V. Ingole

Uploaded by

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

Government Polytechnic, Washim: Mr. U. A. Bagade K. V. Ingole

Uploaded by

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

GOVERNMENT POLYTECHNIC,

WASHIM

DEPARTMENT OF INFORMATION TECHNOLOGY


Academic Year 2023-2024

Course: GUI Application Development Using VB.NET

Course Code: 22034 Program: IF4I

A MICRO PROJECT REPORT ON:


“Digital Clock”

GUIDE HOD

K. V. Ingole Mr. U. A. Bagade


(Lecturer in Information Technology) (Information Technology)

PRINCIPAL

Dr. B. G. Gawalwad
(Government Polytechnic, Washim)
DEPARTMENT OF INFORMATION
TECHNOLOGY

A Micro-Project Report On :-
“Digital Clock”

-: Submitted By :-

SR.
NAME Roll no. ENROLL. NO.
NO.
1. Shrikrushna K. Khude 13 2200310321

2. Khushi J. Rathod 16 2200310324

3. Shreya C. Mukhmale 46 2200310359

4. Krushna S. Jadhao 60 2200310374

5. Vivek D. Raut 66 2200310355


TABLE OF CONTENT

SR.NO. TOPIC PAGE NO.

1 Introduction 1

2 Software Requirements 2

3 Implementation 3

4 Code 5

5 Design 6

6 Result 7
1. Introduction

A digital clock is an electronic timekeeping device that


displays the time numerically using digits, typically in the
format of hours, minutes, and sometimes seconds. Unlike
traditional analog clocks that use hour and minute hands to
indicate time on a circular dial, digital clocks present time in a
more straightforward and easily readable format.

Digital clocks have become ubiquitous in modern society,


found in various forms ranging from bedside alarm clocks to
large-scale digital displays in public spaces such as train
stations and airports. They offer several advantages over analog
clocks, including precise timekeeping, easy readability from a
distance, and the ability to incorporate additional features such
as alarms, timers, and date displays.

1
2. Software Requirements

Sr.No. Name of Specification


resource
1 Hardware : Computer i5,
Computer System 8 GB RAM

2 Operation System Windows 7/LINUX


version 5.0 or later

3 Software Visual Studio 2022

2
3. Implementation

1. Microcontroller Selection: Choose a microcontroller


that suits your project requirements. Popular choices
include Arduino boards (such as Arduino Uno or
Arduino Nano) or microcontrollers from the PIC or
STM32 families.

2. Real time clock( RTC) Module: To keep track of time


accurately, you'll need an RTC module. This module
typically includes a clock chip (like DS1307 or DS3231)
and a backup battery to maintain time even when the
main power source is disconnected.

3. Display Module: Select a suitable display module for


your digital clock. Options include LED displays
(common cathode or common anode), LCD displays
(character or graphical), or OLED displays.

4. Connect Component: Connect the RTC module and


display module to the microcontroller according to their
datasheets or pinout diagrams. You may need to use
jumper wires or solder connections depending on your
hardware setup.

5. Code implementation:
a. Write firmware code for the microcontroller to
interface with the RTC module and display the
current time.
b. Initialize the RTC module and configure it to update
the time regularly (e.g., every second).

3
c. Read the current time from the RTC module and
convert it into a format suitable for display (hours,
minutes, and optionally seconds).
d. Update the display with the current time information.

6. Compile and Upload Code: Use an integrated


development environment (IDE) such as Arduino IDE,
MPLAB X, or PlatformIO to write, compile, and upload
the firmware code to the microcontroller.

7. Testing: Power up the digital clock setup and ensure


that it displays the current time accurately. Test different
functionalities such as setting the time, adjusting
brightness (if applicable), and any additional features
you've implemented.

8. Enclosure and Mounting: Once you've verified that the


digital clock works as intended, consider designing or
selecting an enclosure to house the components. Mount
the display module and other hardware securely within
the enclosure.

9. Finalization: Make any necessary adjustments or


refinements to the digital clock setup, such as
optimizing power consumption, improving readability,
or adding user-friendly features.

4
4. Code

Public Class Form1


Private Sub tmrTimer_Tick(sender As Object, e As EventArgs) Handles
tmrTimer.Tick

IblClock2.Text = DateTime.Now.ToString("hh mm")


Day.Text = DateTime.Now.ToString(" ddd")
Second.Text = DateTime.Now.ToString("ss")
AMPM.Text = DateTime.Now.ToString("tt")
DateMonth.Text = DateTime.Now.ToString("dd") + "/" +
DateTime.Now.ToString("MM")

End Sub

Private isBlinking As Boolean = False


Private Sub Form1_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
Timer1.Interval = 500
Timer1.Start()
End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles


Timer1.Tick
isBlinking = Not isBlinking

If isBlinking Then
Dot.ForeColor = Color.Azure
Else
Dot.ForeColor = Color.Black
End If
End Sub
End Class

5
5. Design

6
6. Result

7
References:

https://www.rhythmclocks.in/digital-clocks

https://time-time.net/timer/digital-clock.php

https://www.online-stopwatch.com/online-digital-clock/

You might also like