ARMAC's electronics are built as five modules, each in its own enclosure. This page is the reference list. How the modules work together is described in The Electronic Control Sub-System.
Last checked against the code and the October 2026 site checks: 7 November 2026.
The five modules
| Module | Where | Contains | Job |
|---|---|---|---|
| 1 Communications | House, at the NBN connection | Fritzbox router, Teltonika RUT240 mobile router (failover), Raspberry Pi 4 (Home Assistant, Mosquitto MQTT broker, Tailscale and ZeroTier One VPNs), Tuya relay board (switch 1 power-cycles the Pi, switch 2 the Fritzbox), backup battery | Connects ARMAC to the internet and runs the dashboard |
| 2 Remote Control | House | Arduino AR1, Gravity RS-485 board | Links Home Assistant (MQTT over WiFi) to the shed (RS-485 and the backup link over the multicore cable) |
| 3 Relay | Pump shed | Relay strip, 5 V supply, pump isolation switch and test buzzer, PC817 optocoupler board for the oil and water pressure switches, connection point for the temperature sensors | Switches the valves and passes the pump signal to the pump controller |
| 4 Autonomous Control | Pump shed | Arduinos AR2 (sensors) and AR3 (control), Gravity RS-485 board, pump latch relay, LCD display, test button | Reads the sensors, makes the decisions in Autonomous mode, drives the relays |
| 5 Pump Control | Pump shed | Small Farm Systems SFS01-V2 controller, on the mobile network | Starts and stops the diesel pump; also accepts SMS commands |
The Arduinos are all Arduino UNO R4 WiFi boards. Pins are listed in Arduino pin allocations and multicore cores in Multicore cables.
Relays in Module 3
Each valve relay is driven by an AR3 output over the Module 3 to Module 4 multicore cable. The relays energise when the AR3 pin goes LOW.
| Relay | Driven by | Controls | Relay off (default) | Relay energised |
|---|---|---|---|---|
| R4 | AR3 D7 (P4) | Gel injection solenoid valve | Closed | Open: gel injected |
| R5 | AR3 D6 (P3) | Flow valve (motorised 3-way) | Reduced flow (through the constriction) | High flow (bypass) |
| R6 | AR3 D5 (P2) | Shed cooling valve (motorised 2-way) | Closed: no cooling | Open: cooling on |
| R7 | AR3 D4 (P1) | Recirculation valve (motorised 3-way) | Water to the sprinklers | Water recirculated to the tank |
| R8 | Pump latch relay (Module 4), multicore core 1 | Pump-state signal to SFS01 wire 1, through the isolation switch | - | - |
| R1 | AR3 D8, via a separate 3-core cable | Starter (AutoRelay pin 86), used only when ARMAC starts the pump itself (BYPASS mode) | Not cranking | Cranking |
| R2 | Pump latch relay output (with R8) | Fuel / run in BYPASS mode (to confirm) | ||
The default (unpowered) positions are chosen to fail safe: if a relay or its supply fails, the sprinklers still get water, at reduced flow, and the gel stays off.
Two items to confirm on site: whether the relay inputs still have pull-up resistors (the old pages give 6.8 kΩ and 10 kΩ; they may since have been removed), and R2's exact role.
The pump latch relay (Module 4)
A small two-channel relay module beside AR3, with its own battery-backed supply. AR3 pulses one of its two inputs for 300 ms (pins D2 and D3) and the module keeps the selected relay energised, so the pump state survives an AR3 reset or restart. The module is set to "interlock and shutdown" mode: a second pulse on the same input toggles it, so AR3 only pulses when the requested state differs from the present one. A read-back wire to AR3 D10 is planned so AR3 can check the latch state; until it is fitted the code setting LATCH_FB_FITTED is 0.
The latch output runs on blue multicore core 1 to relay R8 in Module 3. R8 drives SFS01 wire 1 through the manual isolation switch (with a buzzer for testing when isolated). The SFS01 runs the pump while wire 1 is open.
Pump starting: BOX and BYPASS modes
AR3 pin D9 reads a mode input:
- BOX (D9 open): the SFS01 box starts the pump in its usual way. AR3's own start sequence is idle and its crank output is held off. This is how Fairhaven runs at present. An open circuit (a broken wire) also gives BOX, so a fault fails safe.
- BYPASS (D9 linked to earth): AR3 starts the pump itself through relay R1, with up to 5 attempts and oil-pressure confirmation (figures in Key data).
<< Key data | | Arduino pin allocations >> |Table of Contents>
