Does any one have a working code for an rtc that works as an alarm clock

Discussion in 'Embedded Systems and Microcontrollers' started by xed339, Feb 10, 2013.

  1. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
    Does anyone of you guys happen to have a code for RTC displayed in lcd and works as an alam clock? can anyone help me with this one..im looking forward to it
     
  2. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    For what controller?

    Which RTC IC?

    What output for alarm?
     
  3. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
    Sorry i forgot to mention that I'll use Pic microcontroller(PIC18F family), ds1307, 2x16 LCD..:)
     
  4. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    With which compiler?

    Do you have it displaying the current time on an LCD at the moment?

    Have you worked with PIC before?
     
  5. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
    well i only know the basics. the only program that i coded is about blinking led and using the if else if..and a little of c..i use c18 compiler
     
  6. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    There are several versions of code to get the LCD and RTC running already posted in several places on the net.

    Is this application going to be portable, or powered by a wall adapter?
     
  7. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
    I want to make the motor run on a specific time that i wanted.. it's not portable
     
  8. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
    I'm making a pet feeder..so I want to make a system for it. set time when to feed.
     
  9. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Link to base, modify code to fit your compiler

    Then it's just a matter of setting a time for the clock to be equal to. How simple or complex you'd like that is up to your taste. (menu to set alarm time, multiple alarms, etc)

    The DS1305 Supports 2 alarms, but communication is through SPI rather than I²C.

    The DS1337 supports 2 alarms with I²C communication.

    This would allow the uC to be in sleep mode between alarm events.
     
  10. xed339

    Thread Starter New Member

    Feb 4, 2013
    13
    0
  11. RG23

    Active Member

    Dec 6, 2010
    301
    2
Loading...