Good day
Somebody a long while ago helped me with this code to toggle 2 outputs every 5 minutes and keep it high for 1sec
I need to find out if there is a way to use a resistive pot or resistors to adjust the time from 5 minutes to about an hour and in between as it wont be possible to reprogram it every time
I think somebody helped me before on something similar but I cannot find it anywhere under my old posts
Thank you in advance
Regards
Vissie
I cant remember how to post the code so I copied and past it here
#Picaxe 08M2
#No_Data
DO
HIGH C.0 ;outputc.0 goes HIGH
PAUSE 1000 ;PAUSE 1 SEC
LOW C.0 ;output c.0 goes LOW
for b1 = 1 to 5 ;5 loops
pause 60000 ;wait 60 secondS
next b1
HIGH C.4 ;output C.4 goes HIGH
PAUSE 1000 ;PAUSE 1 SEC
LOW C.4 ;output c.4 goes LOW
for b1 = 1 to 5 ;5 loops
pause 60000 ;wait 60 secondS
next b1
LOOP
Somebody a long while ago helped me with this code to toggle 2 outputs every 5 minutes and keep it high for 1sec
I need to find out if there is a way to use a resistive pot or resistors to adjust the time from 5 minutes to about an hour and in between as it wont be possible to reprogram it every time
I think somebody helped me before on something similar but I cannot find it anywhere under my old posts
Thank you in advance
Regards
Vissie
I cant remember how to post the code so I copied and past it here
#Picaxe 08M2
#No_Data
DO
HIGH C.0 ;outputc.0 goes HIGH
PAUSE 1000 ;PAUSE 1 SEC
LOW C.0 ;output c.0 goes LOW
for b1 = 1 to 5 ;5 loops
pause 60000 ;wait 60 secondS
next b1
HIGH C.4 ;output C.4 goes HIGH
PAUSE 1000 ;PAUSE 1 SEC
LOW C.4 ;output c.4 goes LOW
for b1 = 1 to 5 ;5 loops
pause 60000 ;wait 60 secondS
next b1
LOOP
Last edited: