Wiring an Electric Solenoid and Dual Float Switches for Anti-TDS-Creep Batch Filling

To eliminate TDS creep, wire a 12V DC Normally Closed (NC) solenoid valve on your RO feed line to a 12V DC DPDT latching relay controlled by two vertical float switches—a Low float that triggers filling at 20%–30% container volume and a High float that shuts it off at 90%–95%. This self-latching (seal-in) circuit forces your reverse osmosis (RO) unit to run in long, infrequent batches instead of short-cycling every time you draw a few gallons, cutting startup TDS spikes and extending DI resin life by 3×–5×.


Why Dual Float Switches Stop TDS Creep

A single float switch triggers a high-TDS startup burst every time you remove water, whereas dual float switches lock the RO unit off until the storage barrel is nearly empty.

When an RO membrane sits idle, dissolved solids migrate across the membrane from the waste side to the clean permeate side. During the first 1–3 minutes of startup, the membrane produces 0.1–0.5 gal (0.4–1.9 L) of water with elevated TDS—typically 20–150+ ppm instead of its normal 2–10 ppm output.

Metric Single Float Valve / Switch Dual Float Batch Filling (30–55 gal Barrel)
Trigger Behavior Opens after 0.5–2 gal (1.9–7.6 L) drawn Waits until 70%–80% of barrel is used
Startup Cycles per 40 gal (151 L) 20–40 short cycles 1 continuous batch cycle
Total High-TDS Startup Volume 4–15 gal (15–57 L) per 40 gal 0.2–0.5 gal (0.8–1.9 L) per 40 gal
DI Resin Exhaustion Rate 3×–5× faster depletion Baseline rated capacity
Solenoid Duty Cycle Frequent brief pulses 1 continuous run (4–12 hours depending on GPD)

For example, in a 40 gal (151 L) batch, 0.3 gal (1.1 L) of 50 ppm startup water dilutes into the full batch to add less than 0.4 ppm before hitting DI resin. Repeating that same 0.3 gal spike 25 times during top-offs dumps 7.5 gal (28.4 L) of 50 ppm water straight into your DI stage.


Required Components and Electrical Specifications

Use a 12V DC low-voltage control circuit with a DPDT relay so inductive solenoid current never passes through the delicate reed contacts of your float switches.

Never wire a 120V AC solenoid directly to float switches near water, and never allow solenoid coil current (250–500 mA) to flow through a reed float switch. Using a 12V DC Double-Pole Double-Throw (DPDT) relay isolates the float switches to a 30–75 mA logic loop while the second relay pole handles the solenoid load.

Component Required Specification Purpose & Placement Notes
Power Supply 12V DC, 1A–2A (12W–24W), Class-2 regulated wall adapter Plugged into a GFCI-protected 120V AC outlet above water level
Latching Relay 12V DC coil, DPDT (8-pin or 2 Form C contacts), 5A–10A rated Pole 1 latches the circuit; Pole 2 powers the solenoid
Solenoid Valve 12V DC, Normally Closed (NC), 1/4 in (6.35 mm) push-to-connect, 0–100+ psi (0–6.9+ bar) Acetal, polypropylene, or 316 stainless body (never brass)
Float Switches (2×) Vertical polypropylene stem, magnetic reed (12V–24V DC, 0.5A max), reversible float Low switch mounted at 20%–30% depth; High switch at 90%–95%
Flyback Diodes (2×) 1000V / 1A silicon rectifier diode (standard 1N4007) Installed across solenoid and relay coils to stop inductive arcing
Wire & Enclosure 18–22 AWG stranded copper, heat-shrink butt splices, IP65 / NEMA 4X project box Keeps all relay and DC splices dry and splash-proof
Redundant Failsafe Mechanical float valve + ASOV, or 3rd emergency NC float switch Mounted 1–2 in (2.5–5 cm) above the High float switch

How to Configure Float Switch Orientation

The Low float switch must close when water drops, while the High float switch must stay closed until water lifts it open.

Most vertical magnetic reed float switches ship with a removable retaining clip at the bottom of the stem. Flipping the buoyant float ring upside down reverses the switch action between Normally Open (NO) and Normally Closed (NC):

  1. Low Float Switch (Start Trigger — Closes on Drop): Orient the float so that when the float hangs down (low water), the switch is closed (continuity). When water lifts the float up, the switch opens.
  2. High Float Switch (Stop Trigger — Opens on Rise): Orient the float identically so that when the float hangs down (tank not yet full), the switch is closed (continuity). When water reaches the top and lifts the float up, the switch opens and cuts power to the relay.

Verify both switches with a multimeter set to continuity before drilling your storage barrel.


Step-by-Step DPDT Latching Relay Wiring

Wire Pole 1 of the DPDT relay to seal in the 12V DC coil across the Low float, and wire Pole 2 to switch +12V DC directly to the solenoid.

Terminal-by-Terminal Wiring Table

Relay Terminal Connection Target Function
Coil + (A1) Output of Low Float Switch AND NO1 (Pole 1 Normally Open) Receives +12V DC to energize and latch the relay
Coil - (A2) Power supply -12V DC (GND) Completes the relay coil ground path
COM1 (Pole 1 Common) Output of High Float Switch (Node A) Supplies +12V DC to the latch loop while tank is below High
NO1 (Pole 1 Normally Open) Jumper to Coil + (A1) Seals in power after Low float rises and opens
COM2 (Pole 2 Common) Power supply +12V DC directly (or via 3rd emergency NC float) Dedicated high-current feed for the solenoid
NO2 (Pole 2 Normally Open) Solenoid Valve + wire Sends +12V DC to open the solenoid when latched
Solenoid Valve - wire Power supply -12V DC (GND) Completes the solenoid ground path

Step-by-Step Assembly

  1. Wire the High Float Feed (Stop Loop): Connect the +12V DC power supply lead to one wire of the High Float Switch. If using a 3rd emergency high-high float switch (oriented NC when down), wire it in series right before the High Float Switch. Connect the other wire of the High Float Switch to both COM1 and one wire of the Low Float Switch.
  2. Wire the Low Float Trigger (Start Loop): Connect the second wire of the Low Float Switch to Relay Coil + (A1).
  3. Create the Latch (Seal-In): Run a short jumper wire from NO1 to Relay Coil + (A1). Connect Relay Coil - (A2) to -12V DC (GND).
  4. Wire the Solenoid on Pole 2: Connect +12V DC (before the float switches) to COM2. Connect NO2 to one lead of the 12V DC solenoid valve, and connect the other solenoid lead to -12V DC (GND). DC solenoids are non-polarized unless equipped with an internal LED or diode; if your solenoid has red/black wires, match red to NO2 and black to GND.
  5. Install Flyback Diodes (1N4007): Solder or crimp one diode across the solenoid leads—silver/white cathode band facing +12V DC (NO2) and black anode side facing -12V DC (GND). Install a second diode across Relay Coil + and Coil - in the same reverse-biased orientation (stripe to +). Reversing a flyback diode creates a dead short when energized.

Circuit State Truth Table

Water Level & Direction High Float Low Float Relay State Solenoid State RO System Action
Full (At Top) Up (Open) Up (Open) De-energized Closed Idle; zero water flow
Draining (Mid-Barrel) Down (Closed) Up (Open) De-energized Closed Stays OFF; prevents TDS creep
Hits Low Level (20%–30%) Down (Closed) Down (Closed) Energizes Opens Batch fill begins
Refilling (Mid-Barrel) Down (Closed) Up (Open) Latched ON Stays Open Continues filling past Low float
Reaches High Level (90%–95%) Up (Open) Up (Open) De-energizes Closed Latch breaks; batch complete

Plumbing the Solenoid and Failsafes

Install the 12V DC solenoid on the RO feed line after the sediment and carbon pre-filters, and pair it with an independent mechanical backup.

Where to Place the Solenoid

  • Best Location (Between Carbon Block and RO Membrane): Placing the solenoid after the sediment and carbon pre-filters prevents household pipe grit, rust, and scale from lodging under the solenoid diaphragm and holding it open. It also depressurizes the RO membrane housing and permeate check valve whenever the batch finishes, completely stopping waste-water drain flow without relying on a mechanical Automatic Shutoff Valve (ASOV).
  • Alternative Location (Before the Sediment Filter): If you mount the solenoid on the cold-water supply line before the RO unit, add a 1/4 in (6.35 mm) inline 50–100 micron mesh strainer directly upstream of the solenoid inlet.
  • Booster Pump Integration: If your RO system uses a booster pump (needed when household pressure is below 40 psi / 2.8 bar), wire the booster pump's 24V DC power supply or relay trigger to the same NO2 output so the pump and solenoid always open and close together.

Three-Layer Flood Prevention

Water in a 30–55 gal (114–208 L) storage barrel weighs 8.34 lbs/gal (1 kg/L)—roughly 250–460 lbs (113–209 kg) of water alone—so never rely on a single point of failure:

  1. Primary Shutoff: High float switch breaks the 12V DC latching circuit.
  2. Secondary Shutoff: Install a mechanical 1/4 in (6.35 mm) float valve 1–2 in (2.5–5 cm) above the High float switch (if your RO unit has a working ASOV), or wire a 3rd emergency NC float switch in series with the main +12V DC feed.
  3. Physical Overflow: Drill a 1/2 in or 3/4 in (13–19 mm) bulkhead near the top rim of the barrel, 1–2 in (2.5–5 cm) above the secondary shutoff, and route vinyl tubing to a floor drain or utility sink.

Mounting Dimensions and Calibration

Separate the Low and High float switches by at least 12–24 in (30–60 cm) vertically, and shield both from surface turbulence.

  • Low Float Placement: Mount 4–6 in (10–15 cm) above the bottom of the barrel (or 1–2 in / 2.5–5 cm above your transfer pump intake) so a mixing or transfer pump never runs dry.
  • High Float Placement: Mount 3–4 in (7.5–10 cm) below the barrel rim to leave room for the secondary failsafe float and overflow bulkhead.
  • Stilling Wells for Sloshing: If you run a circulation pump or air stone inside the storage barrel, surface ripples can bounce a float switch and cause rapid relay chattering. Slip a 2 in (5 cm) diameter slotted PVC pipe cap or 4 in (10 cm) length of PVC pipe around each float switch as a baffle.
  • Drip Loops: Route all float switch wires up and over the rim with a 4 in (10 cm) downward drip loop before entering the IP65 relay box, and mount the relay box higher than the maximum water level of the barrel.

Troubleshooting Common Pitfalls

Most batch-filling failures trace back to inverted float orientation, missing flyback diodes, or debris inside the solenoid valve.

  • Batch starts immediately after drawing 1 gal (3.8 L): The Low float is inverted (closed when floating up instead of down), or COM1 and NO1 are bridged to +12V DC permanently bypassing the Low float. Re-check continuity on both floats with a multimeter.
  • System stops filling as soon as water rises past the Low float: The latch jumper from NO1 to Coil + is missing or loose, or the High float is inverted (open when hanging down).
  • Relay or solenoid chatters rapidly: Water turbulence is bouncing the float, or the 12V DC power supply is undersized (<0.5A), causing voltage sag when the solenoid engages. Add a PVC stilling well and upgrade to a 1A–2A supply.
  • Solenoid stays open or drips continuously when de-energized: Debris is trapped on the valve seat, the valve was installed backwards (check the flow arrow on the valve body), or the reed switch welded shut because the 1N4007 flyback diode was omitted.
  • TDS still spikes at the start of a batch: Check that your RO flush valve is closed and consider adding a 60–120 second manual or timer-controlled membrane flush to drain before the batch fills the DI stage.