Hey everyone.
I've been having a play with a spare raspberry pi I have at home and want to automate doing water changes so I can have a 100l container for example and over the course of a week or so the system will do a small daily water change to help keep parameters stable and fairly constant.
I'm quite a noob when it comes to coding and have little experience but have a working python code that's written very similarly to C as I;ve made an auto water changer a few years ago with an Arduino until the chip blew and all pumps turned on messing all my parameters up and nearly causing a small flood. (it was down to the 5V going in as wasn't regulated and must have spiked blowing up the chip ;Facepalm)
I'm wondering if there are any guys on here that would be happy to help rewrite the code to be how I would want it.
I'm looking to have it set up in such a way that its possible to view on a web browser and change some settings relevant to container size, tank size, the percentage of weekly water change so that the system can calculate the required run times based on set pump flow etc.
At the moment I have the basic code set that will enable the system to be autonomous and all that would be required is to put the right amount of salt in the container and at the push of a button it opens a solenoid to fill the container from my RO filter, once the container is full closing the solenoid and proceeding to run an internal pump to mix the salt water solution for a set amount of time.
After the filling and mixing is complete it will run the sequence of pumps once a day at a defined time to complete the water change.
When the container is empty the system will stop being able to do water changes either until refilled or the option of entering a cleaning process to partially fill the container and run the mixing pump and then drain the tank back down ready for salt and refill.
I have included an ATO set fo code as I currently have a Reef-Pi setup from a thread made by @Ranjib but undertaking the water changes would fool the Reef-Pi into a low water state and cause it to start its ATO where how I have set my AWC to stop its ATO when the change is called.
I'm very basic to coding and the whole webpage/webserver I am very much going out of my depth.
I will post my code up on here for anyone to see and if anyone can help that would be amazing. I would like to possibly do the system in python as I would like to learn along the way ideally rather than just have someone rewrite my code so it works but I don't have any clue about it.
Thanks.
I've been having a play with a spare raspberry pi I have at home and want to automate doing water changes so I can have a 100l container for example and over the course of a week or so the system will do a small daily water change to help keep parameters stable and fairly constant.
I'm quite a noob when it comes to coding and have little experience but have a working python code that's written very similarly to C as I;ve made an auto water changer a few years ago with an Arduino until the chip blew and all pumps turned on messing all my parameters up and nearly causing a small flood. (it was down to the 5V going in as wasn't regulated and must have spiked blowing up the chip ;Facepalm)
I'm wondering if there are any guys on here that would be happy to help rewrite the code to be how I would want it.
I'm looking to have it set up in such a way that its possible to view on a web browser and change some settings relevant to container size, tank size, the percentage of weekly water change so that the system can calculate the required run times based on set pump flow etc.
At the moment I have the basic code set that will enable the system to be autonomous and all that would be required is to put the right amount of salt in the container and at the push of a button it opens a solenoid to fill the container from my RO filter, once the container is full closing the solenoid and proceeding to run an internal pump to mix the salt water solution for a set amount of time.
After the filling and mixing is complete it will run the sequence of pumps once a day at a defined time to complete the water change.
When the container is empty the system will stop being able to do water changes either until refilled or the option of entering a cleaning process to partially fill the container and run the mixing pump and then drain the tank back down ready for salt and refill.
I have included an ATO set fo code as I currently have a Reef-Pi setup from a thread made by @Ranjib but undertaking the water changes would fool the Reef-Pi into a low water state and cause it to start its ATO where how I have set my AWC to stop its ATO when the change is called.
I'm very basic to coding and the whole webpage/webserver I am very much going out of my depth.
I will post my code up on here for anyone to see and if anyone can help that would be amazing. I would like to possibly do the system in python as I would like to learn along the way ideally rather than just have someone rewrite my code so it works but I don't have any clue about it.
Thanks.