Hello
I would like my WC board PLC to control my house fan. I have a humidity detector in the aspiration air conduct.
I can control my fan wihh 3 speeds by sending a small pulse (0.3s) on TTL1, TTL2, TTL3, TTL4 : low / medium & high + 4th position = max_speed for 10min.
I would like to accelerate higher speed my fan automatically when humidity >80% and decrease to normal speed when humidity <70%
I tried the following code, but this is not good because it will send continuously pulse command VMC_3 every xx ms. I can't do this. I need to send pulse control to fan only when this is needed.
Any idea ?
Thank you
Thomas
PS: why should i use pulse command ? Because my fan is radio controlled with a small emitter with 4 push buttons (=pulse). I hack these push buttons on the emitter to control them via TTL output of my WC board.
I would like my WC board PLC to control my house fan. I have a humidity detector in the aspiration air conduct.
I can control my fan wihh 3 speeds by sending a small pulse (0.3s) on TTL1, TTL2, TTL3, TTL4 : low / medium & high + 4th position = max_speed for 10min.
I would like to accelerate higher speed my fan automatically when humidity >80% and decrease to normal speed when humidity <70%
I tried the following code, but this is not good because it will send continuously pulse command VMC_3 every xx ms. I can't do this. I need to send pulse control to fan only when this is needed.
Code:
START
TSTGT H1 80
CALLSUB VMC_3
TSTLE H1 70
CALLSUB VMC_1
END
VMC_1:
SET OP1 1
DELAY 5
SETO OP1 0
RET
VMC_3:
SET OP3 1
DELAY 5
SET OP3 0
RET
Any idea ?
Thank you
Thomas
PS: why should i use pulse command ? Because my fan is radio controlled with a small emitter with 4 push buttons (=pulse). I hack these push buttons on the emitter to control them via TTL output of my WC board.