Article
The chemistry behind better harvests: how automated pH control is rewriting aquaculture’s playbook
Industry: Aquaculture | Process: Disinfection_&_Water_Quality_Management
In ponds and recirculating systems, pH sets the stage for survival. It is a logarithmic measure of hydrogen ion (H⁺) concentration. Most aquaculture waters run between pH 6.5 and 9.0. The best range is near neutral to slightly basic, about 7.0 to 8.0, according to a widely cited extension guide (studylib.net). Fish blood pH averages about 7.4. Therefore water much below pH 5 or above pH 10 causes severe stress or death (studylib.net).
Daily chemistry cycles are pronounced. In the daytime, plankton photosynthesis consumes dissolved CO₂ (carbon dioxide). This raises pH. At night, respiration produces CO₂, which lowers pH (studylib.net. See also the “Table 1” summary here: daylight O₂ increases, CO₂ decreases and pH increases. At night O₂ decreases, CO₂ increases and pH decreases: studylib.net). In a well‑aerated pond, CO₂ usually stays in the 5–10 mg/L range. At sunset, dissolved oxygen (DO) falls while CO₂ rises. This forms carbonic acid (H₂CO₃) and pH drops (studylib.net. The same daily pattern is repeated here: studylib.net). Catfish, for example, tolerate up to 20–30 mg/L CO₂ if it builds up slowly. However, elevated CO₂ lowers the blood oxygen carrying capacity at the gills. If DO is already low, excess CO₂ can cause suffocation even when DO is only just adequate (studylib.net).
Carbonate system and buffer capacity
Stability hinges on alkalinity — the concentration of bases (primarily bicarbonate HCO₃⁻ and carbonate CO₃²⁻) that neutralize acids, commonly reported as mg/L CaCO₃ (studylib.net; additional context on alkalinity in aquaculture waters appears here: studylib.net). In natural waters, alkalinity originates when CO₂ in rain dissolves limestone (CaCO₃) in soils, following the reaction: CaCO₃ + H₂O + CO₂ → Ca²⁺ + 2 HCO₃⁻ (studylib.net). Weathering raises water hardness, alkalinity, and pH.
In buffered waters (moderate‑to‑high alkalinity), pH remains neutral to slightly basic (≈7.0–8.3) and resists swings; “higher amounts of CO₂ (carbonic acid) are required to lower pH because there is more base available to neutralize the acid” (studylib.net; direct quote and method reminder also appear in the same reference: studylib.net). By contrast, low‑alkalinity waters see wide diurnal swings — pH can fall to 4–5 at night or rise above 9–10 by midday if not buffered (two corroborating notes: studylib.net; and the day–night trend tabulation again: studylib.net). In practice, a minimum alkalinity of ~20 mg/L (as CaCO₃) supports “good productivity,” while 75–200 mg/L CaCO₃ is considered desirable for stable culture (studylib.net).
Calcium carbonate (limestone) dissolves below ~pH 8.3; above pH 8.3 it becomes ineffective (studylib.net). In hard, alkaline waters, gypsum or sodium bicarbonate (NaHCO₃) or calcium hydroxide [Ca(OH)₂] can be used to boost hardness and/or alkalinity instead (studylib.net).
Quantifying CO₂–pH–alkalinity linkage
Carbonate equilibrium ties CO₂, pH, and alkalinity quantitatively. A practical estimate is: CO₂ (mg/L) ≈ [alkalinity in mg/L] × [factor from tabulated data], where the factors are temperature and pH dependent (studylib.net). At 25 °C, the factor for pH 7.0 is 0.291 (so 100 mg/L alkalinity implies ~29 mg/L CO₂), whereas at pH 8.0 the factor is only 0.029, nearly negligible CO₂ (see also the “Table 2” pointer: studylib.net and the factor‑application note again: studylib.net). In practice, CO₂ above ~pH 8.4 is essentially zero (studylib.net).
Alkalinity also changes other chemistry. At any given total ammonia load, a higher pH (and higher alkalinity) raises the share of toxic un‑ionized ammonia (NH₃). This happens because the NH₃/NH₄⁺ equilibrium moves toward NH₃ as pH rises. However, low pH is lethal on its own. Metals such as copper (Cu) and zinc (Zn) become more toxic at low pH because they dissolve more easily (studylib.net).
Automated pH monitoring and feedback dosing

Modern setups use continuous monitoring with feedback dosing to keep pH and alkalinity stable. A typical system combines a pH sensor (glass electrode or optical probe, with temperature compensation), a controller (microprocessor/PLC), and one or more dosing pumps. The sensor reports pH in real time. The controller compares it to a setpoint or range and commands the pumps to add chemicals.
Research examples include an Arduino-based Outseal PLC with a pH probe (RDD-AFE-001) that commands peristaltic pumps. A tuned PID (proportional-integral-derivative) loop with Kp=30, Ki=20, Kd=15 keeps overshoot small (researchgate.net). Tuning and reading integration details are here: researchgate.net. In tests, this kept catfish pond pH tightly at 7.0 over 26–30 °C, and fish growth and health improved (study outcome summary here: researchgate.net). The setup used two pumps. When pH fell below setpoint, a base pump injected alkaline solution. When pH exceeded setpoint, an acid pump injected acid solution, and it turned off when equilibrium was reached (control logic confirmation here: researchgate.net).
Commercial sensors and controllers from instrumentation vendors (Yokogawa, Endress+Hauser, Seachem) log data and trigger alerts remotely. Low‑cost open‑source setups (Arduino, Raspberry Pi with analog pH boards) have also been demonstrated. Calibration and maintenance are important. Glass electrodes drift, so they should be calibrated in pH 4, 7, and 10 standards at least weekly to keep ±0.05–0.1 accuracy. Data trending software smooths noise and avoids reactions to spurious spikes. Well‑designed systems include alarm thresholds, data logging, and manual override.
The investment case is clear. Unstabilized, low‑alkalinity ponds can swing to pH 4–5 or above 10, causing fish kills (studylib.net). In contrast, maintaining pH in the 7–8 range has been shown to improve feed conversion and growth. Shrimp grown with Ca(OH)₂ or NaHCO₃ buffering had much better growth and feed efficiency than un‑buffered controls (sciencedirect.com). In the Outseal PLC study, stabilized pH led to “increased growth and development of catfish” and reduced disease incidence (researchgate.net). Market analyses also report a growing trend in “precision aquaculture” sensors, with pH metering identified as a rapidly expanding segment.
Buffer and acid selection in practice
Raising pH and alkalinity usually involves carbonates and hydroxides. Calcium carbonate (limestone) slowly dissolves to yield bicarbonate, raising alkalinity and pH when pH is below ~8.3. Above ~8.3 it stops dissolving and becomes ineffective (studylib.net). Hydrated lime (Ca(OH)₂) and quicklime (CaO) dissolve faster and can rapidly raise pH and hardness. However, they are caustic, so overdosing risks dangerous overshoot. Gradual addition and aggressive aeration to off-gas CO₂ help stabilize pH (overdose caution and aeration guidance are documented here: studylib.net).
For incremental control, sodium bicarbonate (NaHCO₃, “baking soda”) is widely used. It dissolves fully; each 84 g adds one mole of HCO₃⁻, equivalent to 2 equivalents of CaCO₃ alkalinity. In biofloc shrimp ponds, adding ~0.1–0.2 g/L NaHCO₃ kept alkalinity above 60–100 mg/L and improved survival and growth (researchgate.net; related trials and carbonate system discussion: sciencedirect.com). Vinatea et al. (2010) dosed 0.12 g/L NaHCO₃ whenever alkalinity fell below 60 mg/L CaCO₃ (sciencedirect.com), and Zhang et al. (2017) found maintaining pH at 7.6–8.1 via NaHCO₃ yielded greatly higher shrimp growth and immunity than a non‑buffered control (researchgate.net).
Sodium carbonate (Na₂CO₃, “soda ash”) is stronger and raises pH more aggressively. Therefore it is more likely to overshoot. Padilha et al. (2011) reported that soda ash raised pH well. However, under biofloc conditions it did not add alkalinity as well as NaHCO₃ or Ca(OH)₂ (sciencedirect.com). In brackish and marine systems, sodium bicarbonate and sodium carbonate are preferred, because adding Ca²⁺ can distort salinity. In freshwater ponds, lime or dolomite may be chosen. If hardness (Ca²⁺) is low, gypsum (CaSO₄·2H₂O) or calcium chloride (CaCl₂) can raise Ca²⁺ without changing pH. However, they add no alkalinity (studylib.net). In ozonated marine water, NaHCO₃ and hydrated lime were found to be effective buffers. However, a lime overdose can push the pH too high (researchgate.net).
When pH climbs too high, a common outcome in sunny, eutrophic ponds with intense photosynthesis, downward adjustment protects against ammonia toxicity and fish stress (yokogawa.com). Dissolved CO₂ is the safest “acid”. It is injected from cylinders through a diffuser to form carbonic acid, with precise control in recirculating systems. In outdoor ponds, simple aeration releases excess CO₂ to the atmosphere and raises pH naturally. Chemical acids (HCl, H₂SO₄) correct pH quickly in small systems. However, they risk overshoot and need careful handling. If they are used, they should be diluted and added slowly with mixing. Many aquaculturists avoid direct dosing of concentrated acids in earthen ponds. Organic acids (for example acetic acid) are rarely used because of odour and stress.
Buffer and acid inventories are handled through chemical supply and storage. Many farms use standard reagents and reservoirs as part of a wider water‑treatment setup (water and wastewater chemicals).
Designing reliable feedback dosing systems
Sensors: we specify high‑quality industrial probes or optical pH sensors with ±0.01–0.05 accuracy. The probes usually sit in a bypass or flow cell, or in rugged submersible locations. Calibrate them every week in pH 4, 7, and 10 standards.
Controllers: embedded controllers or PLCs take analog inputs from pH and drive analog or digital outputs to pumps. We recommend PID control. Tuned gains (as in the Outseal example: Kp=30, Ki=20, Kd=15) give a faster response with minimal overshoot (researchgate.net). Simpler ON/OFF (bang‑bang) control with hysteresis can also work. For example, run a base pump while pH<6.8 until pH=7.2, then stop. Use the same logic for acid at high pH.
Pumps and plumbing: peristaltic or diaphragm pumps with chemical-resistant wetted parts (PVC or PTFE tubing) are typical. Sizing follows dose rates. For example, to raise alkalinity by 50 mg/L in a 100 m³ pond, you need about 1.68 kg of NaHCO₃ (since 1 mg/L as CaCO₃ equals about 1.68 mg/L NaHCO₃). Pumps may run continuously with variable speed or in pulses. Discharge points should enter a mixing basin or well-aerated flow to disperse chemicals. For acids, inject downstream of pumps and away from fish intakes. Many systems use two pumps, one for a base (NaHCO₃ dissolved in water) and one for an acid (HCl or a CO₂ bubbler). The Outseal PLC design uses the same pattern (researchgate.net). Supporting components such as reservoirs, diffusers, flow cells, and calibration stations are standard water-treatment accessories (water-treatment ancillaries).
Alarms and safety: systems alert when pH drifts outside bounds (for example, >9.0 or <6.5), when pumps fail (via flow or pressure sensing), or when calibration is overdue. Redundant sensors hedge against drift or fouling. Chemical reservoirs should be secured. Maximum buffer capacity should be computed to avoid catastrophic pH shifts. Manual shutoff or maintenance modes are standard.
Outcome monitoring: regular tests (pH, alkalinity, NH₃/NH₄⁺) check performance. A well‑tuned system can hold pH within ±0.1 of setpoint. That is much narrower than the 5–10 point swings seen in unbuffered ponds (studylib.net). Trials have linked buffering to better economics. Lime or bicarbonate improved feed conversion and productivity compared with no‑buffer controls (sciencedirect.com). In shrimp, raising pH/alkalinity with NaHCO₃ increased weight gains by ~9–10% and specific growth rate by ~4–5% compared with poorly buffered ponds (agris.fao.org). These gains support the business case for sensors, controllers and precise chemical delivery.
Diel cycle snapshot (24‑hour pattern)
Figure reference: in daylight, photosynthesis reduces CO₂ and raises pH. At night, respiration increases CO₂ and reduces pH. CO₂ peaks coincide with low pH at dawn. DO peaks at midday, when pH is high (summary after Wurts & Durborow, illustrated in “Table 1”: studylib.net).
Sources and further reading
All data and relationships above derive from aquaculture water‑chemistry studies, industry extension manuals, and engineering implementations, including: pH ranges, diel cycles, alkalinity thresholds, and carbonate‑system factors (studylib.net; studylib.net; carbonate factor usage and tabulation: studylib.net; factor table pointer: studylib.net; desirable alkalinity ranges: studylib.net; buffering behavior and water chemistry interactions: studylib.net; ammonia and metals toxicity shifts: studylib.net). Buffer strategies and performance are detailed in shrimp and biofloc studies (researchgate.net; sciencedirect.com), with automation and PID control implementations documented in catfish trials (researchgate.net; researchgate.net; researchgate.net), and application notes on pH control in fish farming (yokogawa.com). Documented outcomes include ~9–10% higher weight gains and ~4–5% higher specific growth rate from NaHCO₃ buffering in shrimp relative to poorly buffered ponds (agris.fao.org).