i checked in forum but i could not able to fined it. Can some help me writing code .
I know psedo code write:
Assume i have rtc and motor
I have attached RTC code below. where i am getting date and time for set values.
now,I wanted to reset the previous time to current time every 10 min.when updatd motor get on and led pin 13 should high
previous time ==0; intially
current time = m;
check( current time- previous time)>10=10 min)
if yes previous time== current time, motor on, led 13 goes high
if not current time ++; motor should off , led 13 goes low
There are PLENTY of RTC code in either here or project guidence, that do something after a certain time has passed. Most, if not ALL have examples. Find them, read them, learn from them, and write your own. Come back when you have an actual code that compiles or at least has some errors that make sense based on what you wrote.
No code, no help.