Alarm Clock code and scematic


+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Location
    Worcester South Africa
    Posts
    18

    Default Alarm Clock code and scematic

    Code for an alarm clock with a schematic, uses a PIC 16F876A with a 4 digit 7 Segment display, time and alarm time can be adjusted with 3 knobs, alarm can be disabled with a toggle switch.
    Alarm is a tune played on a speaker, if you dont like my tune ,you can compose your own one easy.
    enjoy.

    Willie
    Attached Images Attached Images  
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,087

    Default Re: Alarm Clock code and scematic

    Nice work!

    Although a bit old the MCU. You can replace it with newer, cheaper and with no need of external xtal for the system clock. Reduces component list.

    Ioannis

  3. #3
    Join Date
    Jul 2009
    Location
    Worcester South Africa
    Posts
    18

    Default Re: Alarm Clock code and scematic

    Thanks Ioannis, for the nice words , what is the newer cheaper ic called?

    Willie

  4. #4

    Default Re: Alarm Clock code and scematic

    Quote Originally Posted by Ioannis View Post
    Nice work!

    Although a bit old the MCU. You can replace it with newer, cheaper and with no need of external xtal for the system clock. Reduces component list.

    Ioannis
    I suspect a crystal would still be required in order to have good time keeping accuracy.

  5. #5
    Join Date
    Dec 2010
    Location
    Melbourne Australia
    Posts
    86

    Default Re: Alarm Clock code and scematic

    I suspect a crystal would still be required in order to have good time keeping accuracy.
    I also suspect that too. Even the PICs with RTCC functionality (eg. PIC18F47J53 family) IIRC require an external 32.768 kHz clock for accurate time keeping.

    Anyway, nice stuff Willie. I reckon I might call upon that code sooner or later.

    Troy
    Last edited by rocket_troy; - 13th July 2021 at 14:57.

  6. #6
    Join Date
    Jul 2009
    Location
    Worcester South Africa
    Posts
    18

    Default Re: Alarm Clock code and scematic

    Hi Troy, it really works, Ive also made another one for my deaf son , with flashing lights instead of the speaker system as an alarm

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,087

    Default Re: Alarm Clock code and scematic

    Quote Originally Posted by surfies View Post
    Thanks Ioannis, for the nice words , what is the newer cheaper ic called?

    Willie
    For example PIC16F1516 that costs 4 times less with much more goodies! There are many many more with better price and more peripherals.

    The RTC crystal is absolutely necessary. The SYSTEM crystal is not. You can use the internal RC clock just fine.

    Ioannis

Similar Threads

  1. I2C clock code with tiny problem
    By Amoque in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th October 2013, 00:36
  2. cool RTC1302 alarm Clock:)
    By HYETİK in forum Code Examples
    Replies: 4
    Last Post: - 14th April 2009, 09:16
  3. Digital Clock With Alarm Using DS1307.
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2007, 02:43
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Alarm Contact
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 16th October 2005, 12:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts