With all of your help my timer project seems to be working. I have a question I am trying to have the timer adjust from 0 to 60 seconds and by me changing the pause time and playing with the pot I can't get it to change much. With a pause of 1000 it never shuts off. I am using a 10K pot @ 3 vdc for picaxe power. Below is the code.
SYMBOL RELAY = 2
SYMBOL POT1 = 4
SYMBOL TRIGGER = pin3
SYMBOL Temp = B1
START:
ReadADC POT1, Time 'get pot value between 0 and 255
IF TRIGGER = 0 THEN START: 'wait till the button is pushed
HIGH RELAY 'activate relay
FOR TEMP = 1 TO Time 'count from 1 to time setting
PAUSE 100 'pause 1/10 second for each count
NEXT TEMP ' next time update
LOW RELAY 'relay off
Do : loop until pin3=0
goto start
SYMBOL RELAY = 2
SYMBOL POT1 = 4
SYMBOL TRIGGER = pin3
SYMBOL Temp = B1
START:
ReadADC POT1, Time 'get pot value between 0 and 255
IF TRIGGER = 0 THEN START: 'wait till the button is pushed
HIGH RELAY 'activate relay
FOR TEMP = 1 TO Time 'count from 1 to time setting
PAUSE 100 'pause 1/10 second for each count
NEXT TEMP ' next time update
LOW RELAY 'relay off
Do : loop until pin3=0
goto start