hello everyone,
I am in the process of building a water changer for my 400l reef aquarium. I am after a little guidance for the help with coding the arduino as I have attempted to code it modifying some code i found online running some pumps. it has not worked as I would like, I have added two extra portions to the code along the lines of an auto top-up to put in what has evaporated and a pump to mix the salt water in a remote container in my garden.
the main part of the code is to dose the tank every hour to have the tank running on a constant water change until the container in the garden is empty which a illuminated switch inside will flash to show it is empty. there are three switches on the tank, one to start the mixing at which it will illuminate while it is mixing. the other two switches are to me used to prime the dosing pumps used to top up the tank and change the water. these are also illuminated so they will will give feedback as to what is going on(when topping up it will illuminate the top up switch whilst the pump to top the tank up is running. when the water changer pumps are running the switch to prime the water changer pumps will illuminate.)
I have attempted to code it so when the container in the garden is empty the switch for the water changer and the top up will flash is series.
I felt I should explain what my aim of what I have coded should do as to someone with experience might look at it and see it makes no sense, I haven’t come on here to outline my project and just ask for the code to be written for me. I know for someone with little experience this may be a little bit of a big project but I would like help in outlining my mistakes in a view to learn and learn to code properly and maybe with a little guidance I will be able to have my project running properly.
I have attached my code for you to look at as I do not know if there would be specific parts that need looking at.
thanks in advance for your help.
Aquarium_water_changer_v1_1edit1.ino (8.28 KB)