Power-Loss Recovery Delays and Persistent Dose Counters
Enforce a post-reboot circulation and stabilization delay before enabling any dosing output, and retain cumulative 24-hour dose totals in non-volatile memory so brief power outages do not reset daily limits or inject concentrates into stratified water. This control behavior is part of dosing automation and protects both solution chemistry and crop roots during utility brownouts, tripped GFCI outlets, or generator transfer switches.
Two boundary conditions govern how these safeguards are configured:
- Hydraulic turnover time vs. fixed boot timers: A static 1-to-5-minute startup delay is insufficient if the circulation pump needs 20 minutes to homogenize the operating reservoir volume or refill feed lines after drain-back.
- Outage duration tracking: Persisting a cumulative 24-hour dose counter only prevents over-dosing if the controller also knows how much time elapsed during the outage (via a battery-backed real-time clock or network time sync); without elapsed-time tracking, a controller cannot distinguish a 10-second brownout from an 18-hour outage.
Startup Inhibit and Persistence Specifications
| Control Mechanism | Engineering Target | Boundary Condition / What to Verify |
|---|---|---|
| Post-reboot startup inhibit | Hold all dosing outputs OFF for at least 2 to 3 full operating-reservoir turnovers after power returns | Verify actual circulation flow (gal/h or L/min) at operating head against the pump Q-H curve; do not use zero-head ratings |
| Hydraulic equilibrium wait | Delay sensor evaluation until feed pumps refill distribution lines and substrates (e.g., stone wool or Dutch buckets) | Confirm reservoir level has dropped from pump-off drain-back height back to normal operating volume before reading probes |
| Sensor & ATC stabilization | Wait for steady flow across EC25 (mS/cm) and pH probes and settled automatic temperature compensation (ATC) |
Confirm solution temperature is within 65–72°F (18–22°C); never manually re-compensate readings from an ATC-enabled meter |
| Non-volatile 24-h dose counter | Store cumulative daily totals (mL or fl oz) for Part A, Part B, and pH adjuster in EEPROM, FRAM, or wear-leveled flash |
Verify on the controller datasheet whether totals commit per completed dose, on brownout detect, or on a periodic timer |
| Outage clock persistence | Maintain rolling 24-hour window timestamps using a battery-backed real-time clock (RTC) or network time | If the controller lacks an RTC, configure a conservative fixed lockout rather than clearing the daily counter on boot |
| Part A / Part B recovery stagger | Enforce sequential dosing lockout between Part A and Part B after the startup inhibit clears | Never allow Part A and Part B pumps to prime or dose simultaneously after a reboot; separate injections by at least one mixing interval |
| Hardware boot fail-safe | Keep dosing relays normally open (NO) with hardware pull-down resistors during microcontroller reset | Confirm dosing pumps do not twitch or pulse during initial power application or brownout voltage sag |
Sizing the Post-Reboot Delay
Base the startup inhibit on the time required to turn over the operating reservoir volume—excluding the pump-off drain-back allowance—at least two to three times:
Turnover Time (min) = Operating Volume (L) / Circulation Flow (L/min)
Turnover Time (min) = [Operating Volume (US gal) / Circulation Flow (US gal/h)] * 60
Startup Inhibit (min) >= 2 * Turnover Time (min) (use 3 * Turnover Time for large or baffled tanks)
If feed pumps also drain back into the reservoir when power fails, add the line-fill and drain-down stabilization time before starting the turnover count so probes are not evaluating stagnant drain-back water.
Illustrative Calculation
Assume an indoor recirculating system has:
- Operating reservoir volume (
V_op):40 US gal (151.4 L)(measured at normal pump-on running level, separate from drain-back capacity) - Circulation pump flow (
Q_circ):120 US gal/h (454.2 L/h, or 7.57 L/min)verified at actual system head - Target mixing factor:
2full turnovers
Turnover Time = 151.4 L / 7.57 L/min = 20.0 min
Startup Inhibit >= 2 * 20.0 min = 40.0 min
In this setup, a controller with a 5-minute default startup delay only circulates 10 US gal (37.9 L)—one-quarter of a single turnover—before enabling corrective dosing. Raising the inhibit to 40 min ensures the EC25 (mS/cm) and pH probes sample mixed solution rather than a localized pocket.
Configuration and Commissioning Steps
- Measure operating volume and circulation flow: Mark the pump-on operating level in the reservoir (
US galorL) and measure actual circulation flow rate at operating head (or read it from the pump Q-H curve). - Calculate and set the startup inhibit: Compute
2 * Turnover Timeplus any time needed for irrigation lines and expanded clay pebbles or stone wool channels to reach steady return flow, and program this duration as the post-boot dosing inhibit. - Enable persistent 24-hour dose caps: Set maximum daily volume limits (
mL) for Part A, Part B, and pH adjuster based on reservoir volume and expected plant uptake, and confirm non-volatile logging is enabled in controller settings. - Stagger recovery channels: Configure a mandatory inter-channel delay so Part A, Part B, and pH adjusters cannot fire simultaneously when the startup inhibit expires.
- Verify power-cycle retention: Record the current 24-hour cumulative dose total, trigger one small test dose, disconnect mains power for 2 minutes, restore power, and confirm the controller enters the startup inhibit while still displaying the pre-outage cumulative dose total.
Verification Checks
- Boot output check: Watch dosing pump heads or indicator LEDs during a cold power-on and a brief 2-second unplug/replug; zero rotation or relay chatter should occur.
- Timer enforcement check: Confirm the controller blocks automatic dosing for the full programmed inhibit duration after power returns, even if EC25 (
mS/cm) or pH is outside the target band (e.g., pH outside 5.5–6.5). - Counter persistence check: Confirm the 24-hour cumulative dose counter retains its exact pre-outage value after a power cycle and still blocks dosing once the daily cap is reached.
- Clock continuity check: After a 5-minute power loss, confirm the controller's timestamp or rolling 24-hour window reflects the actual elapsed time rather than resetting to
00:00.
Real Failure Modes
- Volatile-only counters causing runaway over-dosing: Controllers that store daily dose totals in RAM reset the 24-hour cap to zero on every power blip. Repeated flickering outages allow the controller to inject a full day's allowance of Part A, Part B, or pH adjuster multiple times into the same reservoir, driving EC25 (
mS/cm) to root-burning levels. - Dosing into stratified or draining-down water: Enabling dosing pumps seconds after power returns injects concentrates into unmixed water or while drain-back volume is still returning to the grow beds. The probe reads a transient pocket, triggering oversized corrections that overshoot once the reservoir finishes mixing.
- Part A and Part B co-precipitation on recovery: If both nutrient channels clear their startup inhibit at the same moment without an inter-channel lockout, concentrated Part A (calcium) and Part B (phosphate and sulfate) meet in the injection manifold or unmixed zone and precipitate into insoluble salts.
- Flash memory corruption from unbuffered writes: Writing cumulative counters to raw microcontroller flash on every pulse without wear leveling or brownout-safe buffering can wear out or corrupt the storage sector over time, silently resetting daily limits to zero or locking out dosing permanently.
- Missing RTC locking out or prematurely clearing limits: A controller that saves cumulative totals without a real-time clock cannot measure how long power was out; after a multi-hour outage, it either holds an expired 24-hour lockout unnecessarily or clears the counter blindly on every reboot.