Naked Clock using PIC16F877 Microcontroller

Summary of Naked Clock using PIC16F877 Microcontroller


This project describes a minimalist PIC clock built without a traditional enclosure, where the hanger also serves as the ground. It uses a 40-pin PIC16F877 microcontroller, with timing calibrated through code adjustments after testing. Initially intended to run on a 9-volt battery, the clock instead operates on a wall adapter due to high power consumption. A single resistor shared among LED segments causes inconsistent brightness, suggesting individual resistors per segment would improve uniformity.

Parts used in the Naked Clock using PIC16F877 Microcontroller:

  • 40-pin PIC16F877 microcontroller
  • LED segments
  • Resistor (shared among LED segments)
  • Wall adapter power supply
  • Hanger serving as ground connection

Why have an enclosure?  The enclosure of a clock
doesn’t tell you the time!  So I built this PIC clock with no
part that doesn’t serve an electrical function.  The
hanger is the ground.

The microcontroller is the 40-pin PIC 16F877.  I set it up,
then let it run for a few weeks, saw how far off it got, then
went back into the code to add an extra delay to get the
timing just right.
Naked clock

Lessons Learned:

I originally planned to have this run off a 9 volt battery, but I
found that it would drain the battery in less than 24 hours,
not an ideal clock!  So now it runs off a wall adapter.

There’s a resistor between the LEDs and the ground that is
the hanger.  Since several segments share one resistor, the
brightness of one segment depends on how many of its
neighbors are on.  The seven digit has the biggest problem.
It would have been better to put the resistor between each
pin and LED segment instead.

 

For more detail: Naked Clock using PIC16F877 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.