I have made a controller for an heat exchanger. The controller monitors the output temperature and opens or closes a valve if it's too hot or too cold. This regulation is gross but for my scope of application is ok.
I am more concerned by the fact that this type of regulation causes the actuator to open and close continuously and the system reaches an equilibrium only after a few hours of operation.
Unfortunally the actuator takes only two commands: open and close. When I have voltage on PIN1 the actuator opens the valve, whe I have voltage on PIN2 the actuator closes the valve. When there is no voltage on both pins, the actuator is stopped in that position.
Now I'm using python to control two relays that are wired to PIN1 and PIN2. So one relay is for open command and the other is for close command.
Is it possible to implement a software PID controller for an actuator like this?