fritz42_male
Senior Member
Hi all,
I've built a little delay/duration timer based on an 08m. The setup reads 2 10K linear pots and then assigns a duration and delay based on those 2 values. I'm currently switching on an LED but will be hooking it up to an SSR (3-32V input, 250VAC 4A output). Everything is working fine but...
2 questions:
1) Can the 08M adequately drive BOTH an LED AND an SSR or will it drive only the one (without a darlington/transistor booster). I do not have the full spec for the relay other than it is an SMT 2000/4 made by Huntleigh Technology, Cardiff, UK.
2) As it stands, my program (see below) monitors the 2 pots at the start of the routine but not during. This is fine for shorter periods but when using longer periods, it gets tedious waiting to see how long it goes for (for calibrating the pot scale). Is there an easy way of monitoring the pots DURING the delay/duration cycle and shortening/lengthening the delay and duration DURING the sequence if the pots are altered?
symbol delay=1
symbol duration=2
begin:
debug
readadc delay,b1
readadc duration,b4
high 4
for b2 = 1 to b1
pause 100
next b2
low 4
for b3=1 to b4
pause 100
next b3
goto begin
My programming days are decades behind me and I was never much good so any help would be appreciated.
Cheers
Mike
I've built a little delay/duration timer based on an 08m. The setup reads 2 10K linear pots and then assigns a duration and delay based on those 2 values. I'm currently switching on an LED but will be hooking it up to an SSR (3-32V input, 250VAC 4A output). Everything is working fine but...
2 questions:
1) Can the 08M adequately drive BOTH an LED AND an SSR or will it drive only the one (without a darlington/transistor booster). I do not have the full spec for the relay other than it is an SMT 2000/4 made by Huntleigh Technology, Cardiff, UK.
2) As it stands, my program (see below) monitors the 2 pots at the start of the routine but not during. This is fine for shorter periods but when using longer periods, it gets tedious waiting to see how long it goes for (for calibrating the pot scale). Is there an easy way of monitoring the pots DURING the delay/duration cycle and shortening/lengthening the delay and duration DURING the sequence if the pots are altered?
symbol delay=1
symbol duration=2
begin:
debug
readadc delay,b1
readadc duration,b4
high 4
for b2 = 1 to b1
pause 100
next b2
low 4
for b3=1 to b4
pause 100
next b3
goto begin
My programming days are decades behind me and I was never much good so any help would be appreciated.
Cheers
Mike