Need some advice

first time trying to program I am trying to create a code to turn off and on my pump for my aquaponics, i managed to create the delays and the input timing, But i am stuck trying to figure out how to reset the loop once the last pump stops so the idea is as follow

1.start program
2. delay 1 will count down for time specified by the settings
3. once delay 1 is over, bolean = false - Pump timer node 1 will kick in the count down the time the pump need to be on
4. once once pump timer on 1 is over, bolean = false - delay node will kick in the count down the time
5. one delay 2 is over, bolean = false - Pump timer node 2 will kick in the count down the time the pump need to be on
6. once pump timer 2 is false, delay 1 reset and the count down start again

in addition a noob question, how do i tell the program to start, i was thinking of putting a button to press so that it tell the program to go ahead

Hi @tgab101

I have a similar solution for a pool pump, maybe it will give you a little bit of an incentive.
It also depends on how everything is wired. It can be adjusted by the program or by the wiring.

There are several other discussions on the forum about pump control, but yours seems to be much simpler than most of them. The way I read your description, you want 2 on-cycles with delay before each one, then repeat. That could just be 4 delay nodes with delay-ACT controlling pump (relay).

To restart the program, you need to loop the pulse back to the start of the program. Any time you loop back, you need a defer node. Since the program “starts” on boot (or replace that with button press), OR when it completes, you need an “any” node to allow more than one way to start.

NOTE: if you use button press to start program, button press (or output of “any” node) should be connected to 1st delay-SET and delay-RST on all other delay nodes to make sure there is only 1 pulse going through the system.

Hi everyone,

Thanks so much. it is a simpler design than what i thought of. But when i test in simulation it does not work with the button. the cycle stop only at the first relay. not sure where i when wrong

Delay-DONE should link to next delay-SET, not delay-RST

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.