5 minutes tmer using pic16f877a

Status
Not open for further replies.

donnafe

Junior Member level 3
Joined
Feb 9, 2011
Messages
25
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,440
i'm donnafe. .

please help me regarding my project. .

i will be making an automatic plant waterer. .

i just want to ask if wat will be the source code in making a 5 minutes timer .. but when the timer reaches 1 minute the water will flow w/ in 10 seconds then stops. . then when the timer reaches the 5 minutes again the water will flow w/in 1o seconds. .
 

i dont know C but the concept is still the same with basic..

as you know, 1000ms = 1 sec

so for example:

loop:

delayms 60000
portb.0 = 1
delayms 10000
portb.0 = 0
delayms 230000
portb.0 = 1
delayms 10000
portb.0 = 0

goto loop
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…