LOGIN
Zubairu Abana Mala
NYSC MEMBER
 · ShiroroNigeria
Edit
Delete
Share
Report
QUESTION
  ·  Mark as Answered

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
Share
Load 2 previous comments
Zubairu Abana Mala
NYSC MEMBER
 · ShiroroNigeria
Edit
Delete
Share
Report

@ Abhi Verma, no using arduino uno

1 like 
Zubairu Abana Mala
NYSC MEMBER
 · ShiroroNigeria
Edit
Delete
Share
Report

@ 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.

0 like 
Nik Navish
invent
 · МоскваРоссия
Edit
Delete
Share
Report

😉

0 like 
Abhi Verma
Electronics Engineer
 · GhaziabadIndia
Edit
Delete
Share
Report

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

1 like 
Zubairu Abana Mala
NYSC MEMBER
 · ShiroroNigeria
Edit
Delete
Share
Report

@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?

0 like 
Zubairu Abana Mala
NYSC MEMBER
 · ShiroroNigeria
Edit
Delete
Share
Report

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

0 like 
Leave a reply...
DISCOVER
CHAT
ALERTS
-2
DISCUSSIONS
-1
FEED