Last checked: 7 November 2026.

The current Arduino code is public: github.com/Jozwolf/ARMAC-fire-defence (CC0, public domain; use at your own risk - see What isn't this?).

SketchBoardLinesJob
AR1Arduino UNO R4 WiFi, house (Module 2)3,462MQTT link to Home Assistant; RS-485 and backup link to AR3; manual sprinkler and shed-cooling cycles; heartbeat; LOCK
AR2Arduino UNO R4 WiFi, shed (Module 4)994Reads every sensor; broadcasts readings by UDP over its own WiFi; test scenarios
AR3Arduino UNO R4 WiFi, shed (Module 4)3,050Relays and pump latch; Autonomous mode and fallbacks; pump start sequence; RS-485 telemetry; LCD; test button

To build: copy config_example.h to config.h in each sketch folder and fill in your own WiFi, MQTT and access-point details (see Security measures and credential management); open the sketch in the Arduino IDE; board type Arduino UNO R4 WiFi. Each sketch begins with a dated change log.

Settings worth knowing

SettingWhereCommitted valueMeaning
FRAME_REJECTAR1 and AR301 = drop messages with a bad checksum (see Communication protocols)
FS_POLARITY_INVERTAR31Which latch-relay input means "pump on"
LATCH_FB_FITTEDAR301 once the latch read-back wire to D10 is fitted
SIMULATION_MODE and related flagsAR20Fixed simulated values for bench testing

How the code is written

The sketches were written with growing help from AI tools, and in recent stages largely by Claude Code under the author's direction, then tested on TestSys before loading at Fairhaven (see TestSys). The private development repository holds the full history and the Home Assistant configuration.

The structure of each sketch is summarised in the system pages rather than in separate code summaries: Communication protocols, The Heartbeat System and Mode Transitions, Autonomous Fire Defence Algorithms, Output Control and Safety Interlocks and Sensors.

<< Multicore cables | | Appendices >>      |Table of Contents>


Page last modified on November 08, 2026, at 01:32 AM