LED Sign has a purpose! using pic microcontroller

Summary of LED Sign has a purpose! using pic microcontroller


The author repurposed a single-character LED sign as a clock with two modes: traditional numbers and binary. To enable this, the circuit was redesigned to include a Real-Time Clock (RTC) for timekeeping and an EEPROM for storing user data and messages. Additional components like micro switches and a crystal oscillator were added for adjustments and timing accuracy.

Parts used in LED Sign Clock Project:

  • M41T80 Real Time Clock IC
  • 16 kilobit serial EEPROM
  • Micro switches
  • 32.768kHz crystal
  • Diode
  • Large capacitor
  • LED Sign

The single character LED sign I had been playing with now has a purpose! Shortly after discarding several ideas of having it as a serial display for PC/Server status, or hooking it up to the internet and a webcam, I came up with an actual useful purpose. The sign can be a clock! I have two ‘modes’ planned; traditional numbers and binary. All geeks love binary clocks, but most of us are lazy and would rather read regular ‘ol numbers.

 LED Sign has a purpose!To facilitate the role as an clock, I had to redesign the circuit quite a bit. Two new ICs were added, allowing the LED Sign to keep time, and providing some much needed storage.

The first of the new ICs is a Real Time Clock. Because I’m cheap, I chose the M41T80 from ST Micro. It’s an inexpensive clock, similar to the Dallas DS1307 but lacking a few minor features. First, the clock has no power-on reset detection. It just starts up as soon as power is supplied. The Dall 1307 has a stop bit which gets set if the clock experiences a POR, so the firmware can test if the clock needs to be initialized or not. The T80 datasheet mentions some registers may get set to default values on power up, so I’ll have to read it a few more times to see if there is a way I can check for a POR. Second, the T80 has no support for a separate backup battery. Instead, ST recommends you place a diode in series with the clock, and use a large capacitor to provide backup power. Last, there is no automatic leap year / leap second correction, oh well!

 LED Sign has a purpose!The second IC is a 16 kilobit serial eeprom, similar to the Microchip 24C16, I chose one from Catalyst semiconductor due to lower costs. The eeprom is arranged as eight banks of 256 bytes each. The chip contains a 16 byte write-buffer, I’m not sure if it can cross a bank boundary or not, I’ll program my firmware assuming it can not. The eeprom will be storing character strings related to operation of the LED Sign as a clock, as well as user programmed messages and possibly simple graphics.

I’ve also added some micro switches for adjusting the clock and changing settings, also a 32.768kHz crystal was added to providing the timing source for the RTC.

 

For more detail:  LED Sign has a purpose!

Quick Solutions to Questions related to LED Sign Clock Project:

  • What is the main purpose of the modified LED sign?
    The sign serves as a clock with two planned modes: traditional numbers and binary.
  • Why was the circuit redesigned for the clock function?
    The redesign added new ICs to allow the sign to keep time and provide necessary storage.
  • Which Real Time Clock IC was chosen and why?
    The M41T80 from ST Micro was chosen because it is inexpensive.
  • Does the M41T80 support power-on reset detection?
    No, the M41T80 has no power-on reset detection and starts up as soon as power is supplied.
  • How does the design handle backup power for the clock?
    A diode is placed in series with the clock and a large capacitor provides backup power.
  • What type of memory chip was added to the project?
    A 16 kilobit serial EEPROM from Catalyst semiconductor was added.
  • What will the EEPROM store?
    The EEPROM will store character strings for operation, user programmed messages, and possibly simple graphics.
  • What component provides the timing source for the RTC?
    A 32.768kHz crystal was added to provide the timing source for the RTC.

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