I am trying to make and Arduino Water Reverse Osmosis Controller. I have written up the code but for some reason does not work. I would really appreciate if somebody out there could look at it and advise where am i going wrong.
Brief of Functions Required In Order.
1/ A float switch situated within a holding tank sends a signal that Fresh RO water is needed.
2/ The booster pump and a selenoid(1) switch are activated and the function goes into flushing membrane mode for 2 minutes.
3/ After 2 minutes the selenoid(1) closes and selenoid(2) is activated and the function goes into Old Standing water flush for 2 minutes.
4/ After 2 minutes selenoid(2) closes and selenoid(3) is activated. We are now in Fresh RO water mode. this continues until the holding tank float switch switches everything off.
5/ Meanwhile the booster pump needs to have a few parameters attached to its function and they are as follows
a/ the maximum on period for the booster pump in one period is 30 minutes.
b/ if the maximum on period is reached the booster pump must shut off and cool down for 10 minutes.
@Koepel thanks for that I will try it today. @jremington, what I am trying to do here is to check whether the stepper motor pin has been on for certain specified period of time, how would you do that? @jrdoner I will check. The timer was taken from an example sketch with library.