Page 1 of 1

Controlling 3-way valves PWM DIO module

Posted: 05 Mar 2019, 13:26
by AyKay
I have a RevPu Core 3, an AIO module and a DIO module. I would like to control 4 3-way valves using the DIO module. The valves need 24V to switch and 12V to hold. The switching current is ~180mA and the holding current is ~112mA. I have done some research and it seems that using the DIO modules in PWM is the best option.
My problem is that I do not know how to time the switching of the valves and to change the voltage from switching to holding. I would like to have one valve active for t minutes and then switch to the next valve, i.e. 1 0 0 0, 0 1 0 0, 0 0 1 0, 0 0 0 1 and repeat.
How can I achieve this?