TIme Switch Application

Dear all,

I am trying to Build time Switch application For ATM machine. I am dividing 24 hours into 2 interval . 12 hours to run 2 Set of AC and other 12 hours by other AC.

Timing Has to be set by user.

I am using ardunio uno, lcd sheild ,and DS1307 for testing trial.

User can set time externally through LCD keypad sheild , as per Set time and working hours Device should get on.

I try to build using timealaram library But can't set define Time externally.

Is there any example code for building such code.

The web is full of Arduino libraries for the DS1307.

Please explain further "But can't set define Time externally".

ATM ? Automatic Teller Machine ?
Except for a very early prototype to test some functionality, an Arduino would not be considered robust enough for such a role. And what is an AC in this context ?

Anyway, some things to consider:

  • Automatic update for daylight saving time
  • For setting the switch times, a library is maybe overkill. Simply compare the current time HH:MM with the stored switch (ON/OFF) time.
  • A DS3231 is a much better real time clock than DS1307 and is generally compatible (libraries etc.)