Hi Guys
with reference to the code below I would like to include a 45 minute timer (approx ) below so that the timer switches the boiler off after 45 mins
The boiler switches off when the temperature reaches 60oC
I have tried using for and next commands to create the timer but I cannot integrate it to the code below
any tips would be greatfully received
thank you
novolts
#picaxe 14m2
symbol PUSH_SW = pinC.1 ; switch boiler on
symbol TH_STAT = pinC.4 ; Strap on cylinder thermostat ( set at 60oC )
do
if PUSH_SW=1 then
high B.2 ;switch boiler on
end if
if TH_STAT=1 then
low B.2 ;switch boiler off when hot water temperature is 60oC
end if
loop
with reference to the code below I would like to include a 45 minute timer (approx ) below so that the timer switches the boiler off after 45 mins
The boiler switches off when the temperature reaches 60oC
I have tried using for and next commands to create the timer but I cannot integrate it to the code below
any tips would be greatfully received
thank you
novolts
#picaxe 14m2
symbol PUSH_SW = pinC.1 ; switch boiler on
symbol TH_STAT = pinC.4 ; Strap on cylinder thermostat ( set at 60oC )
do
if PUSH_SW=1 then
high B.2 ;switch boiler on
end if
if TH_STAT=1 then
low B.2 ;switch boiler off when hot water temperature is 60oC
end if
loop