I want to build a pool controller for my with 2 pentair pumps (one for spa and one for pool) and 3 Hayward valve accucators. The heater is a pentair 250i. Be detailed and walk me through step by step
Assistant
Below is a soup-to-nuts guide for building your own pool/spa automation panel that can:
• Independently run two Pentair pumps (Pool & Spa)
• Drive three Hayward GVA-24 valve actuators
• Enable / disable a Pentair MasterTemp 250 i heater
• Expose everything through Wi-Fi (or Ethernet) so you can run it from your phone, Home-Assistant, Alexa, etc.
The outline:
What you’re actually trying to make
Bill-of-materials
Electrical & plumbing concept
Low-voltage control design
High-voltage power design
Software stack & configuration
Commissioning / troubleshooting
Extras & “future-proof” hooks
⚠️ Safety first
We’ll be working with 120 V/240 V, water, and code requirements. If you aren’t 100 % confident with local electrical code, pull in a licensed electrician for the mains feeds, GFCI protection, and bonding. Low-voltage wiring you can usually DIY, but do not play cowboy with 240 V pool equipment—the fines (and the risks) are larger than the parts budget.
────────────────────────────────────────
DEFINING THE JOB
────────────────────────────────────────
Operating modes you’ll want:
Mode
Pool Pump
Spa Pump
Valves
Heater
Pool
On (sched./speed X)
Off
Suction→Pool skimmer / Return→Pool
Heat if Pool-Heat setpoint
Spa
Off
On (speed Y)
Suction→Spa drain / Return→Spa jets
Heat if Spa-Heat setpoint
Spill-over
On (low RPM)
Off
Suction→Pool / Return→Spa
Usually heater off
Freeze-protect
Whichever pump you prefer at low RPM
—
Keep current valve pos
Heater off
Service
All Off
—
Manual
Heater locked out
Map those to a state machine in software—makes the rest straightforward.
For each pump if you want silent switching – else use contactor
$20 ea
Contactor 2-pole 40 A
2
Alternative to SSR, cheaper, audible click
$15 ea
24 VAC transformer
1
40 VA door-bell style
$18
DPDT 24 VAC relays
3
To reverse Hayward actuators
$8 ea
DIN rail breakers
2
2-pole 20–40 A GFCI for pumps/heater feed
$40 ea
NEMA 4X poly enclosure
1
20″ × 16″ × 8″
$90
Wire/terminals/glands
—
THHN #12 & #8, ferrules, etc.
$50
Temp sensors
2
DS18B20 (1× water in pipe, 1× air)
$10
Misc. (fuses, fans, labels)
—
—
~$50
Assumptions: Both pumps are IntelliFlo VS-type and have RS-485 (“Pentair Com-Bus”) ports. If yours are single-speed, delete the RS-485 interface and just switch them as 240 V loads through contactors.
Pi 4 3.3 V 1-Wire ─► DS18B20 (water)
Pi 4 UART-TX/RX ─► RS-485 HAT ─► RS-485 Bus → Pump #1, Pump #2
24 VAC xfmr feeds the three DPDT relays and the actuators themselves.
────────────────────────────────────────
4. LOW-VOLTAGE CONTROL DESIGN
────────────────────────────────────────
4.1 RS-485 cabling
• 2-conductor shielded, 18–22 AWG.
• Daisy-chain pump #1 ➜ pump #2 ➜ terminator 120 Ω at last pump.
• Keep shield tied to earth on ONE side only (controller side).
• Pumps default to address 1; change second pump to address 2 from its keypad (Hold STOP + SPEED 1 for 10s ➜ “Adr” menu).
4.2 Hayward GVA-24 actuators
They are just 24 VAC gearmotors with limit switches. Reversing the polarity chooses direction:
• DPDT relay resting = wires A/B; energized = swap.
GPIO ➜ Relay coil (5 V) ➜ 24 VAC in/out.
Wire color ref:
Blue & White = 24 VAC input (direction-reversible)
Orange = Common (ignore – used only for 3-way internal switch, you leave disconnected).
4.3 Temperature sensors
Put the water sensor in a short ½″ stainless probe well after the filter, before the heater. Air sensor under equipment-pad cover, shaded.
4.4 GPIO mapping (example)
Relay #
Function
GPIO (BCM)
1
Valve A → “Suction: Pool/Spa”
17
2
Valve B → “Return: Pool/Spa”
27
3
Valve C → “Bypass / Waterfall”
22
4
Heater Enable (Fireman)
5
5
Spare / Aux light
6
6
Not used
—
7
Not used
—
8
Not used
—
────────────────────────────────────────
5. HIGH-VOLTAGE POWER DESIGN
────────────────────────────────────────
5.1 Feed
• 60 A, 240 V, 4-wire (2 hots, neutral, ground) from house sub-panel to pool pad.
• Separate 20-40 A 2-pole GFCI breakers for each pump AND heater (code). If wiring cost is prohibitive, a single 60 A GFCI can serve the sub-panel, then use non-GFCI branch breakers inside.
5.2 Pump switching
Option A – SSR (solid-state relay)
Pros: silent, no physical wear, handles VS inrush. Cons: $$, needs heat-sink.
Pick Crydom DRH240 D40 or similar (40 A). Mount on DIN rail & aluminum back-plate.
Option B – Contactor
Cheaper; noise isn’t an issue outdoors. 2-pole 40 A definite-purpose contactor. Coil = 24 VAC or 120 V; drive coil from a relay output.
5.3 Heater “Fireman” interface
Pentair 250 i has two screw terminals labelled REMOTE ON/OFF. Short = ON. Use an SPST relay so software can open (disable) or close (enable). Put a 5-minute post-run in software so the pump continues after heater goes off (standard “fireman” delay).
5.4 Bonding & grounding
Bond all pump housings, heater, and any metal parts with #8 solid copper to the pool bond grid. Low-voltage board ground ties to enclosure ground only at one point.
Bench test Pi, relays, and RS-485 with pumps disconnected (dry run: relay LEDs, RS-485 echo).
Wire in actuators; verify open/close directions—swap BLUE/WHITE if inverted.
Single-pump live test: power only Pool pump through contactor; watch for RS-485 control (speed changes).
Add Spa pump; check unique address.
Heater: set heater front-panel to “REMOTE” mode; jumper remote screws—heater should fire. Replace jumper with relay contact.
Valve logic: Toggle Pool/Spa on UI; confirm suction & return both switch—the telltale is bubbles stopped/started at spa jets.
Freeze protect: set threshold high (e.g., 80 °F) to force state, verify pump kicks on automatically.
Restore normal temps, run 24 h shakedown.
────────────────────────────────────────
8. NICE-TO-HAVE EXTRAS
────────────────────────────────────────
• Flow sensor (e.g., Blue-White F-300) on filter outlet for VFD auto-RPM tuning.
• pH/ORP module (Atlas Scientific) → chemical automation.
• Sun-tracking solar heater relay.
• Remote OTA updates (SSH + Tailscale).
• OLED status screen on enclosure door.
────────────────────────────────────────
That’s it! Take it step-by-step—mount hardware neatly, label every wire, and keep low-voltage isolated from mains. When in doubt, stop and get a pro pair of eyes.
Once up and running you’ll have a DIY automation rig whose feature set competes with a commercial Pentair IntelliCenter panel (but cost you roughly ¼ the price). Happy building, and ping back if you need pinouts, code snippets, or plumbing diagrams! 💦🤖