LOGIN
NYSC MEMBER
 · ShiroroNigeria
Share
Report
Get Link
QUESTION
Open

Please i wanted to used ds3234 or ds1307 to real to run a program at a particular time but i don’t know how to do it. can some please give example of ‘if statement’ using 17:00 to initialize a program?

1 like 
Like
Award Contribution
Load 2 previous comments
NYSC MEMBER
 · ShiroroNigeria
Share
Report
Get Link

@ Abhi Verma, no using arduino uno

Like
1 like 
Award Contribution
NYSC MEMBER
 · ShiroroNigeria
Share
Report
Get Link

@ Nik Navish, i watched be for, but is quietly different from what i wanted to do. I only wanted to use the DS3234 or DS1307 time to initialize a two different set of program to run at different time. let assume program A is the default program while program B is the conditional program that only run twice at a certain time of the day, that is it will terminate A and run for an hour then terminate it self and the default (A) will keep running.

Like
0 like 
Award Contribution
Nik Navish
1
Apprentice
invent
 · МоскваРоссия
Share
Report
Get Link

😉

Like
0 like 
Award Contribution
Abhi Verma
28
Community Expert
ROBOToTHON 2017 Mentor, Electronics Engineer
 · DelhiIndia
Share
Report
Get Link

Arduino is a microcontroler too. Anyways according to me you can do that. Use main loop to check the time and call the function. Make two different functions which stores your two different code of program. Now you can call any of this function whenever time matches. Only one function will be working at a time. Try it

Like
1 like 
Award Contribution
NYSC MEMBER
 · ShiroroNigeria
Share
Report
Get Link

@Abhi, you are right arduino is micro controller too, arduino simplified the need of powering also the complicity of program, that’s why i said no using arduino.
I am experiencing difficulty in calling the program, please can u give me a sample using the RTC time?

Like
0 like 
Award Contribution
NYSC MEMBER
 · ShiroroNigeria
Share
Report
Get Link

please i will be away for a week but u can still keep things for me, i will check it immediately i come back

Like
0 like 
Award Contribution
Leave a reply...
DISCOVER
CHAT
ALERTS
DISCUSSIONS
FEED