DESIGN AND CONSTRUCTION OF A DIGITAL CLOCK WITH A CALENDAR


DESIGN AND CONSTRUCTION OF A DIGITAL CLOCK WITH A CALENDAR  

ABSTRACT

This project is aimed at explaining the Design and construction of a digital wall clock with calendar. It give report on how we can achieve this aim and the primary objective of this work is to bring a vibrant digital clock display to everyone located within the vicinity where the clock is being installed, and the importance of clock is to tell time and date, so you can meet up with events and assignments, these are just few importance of CLOCK. In developing countries, time is a very important element of life, maximizing it will give you a better achievement. We shall discuss on how you can design one in this report with a well narrated literature review for better understandings.

Also efforts were made in explaining the vital and important part of the design components and their functions in the project.

TABLE OF CONTENT 

Title Page i

Certification ii

Dedication iii

Acknowledgement iv

Abstract v

Table of Contents vi

List of Table vii

List of Figure viii

CHAPTER ONE

1.0 INTRODUCTION 1

1.1 BRIEF DISCUSSION ON CLOCK 2

1.1 AIM 2

1.2 OBJECTIVES 2

1.3 UNITS OF THE SYSTEM 3

1.3.1 HARDWARE PART 3

1.3.2 SOFTWARE PART 3

CHAPTER TWO

2.0 LITERATURE REVIEW 6

2.1 HARDWARE COMPONENTS 9

2.2     STAGES IN THE EMBEDDED DIGITAL CLOCK WITH 

CALENDAR 9

2.2.1 POWER SUPPLY UNIT 9

2.2.2 THE LOGIC UNIT 10

2.2.3 PROGRAM SECTIONS 11

2.2. CONTROL UNIT 15

CHAPTER THREE

3.0 DESIGN ANALYSIS, AND CALCULATIONS 16

3.4 PROGRAMMING THE MICROCONTROLLER 22

 CHAPTER FOUR

4.0 THE CONSTRUCTION 24

4.1 IMPLEMENTATION 25

4.1.1 COMPONENTS 25

4.1.2 COMPONENT TESTING 25

4.1.3 ASSEMBLING OF COMPONENTS ON BREADBOARD 26

4.2POWER SUPPLY UNIT

4.3 THE SYSTEM OPERATION 27

4.3.1 CONTROLS 27

CHAPTER FIVE

5.0 CONCLUSION 29

5.1 RECOMMENDATIONS 30

REFERENCES 31

APPENDIX 32

LIST OF TABLE 

Table Title Pages  

TABLE: 2.2.3 CONVERTING DIGITS TO SEVEN SEGMENT DISPLAY BITS 13

TABLE 4.2: VOLTAGE REGULATOR TEST RESULT 27

LIST OF FIGURES

Figure Title Pages  

FIG.1.0 THE PIC16F877 INTERNAL STRUCTURE 1

FIG 2.0 BLOCK DIAGRAM OF A DIGITAL CLOCK 

WITH CALENDAR DISPLAY 8

FIG. 2.2.1 POWER SUPPLY UNIT 10

FIG. 2.2.2 MICROCONTROLLER UNIT 11

FIG2.2.3 SEVEN SEGMENT DISPLAY 12

FIG 2.2.4a MASKING OF SEVEN SEGMENT DISPLAY 14

FIG 2.2.4b SCANNING AND MULTIPLEXING OF SEVEN 

SEGMENT DISPLAY  14

FIG 3.0 BLOCKS DIAGRAM OF THE STAGES IN DIGITAL 

CLOCK WITH CALENDAR 16

FIG 3.1 CIRCUIT DIAGRAM OF MCU CONFIGURATION 

WITH LED DISPLAY 16

FIG 3.2 EXTERNAL OSCILLATOR IN RC MODE 20

FIG. 3.3 RC OSCILLATOR 21

FIG 3.4 PROGRAMMING THE PIC 22

FIG 4.1.3 TESTING THE DISPLAY UNIT SEGMENTS 26

FIG 4.0 CIRCUIT DIAGRAM OF DIGITAL CLOCK 

WITH CALENDAR 28

CHAPTER ONE

1.0 INTRODUCTION

This project is a design and construction of a digital clock with calendar. The core component is the microcontroller PIC16f877. This device employs sequential circuit components. It consists of LED, seven segment display, transistor, voltage regulator, resistors and capacitor.

Image

Image

FIG.1.0 THE PIC16F877 INTERNAL STRUCTURE

1.1 BRIEF DISCUSSION ON CLOCK

A clock is an instrument to indicate, keep, and coordinate time. Today a clock “refers to any device for measuring and displaying the time”. The clock is one of the oldest human inventions, meeting the need to consistently measure interval of time shorter than the natural unit, the day, the month and the year. Devices operating on several physical processes have been used over the millennia.

A digital clock is a type of clock that displays the time digitally (i.e.  In numerals or other symbols), as opposed to an analog clock, where the time is indicated by the positions of rotating hands. 

This clock counts seconds, minutes, hours, days, months and 

 years. Time and calendar is displayed on four separate seven segment LED displays, and is adjustable with three buttons at start time (up, down, set).

You can program the day of the week, hour and minute, day of the month and year. 

1.4 AIM

The aim of this project is to design and construct a digital clock with yearly calendar. 

1.5 OBJECTIVES

· To be able to understand the principle behind digital system display.

· To be able to interface micro controller with the display unit.

· To be able to display the date and time in digital format.

1.6 UNITS OF THE SYSTEM

This digital clock with calendar model can be divided into two parts, the hardware and software. The hardware can be divided into several sections. This includes the power supply unit, the control unit and the display unit.

The software part can be broken down into the following sections. This includes the timing and counting unit, display decoder and scanning unit

1.3.1 HARDWARE PART

⦁ Power supply unit; 

Power supply unit consist of transformer, bridge rectifier, filter capacitor, voltage regulator and back up battery.  

⦁ The control unit;

The control unit consists of a microcontroller, the PIC16F877. It controls by timing, counting and sending numeric code to be displayed to the seven segment display.   

⦁ The display unit;

The display is made up of ten seven segment displays, and ten NPN BJT transistors. 

1.3.3 SOFTWARE PART

⦁ Timing unit;

The timing of the clock is achieved by assigning timer0 a special function registers in the microcontroller to timing.  Timer0 is incremented at every four clock cycle of the microcontroller, when it runs to the end it causes interrupt that enables a general purpose registers to increment. When this registers count to a reference value, register linked to the seconds is increased.  Timing starts with this register (seconds) which serves as input to other registers associated with other parts of the clock. 

⦁ Counting unit;

Each unit of the clock is linked to a general purpose register for counting purposes. There is a routine program that handles counting up for each of the clock units (refer to appendix for codes of routine program). The time taken for each increase is determined in the routine handling it. The output of each counter is binary and therefore needs to be converted to seven segment display format. Another routine is program to handle this (refer to appendix for routine program).

⦁ Display decoder;

The display decoder is a program that converts binary coded decimal output of the counter to seven segment display format. The output of each counter is converted to numeric display equivalent using this decoder.

⦁ Scanning unit;

In this project, the required number of terminals required can be estimated as follows; 

Each 7 segment requires at least 7pins of the MCU, there are ten 7 segments in the circuit, therefore required pins of the MCU is 7 * 10 = 70 pins. Other pins required for proper functioning of the MCU are the 4 power supply pins, 2 oscillator pins, 1 MCLR pin making the total number of pins required = 70 + 4 + 2 + 1 = 77pins. The MCU has just 40pins and not all these pins are available, therefore there is need for the LEDs and the seven segments to be multiplexed (discussed in the next chapter). There is a routine that handles this part of the display in the program (refer to appendix).  

.

DESIGN AND CONSTRUCTION OF A DIGITAL CLOCK WITH A CALENDAR



TYPE IN YOUR TOPIC AND CLICK SEARCH.






RESEARCHWAP.NET
Researchwap.net is an online repository for free project topics and research materials, articles and custom writing of research works. We’re an online resource centre that provides a vast database for students to access numerous research project topics and materials. Researchwap.net guides and assist Postgraduate, Undergraduate and Final Year Students with well researched and quality project topics, topic ideas, research guides and project materials. We’re reliable and trustworthy, and we really understand what is called “time factor”, that is why we’ve simplified the process so that students can get their research projects ready on time. Our platform provides more educational services, such as hiring a writer, research analysis, and software for computer science research and we also seriously adhere to a timely delivery.

TESTIMONIES FROM OUR CLIENTS


Please feel free to carefully review some written and captured responses from our satisfied clients.

  • "Exceptionally outstanding. Highly recommend for all who wish to have effective and excellent project defence. Easily Accessable, Affordable, Effective and effective."

    Debby Henry George, Massachusetts Institute of Technology (MIT), Cambridge, USA.
  • "I saw this website on facebook page and I did not even bother since I was in a hurry to complete my project. But I am totally amazed that when I visited the website and saw the topic I was looking for and I decided to give a try and now I have received it within an hour after ordering the material. Am grateful guys!"

    Hilary Yusuf, United States International University Africa, Nairobi, Kenya.
  • "Researchwap.net is a website I recommend to all student and researchers within and outside the country. The web owners are doing great job and I appreciate them for that. Once again, thank you very much "researchwap.net" and God bless you and your business! ."

    Debby Henry George, Massachusetts Institute of Technology (MIT), Cambridge, USA.
  • "Great User Experience, Nice flows and Superb functionalities.The app is indeed a great tech innovation for greasing the wheels of final year, research and other pedagogical related project works. A trial would definitely convince you."

    Lamilare Valentine, Kwame Nkrumah University, Kumasi, Ghana.
  • "I love what you guys are doing, your material guided me well through my research. Thank you for helping me achieve academic success."

    Sampson, University of Nigeria, Nsukka.
  • "researchwap.com is God-sent! I got good grades in my seminar and project with the help of your service, thank you soooooo much."

    Cynthia, Akwa Ibom State University .
  • "Sorry, it was in my spam folder all along, I should have looked it up properly first. Please keep up the good work, your team is quite commited. Am grateful...I will certainly refer my friends too."

    Elizabeth, Obafemi Awolowo University
  • "Am happy the defense went well, thanks to your articles. I may not be able to express how grateful I am for all your assistance, but on my honour, I owe you guys a good number of referrals. Thank you once again."

    Ali Olanrewaju, Lagos State University.
  • "My Dear Researchwap, initially I never believed one can actually do honest business transactions with Nigerians online until i stumbled into your website. You have broken a new legacy of record as far as am concerned. Keep up the good work!"

    Willie Ekereobong, University of Port Harcourt.
  • "WOW, SO IT'S TRUE??!! I can't believe I got this quality work for just 3k...I thought it was scam ooo. I wouldn't mind if it goes for over 5k, its worth it. Thank you!"

    Theressa, Igbinedion University.
  • "I did not see my project topic on your website so I decided to call your customer care number, the attention I got was epic! I got help from the beginning to the end of my project in just 3 days, they even taught me how to defend my project and I got a 'B' at the end. Thank you so much researchwap.com, infact, I owe my graduating well today to you guys...."

    Joseph, Abia state Polytechnic.
  • "My friend told me about ResearchWap website, I doubted her until I saw her receive her full project in less than 15 miniutes, I tried mine too and got it same, right now, am telling everyone in my school about researchwap.com, no one has to suffer any more writing their project. Thank you for making life easy for me and my fellow students... Keep up the good work"

    Christiana, Landmark University .
  • "I wish I knew you guys when I wrote my first degree project, it took so much time and effort then. Now, with just a click of a button, I got my complete project in less than 15 minutes. You guys are too amazing!."

    Musa, Federal University of Technology Minna
  • "I was scared at first when I saw your website but I decided to risk my last 3k and surprisingly I got my complete project in my email box instantly. This is so nice!!!."

    Ali Obafemi, Ibrahim Badamasi Babangida University, Niger State.
  • To contribute to our success story, send us a feedback or please kindly call 2348037664978.
    Then your comment and contact will be published here also with your consent.

    Thank you for choosing researchwap.com.