Please help with time control using BS2.
···· I have the project that I need to use BS2 to turn on the bell at some specific time. For example at 6am the bell will ring for start of shift to remind people and it will ring again at 12pm for break time, so on and so on.
···· I’ve already written the code to control the bell but I don’t know how to use the code to turn the BS2 to sleep mode and reactivate it again at the end or beginning of each day, because this machine suppose to be on all the time.
···· Does anyway that I can know the time by using the code. For instance: if “the current time” equal 6am then do action X.
···· Please help,
···· Thank you,
···· LN
···· I’ve already written the code to control the bell but I don’t know how to use the code to turn the BS2 to sleep mode and reactivate it again at the end or beginning of each day, because this machine suppose to be on all the time.
···· Does anyway that I can know the time by using the code. For instance: if “the current time” equal 6am then do action X.
···· Please help,
···· Thank you,
···· LN
Comments
Is there some reason you want the BS2 in "low power" mode? I'd assume this contraption would be on a wall-wart wall power most of the time, no?
And even if you DID want to 'sleep' the BS2, you could have it 'wake up' close to the time it was supposed to go off (like within 10 or 30 minutes) and have it 'read' the clock chip until the accurate time to go off arrived.
Personally, I like a blinking LED blinking at me every 5 seconds or so from a program loop -- it gives me warm fuzzies that the program is still working.