Close

water qualitity sensors

A project log for R'lieh - Aquarium/ closed ecosystem management

An automated and connected aquarium management system

audrey-robinelAudrey Robinel 09/17/2014 at 23:311 Comment

On the long term, i'd like to monitor the water quality. The main parameters to monitor are dGH, dKH, pH, dissolved oxygen, CO2 in water, nitrites (NO2-) and nitrates (NO3-). Ideally, we could also measure many parameters (Amonia ->NH3, Amonium ->NH4+ )  that are part of the nitrogen cycle. However, unless the aquarium is not cycled, there should be no ammonia or ammonium. peaks of nitrites may occur when there is a problem in the tank (death of a big animal whose body is left in the tank), but shoudn't normally occur.

pH should be kept at certain levels according to the population of the tank. Some fish like high pH, neutral or low pH. In my case, i aim for a neutral pH of 7.

Another set of parameters to monitor is water hardness. 

Two indicators exist : general hardness (GH) and carbonate hardness (KH). It is often measured in degrees (dGH and dKH) with most tests. Again, here, the target values should be set according to your population. In my case, i aim for 7dKH and a similar value of dGH, since i have caridina cf. cantonensis shrimps, and neocaridina palmata in the same tank (i know the gh and kh values doesn't match with the provided links, but on other websites i found this value. It is really annoying to find the exact value...).

Dissolved oxygen is used to check if there is enough oxygen in the tank. To increase oxygen in the water, you have to make the water surface move. For that, i set the filter outlet in a way that makes movement on the surface, and i have an air pump, making small bubbles, also moving the surface. The hotter the water, the lower the dissolved oxygen in a similar setting. It should not be a problem for my setups anyway.

At last, Carbone dioxyde in water is important for some plants. Some need carbon to be added in water (i have a liquid containing it - easylife carbo -, but gaz form can be dissolved in water too). Too little and some plants don"t grow, too much and animals in the tank die. I tend to put less liquid in my tank than the specification. That way it may not be enough for the plants to grow fast, but it shouldn't kill my tank inhabitants.

Now, on measuring these parameters. The most frequent way of measuring those is chemical tests. Either strips of paper (i have been told by everyone that those are not reliable or precise), or a liquid solution. In this case, you take 5ml of water in the aquarium to be tested, and put a few drops of a solution in the water, and depending on the color, you know the value of the parameter.

This method is cheap, but can't easily be automated. One way to automate it would be to have a peristaltic pump preparing the solution, and either a color measuring sensor, or a camera to assess the color of the solution.  However it may prove difficult to fully automate, and you would still have to wash the container after mixing the solution in it, otherwise the next measure will be poluted by the previous one.

I may still work on a semi automated method, where i would make the solution by hand, and have a color sensor or a camera compare the obtained color with the reference colors. This way, it may be possible to extrapolate intermediate values, and the system would store the values rather than have to type it in for later references.

Another solution is to use probes. Probes get immersed in the water, and either return an tension or a value depending on the measured parameter. For automation purposes, it is perfect, since it is what we are used to do with temperature, humidity, etc sensors. However, the downside is that those sensors are expensive (often 100$+ for each sensor) and require a measurement board with amplification to have reliable measurements (often 150$+).

Here is an example of this kind of sensors : http://www.libelium.com/smart-water-sensors-monitor-water-quality-leakages-wastes-in-rivers-lakes-sea/


Atlas scientific also makes sensors that can be used that way : pH kit at sparkfundissolved oxygen at sparkfun.

From what i found on the web, it is possible to make a cheap pH sensor (10-30$). However for the other parameters it seems hard to find cheap solution. I once found a project where a guy was measuring water diffraction to determinate some parameters. It would be a perfect solution, but i didn't find a functional prototype. I think that the author of the project had to callibrate his sensor.

Another problem is that sensors have to be calibrated with a solution, i can't find good informations on how often it has to be done. It is not sure either that those sensors are meant to be immersed continuously in the solution. If not, it means that the system must be calibrated each time, then washed...

All in all, sensors are expensive. Unless i find a new solution, classic sensors are too expensive, except for a few. This part thus a low priority in this project, since other less expensive stuff have to be done before. I am still investigating however. Furthermore, if we consider those parameters, dissolved oxygen doesn't really need to be measured (even if it would be cool to know exact values), as we can ensure that we have high levels. For carbon in water, a precise dosing of the product should ensure correct values. On nitrites, phosphates, ammonia and ammonium, we should not need to measure it. Proper maintenance of the aquarium helps ensuring that everything is good. On nitrates, regular water changes keeps the levels at bay. However i'd like to be able to measure it to find way to extract nitrates from water (with alguea for instance). pH won't change if gH or kH are high enough. If they are low, pH can change easily. At last kH and gH are very low in my case, i have to re-mineralize the tap water. So i will be mixing a solution to obtain a specific value from 0. Unless big changes occur in tap water quality, i should be able to have a recipie for my water (x mg of gh/kh powder per litter). I will probably use drops tests to check the solution when i pepare it. In the absence of anything else, it won't change until i put it in the tank. If i prepare 20-30l of water, i can use it for a few weeks.

Of course, if i find cheap ways to automately measure those parameters, i will try it!

Discussions

James Newton wrote 07/08/2021 at 17:03 point

https://hackaday.io/project/4197-reagent-robot
resolves the issues with cleaning and pumping. Never finished due to lack of interest. The problem with electrical sensors ("probes") other than the cost is that they are all working from a chemical reaction on the sensor head, and so MUST drift over time and fail. The re-calibration at end of life allows a linear fit correction to regularize the data collected, but this does not work in a process control environment as the drift will have already resulted in bad readings and subsequent poisoning of the tank. The only option for using probes is to regularly clean and re-calibrate them in known pH solutions. e.g. once a week. At that point, you might as well just do the manual reagent test... or build a reagent robot. ,o)

  Are you sure? yes | no