Automating nutrient dosing with peristaltic pumps
A peristaltic pump, an EC sensor, and a controller can keep your reservoir at target concentration automatically. What it costs and whether it's worth it.
Mixing nutrients by hand works fine for a single reservoir that you check daily. Once you're running multiple systems, traveling regularly, or just tired of measuring and pouring every few days, automation becomes attractive. The core idea: sensors measure pH and EC in the reservoir, and peristaltic pumps dose concentrated nutrient stock solutions automatically to maintain targets.
What you need
EC sensor: Measures the total dissolved salt concentration in the solution. When EC drops below the target (because plants consumed nutrients), the controller triggers a dose. Inline EC probes sit in the reservoir or in a flow cell on the return line. Cost: $30-80 for a hobby probe, $150-300 for an industrial-grade one.
pH sensor: Measures acidity. pH drift is constant in hydro systems, and automated pH adjustment prevents the lockout problems that happen when you forget to check for a few days. Inline pH probes: $30-70 hobby, $100-250 industrial.
Peristaltic pumps: These are the dosing mechanism. A peristaltic pump uses a rotating roller to squeeze flexible tubing, pushing liquid in precise, metered amounts. Each pump dispenses one liquid: nutrient A, nutrient B, pH down, pH up. A basic 4-pump setup covers all four inputs.
Peristaltic pumps are preferred over solenoid valves for nutrient dosing because they're self-priming, don't contaminate the liquid (the fluid only touches the tubing), and can deliver small increments, from under a millilitre to a few millilitres per cycle. Cost: $15-40 per pump for hobby units.
Controller: The brain. Reads the sensor inputs, compares to target values, and activates the appropriate pump. Options range from a dedicated hydroponics controller ($100-300) to a DIY setup with an Arduino or ESP32 board and relay module ($20-50 in parts, plus programming time).
Commercial all-in-one dosing controllers (like Bluelab, Autogrow, or Atlas Scientific kits) integrate sensors, pumps, and controller into a single system. Cost: $300-800+ depending on features.
How it works in practice
You prepare concentrated stock solutions: typically a two-part A+B nutrient concentrate at 100-200x strength in separate bottles. A third bottle holds pH down (phosphoric or nitric acid diluted to working strength). A fourth holds pH up (potassium hydroxide solution), though most systems drift acidic and rarely need pH up.
The controller polls the sensors every few minutes. If EC reads below target, it activates the A pump for a few seconds, waits, then the B pump for a few seconds. The A and B concentrates must be dosed separately because calcium nitrate (in part A) reacts with sulfates and phosphates (in part B) if they meet in concentrated form, forming insoluble precipitates.
After dosing, the controller waits for the solution to circulate and stabilize before reading again. Good controllers wait a configurable 5-15 minutes between each addition and the next reading, which prevents overshoot from sensor lag.
For pH: if pH reads above the upper target (say 6.3), the controller doses pH down in small increments until it reads within range. pH adjustment should always use small doses with long delays between, because over-correction (dumping too much acid) crashes pH below the safe range and can damage roots.
Is it worth it
For a single small system (one reservoir, checked daily): Probably not. The hardware cost ($200-400 minimum for a reliable setup) doesn't justify the time saved mixing nutrients for one system. Mixing nutrients by hand takes 5-10 minutes every 2-3 days.
For multiple systems or frequent travel: Yes. If you run three reservoirs and travel for work, automation keeps the systems stable during your absence. Plants can deplete a reservoir's nutrients measurably in 2-3 days, and pH can drift a full point in a week. An automated doser prevents the "I came home and everything is dying" scenario.
For commercial production: Mandatory. Commercial hydroponic operations run continuous dosing systems because nutrient consistency directly affects yield uniformity and crop timing.
Common mistakes
Not calibrating sensors regularly. EC and pH probes drift over time. Calibrate pH probes monthly with buffer solutions (pH 4.0 and 7.0). Calibrate EC probes with a known reference solution. Uncalibrated sensors dose to the wrong targets.
Mixing A and B concentrates in the same container. Always separate. If you fill the A and B stock bottles from the same funnel without rinsing, the residue creates precipitates that clog the pump tubing.
Setting the dosing increment too large. A pump that adds 50 mL of concentrate at once can overshoot the target in a small reservoir. Set small dose volumes, on the order of a few millilitres, with adequate delay between additions. Better to undershoot and add more on the next cycle than to overshoot.
Use the nutrient mixing calculator to formulate your concentrated stock solutions at the right dilution ratio for your dosing system.
DIY vs commercial controllers
Commercial all-in-one systems (Bluelab Pro Controller, Autogrow IntelliDose, Atlas Scientific kits) integrate sensors, pumps, and control logic into a single package. They're calibrated, tested, and come with support. Cost: $300-800+. Best for growers who want reliable automation without building anything.
Arduino/ESP32 DIY builds are popular in the hobbyist community. An ESP32 microcontroller ($5-10), pH and EC sensor modules from Atlas Scientific ($80-150 for the pair), a 4-channel relay board ($10), and four peristaltic pumps ($60-160 total) gives you a functional automated setup for $150-300 in parts. The trade-off is programming time and debugging. You need to write or adapt code for sensor reading, dosing logic, and safety limits (preventing runaway dosing if a sensor fails).
Several open-source projects provide starting code: HydroponicAutomation on GitHub, the Atlas Scientific Raspberry Pi tutorials, and various ESP32 hydroponic controller projects on Hackaday. These give you a head start but still require customization for your specific sensor modules, pump calibration, and reservoir size.
Hybrid approach: Use a commercial pH controller (which is mature technology and critical for plant health) and manage EC manually. pH drift is the most common and most damaging parameter to leave unmanaged. A standalone pH controller with its own pump ($100-200) handles the single most important automation task. You can add EC dosing later as a second phase.
Safety features to build in
Any automated dosing system needs safety limits to prevent catastrophic over-dosing:
Maximum dose volume per cycle. Set a hard limit on how much concentrated nutrient or acid can be dispensed in a single dosing event. For a 50-litre reservoir, adding more than roughly five to ten millilitres of concentrated acid or nutrient in one shot is almost certainly too much.
Minimum time between doses. After each addition, the system should wait 10-15 minutes for the solution to circulate and the sensor to read the new value. Without this delay, the system doses repeatedly before the sensor detects the effect, resulting in massive overshoot.
Sensor failure detection. If the EC or pH reading suddenly jumps to an impossible value (pH 2.0, EC 15.0), the controller should stop adding solution and alert you rather than trying to correct the reading. Sensor failures that report false low values cause the system to dose aggressively, potentially killing the crop.
Low reservoir alert. If the stock solution bottle runs empty, the pump runs dry and nothing gets dosed. A float switch or weight sensor on the stock solution container alerts you before this happens.
Use the nutrient mixing calculator to formulate your concentrated stock solutions at the right dilution ratio for your dosing system.