Digital stopwatch using microcontroller

How much time this event will take to finish?OK, Let’s countdown the time.So a stopwatch is the best solution.Just press the start button to start countdown then stop when the event completed.Now every cellphone has this feature but i was determined to make a digital stopwatch using micro controller as I am very fond ofΒ  this type of works.
This project is about to make a digital stopwatch. Whole project is simulated in Proteus 7.
MikroC is used to write the code.
The circuit is easy and we just need
Digital stopwatch using microcontroller
  • PIC16F73(1pc)
  • 16Γ—2 LCD(1pc)
  • Push Button(3pc)
  • 20 MHZ Oscillator(1pc)

Here we use three buttons.

  1. START Button
  2. PAUSE Button
  3. STOP Button

To understand the whole project look at the final output of the project.
Just make the connections as the figure shown.
This project file is compiled in MikroC Pro 5.8.0.

Connection Detail:

  • PIC RB2 β€”- LCD RS
  • PIC RB3 β€”- LCD EN
  • PIC RB4β€”- LCD D4
  • PIC RB5β€”-LCD D5
  • PIC RB6β€”-LCD D6
  • PIC RB7β€”-LCD D7
  • GROUNDβ€”-LCD R/W
  • PIC RC0β€”-START BUTTON
  • PIC RC1β€”-PAUSE BUTTON
  • PIC RC2β€”-STOP BUTTON
  • 20 MHZ OSCILLATOR IN XTAL PINS
  • PIC VCC οƒŸοƒ  5V

Digital stopwatch using microcontroller SchematicLoad the HEX file to the pic microcontroller.

Give power to the board and press the buttons to see the output in LCD.
Any Complexity ? Or Facing Problem ?? Just put comment. I shall try to help.
As I have shared the whole project code you can modify the code in MikroC as you need.

 

For more detail: Digital stopwatch using microcontrollerΒ 


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.