Boat Automation and Monitoring
Part of the Refit - 2025/ 2026 series. Draft — Lee to review. Describes the system as it runs today (v1.0) and where it's headed (CAMS v2.0). Keep the register-level detail off this page; that lives in the engineering wiki on deepthought.
Most sailboats carry a chartplotter, an autopilot, a depth sounder and a bilge alarm, and none of them talk to each other. We wanted the opposite: a boat where the sensors, the power system, the alarms and the logging are one integrated environment, and where the boat can make a few decisions on its own — turn the water heater on when there's spare solar, sound an alarm before a bilge pump has been running too long, keep a per-cell history of every battery.
Description
The hardware
- A Windows ship's PC and a Raspberry Pi 5 at the nav station, both fed from the boat's data networks
- The NMEA 2000 backbone — the modern instrument bus (engine, GPS, autopilot, wind, depth, AIS targets, Victron power data)
- The older NMEA 0183 bus that the AIS transceiver speaks, bridged into the rest in software rather than with the two hardware boxes the previous boat needed
- The Victron Cerbo GX, which gateways the whole power system
- A Waveshare 8-channel Modbus relay module for physical alarm and control outputs
- Eight RuuviTag wireless sensors — salon, berth, engine room, helm, both freezers, the fridge, and the Engel
- The batteries' second data bus, tapped for per-cell logging (see Electrical)


The master alarm panel
A 21-position panel at the helm, fed three ways: directly from float switches and sensors, from the NMEA 2000 network via the Cerbo and the Yacht Devices peripherals, and from a bank of more than twenty discrete relays and the Waveshare module.
| Position | Function | Source |
|---|---|---|
| AL-1 | Engine bilge pump | Relay (YD RTI) |
| AL-2 | High water — bow | Float switch |
| AL-3 | Salon bilge pump | Relay (YD RTI) |
| AL-4 | High water — salon | Float switch |
| AL-5 | Fresh water pump | Relay (YD RTI) |
| AL-6 | Main engine raw-water flow | Flow detector |
| AL-7 | Generator raw-water flow | Flow detector |
| AL-8 | Dinghy theft | Cockpit/helm arm-disarm loop |
| AL-9 | Bow bilge pump | Relay (YD RTI) |
| AL-10 | Autopilot CCU error | Relay |
| AL-11 | AIS | Relay (Signal K) |
| AL-12 | Anchor drag | Nav station |
| AL-13 | (spare) | |
| AL-14 | MultiPlus alarm relay | Relay |
| AL-15 | Battery Protect alarm | Relay |
| AL-16 | Cerbo GX master alarm | Relay |
| AL-17 | Refrigeration over-temp | Relay (Cerbo/Ruuvi) |
| AL-18 | Water in fuel | Racor sensor |
| AL-19 | Engine room fire (heat) | Heat sensor |
| AL-20 | Engine room smoke | Relay |
| AL-21 | Balmar/Wakespeed alarm | Relay |
Plus dedicated feeds for main engine and generator ignition power, ground, and the always-on 24 V supply. About a third of the 21 positions were still pending final function-test as of the September break (mostly the flow-detector and alarm-relay positions) — see the box at the bottom.
Each primary bilge pump is watched for cycle rate and run time — if it cycles more than six times in a minute, or runs for more than sixty seconds, it alarms. The panel has a loud buzzer — confirmed the first time it was powered up (3 Dec 2025 below, two circuits wired backwards).


The Alarm Circuits
Over twenty relays that do more than switch loads on and off — a relay closing a ground given a positive input, or turning the 110 VAC water heater on from a 24 VDC signal.
This map is v1.0 as it stands today. CAMS v2.0 (below) doesn't just add to this relay bank — it substantially repurposes it, so treat the table below as a snapshot, not a stable reference, once that build starts.
| ID | Purpose | Trigger |
|---|---|---|
| R1 | AIS alarm | Signal K (AIS status) |
| R2 | Wakespeed/alternator alarm | Signal K (Wakespeed via Cerbo) |
| R3 | (spare) | |
| R4 | Water heater on | Signal K — batteries full + solar available |
| R5 | Generator ignition-power trigger | Signal K (generator RPM) |
| R6 | Generator shutdown — raw water | not yet wired |
| R7 | "OK to discharge" 1 — starter-battery DC-DC chargers | Signal K (battery voltage) |
| R8 | "OK to discharge" 2 — Battery Protect | Signal K (battery voltage) |
| R9 | Generator ignition power (patch-panel side of R5) | R5 |
| R10 | Main engine ignition power | Engine ignition feed |
| R11 | Engine-room smoke detector | Smoke detector |
| R12 | Fire-extinguisher discharge indicator | Fire-ext relay |
| R13 | Water heater 110 VAC switching | R6 + panel override switch |
| R19 | MultiPlus master alarm | MultiPlus error |
| R20 | Cerbo GX master alarm | Cerbo GX |
| R21 | Temperature alarm (refrigeration) | Cerbo GX / RuuviTag |
| R22 | Battery Protect alarm | Battery Protect |
| R23 | Dinghy-theft disarm | Helm arm/disarm switch |
| R24 | Autopilot alarm | Autopilot CCU |
| R25–R28 | Bilge/fresh-water pump alarms (E/R, salon, fresh water, bow) | Yacht Devices RTI |
R14–R18 (the three MPPTs and two MultiPlus positions) are reserved but not yet used. As of the September break several of these — R6, R7, R8, and the alarm-relay group R19/R22/R24 — were still open: either not wired yet or wired but not function-tested. The automated actions worth calling out: the water heater only fires when the batteries are full and there's still solar coming in (with a manual override for when a motor is running anyway), and the generator gets its ignition-power trigger straight from its own RPM signal.
What's logged
Position, course and speed; wind and depth; engine and generator parameters; tank levels; battery bank and per-cell data; solar production; the RuuviTag temperatures; every alarm event; and a virtual logbook of failures, maintenance and observations. The data is stored on the Pi and surfaced through a set of dashboards.

Collaboration note: the automation stack on the Raspberry Pi (which we call deepthought) was built with Colin Bitterfield, who maintains the engineering side of it. Its detailed documentation lives on a separate wiki on the boat's own network.
Diagrams attached above (from Electrical Layout - projected.pptx): v1.0 master-alarm topology, the RuuviTag/refrigeration map, the Raspberry Pi RS485 architecture. Still to attach: CAMS v2.0 architecture, from Alarm v2.0.docx (not yet exported — it's a document, not a slide deck).
Plan
CAMS v2.0 — where this is going
The system above is v1.0 — it alarms, it logs, and it does a handful of automated actions. The next build, CAMS v2.0, isn't a simple add-on: it repurposes the existing relay bank rather than leaving it in place and building alongside it, on top of adding direct hardware sensing and safety automation:
- two Waveshare digital-input modules so the safety loops (bilge floats, raw-water flow switches, engine-room smoke and heat, the Fire-Ext discharge, the dinghy-theft loop) come straight into the automation engine rather than only through the alarm panel
- a custom automation engine that can act on multiple variables at once — for example, arm the raw-water-flow watchdog only when the engine is actually running, then shut the engine down on a confirmed loss of cooling flow
- automated engine-room containment on a fire signal — kill both motors and the blowers to starve the fire of air
- a software watchdog ("dead-man") relay that sounds a hardwired backup buzzer if the automation software ever stops responding
- tighter integration with the boat's cameras and the maintenance-tracking system
This is Lee's design and it's a work in progress.
Outcome
Status is current to the September 2026 break. The dated detail — what broke, what got rebuilt, what we tested — is in the build log below.
Still open (September 2026)
- Generator raw-water shutdown (R6) and the two "OK to discharge" permissives (R7/R8) not yet wired
- Several alarm relays wired but not function-tested: MultiPlus alarm (R19), Battery Protect alarm (R22), autopilot alarm (R24), plus the two engine raw-water-flow panel positions (AL-6/AL-7) and a handful of others on the panel table above
- CAMS v2.0 hardware (digital-input modules) and engine
- Autopilot + rudder-position-indicator calibration (needs sea time)
- Confirm with Colin: which process drives the relay module, and how the cameras are recorded (see Systems_Cross-Check)
Lessons learned
None written up yet. (Lee to add.)
Build log — Lee's Facebook posts, verbatim
The paragraphs below are copied directly from Lee's own Facebook posts during the build (typos included) — not a paraphrase. Dates are the post date, not always the exact work date.
24 May 2025: We also finally decoded the Windlass circuit and have a plan to reconstitute it.
29 May 2025: The other interesting bit is the connections are now made to support the alarms for the 2 bilge and fresh water pumps. This is the colorful boxes in the upper left corner of the picture. The electrical patch bay is mostly done other than the bus connections for the AC and DC systems. The Master Alarm panel connections are starting to be made. The remaining connections are related to the victron components still to be installed. The other interesting bit is the connections are now made to support the alarms for the 2 bilge and fresh water pumps. This is the colorful boxes in the upper left corner of the picture. - `your_facebook_activity/posts/media/Mobileuploads_10150498356882593/10162473281487593.jpg` — The electrical patch bay is mostly done other than the bus connections for the AC and DC systems. The Master Alarm panel connections are starting to be made. The remaining connections are related to the victron components still to be installed.
-
The electronics bay has most of its wire now connected. I need to terminate some cat5 still. The mess of...
-
The electrical patch bay is mostly done other than the bus connections for the AC and DC systems. The Master...
6 Sep 2025: Sticking w the theme of reassembly, we got 2 of the 4 mounting panels cut out. The first is the DC, AC and Master Alarm mounting panel. We need to get these installed and wired in before turning power on.
-
Top to bottom - newly rebuilt DC panel (still needs a couple of breakers), AC panel (I haven't start to...
8 Sep 2025: Finally, I ordered a new bilge control panela and the accompanying switches and high water sensors.
25 Sep 2025: Today we installed our new Smart Shunt. This one incorporates functions from 2 pieces we used to use into 1. This one takes power to operate and once the batteries see a load demand they turned On. This is the monitoring interface in the dedicated battery app. Was surprised the batteries were only at 50%, but once the inverter/ charger is powered up, it will charge them up. I hung the mounting door for the AC, DC and alarm panel in preparation for getting those connected also.
26 Sep 2025: Today we reached the point of having everything to put the bilge pump system "together" electrically. 2 of the pumps are still awaiting fiberglass work to wrap up, but the wiring is now in place for them. The 2 pumps under the Salon sole are now awaiting final power to be turned on back at the panel.
-
Salon bilge area. Large white cylinder is the crash pump (4000 gph). It's float switch and the high water...
-
This is how we distribute the common power to all 4 pumps and the colorful electronics piece allows us to...
-
The back of the pump control panel
27 Sep 2025: Update - good day - I'D 7 of the remaining unknown wires in the patch panel bay. That leaves 4. I am comfortable w proceeding. They are not connected so they don't pose a risk for now. As we connect and lights and stuff their purpose should become apparent.
-
Current state of the nav station patch panel. The pile to the right supports the electronics panel on that...
4 Oct 2025: We will also start timing in some of the other things in there like smoke/ heat sensors and the 3 oil/fuel pumps.
5 Oct 2025: We need to check wiring diagrams for the heat & smoke detectors before we wire them in also.
7 Oct 2025: I tied in the engine room smoke detector and would have wrapped up the heat detector, but I was waiting on the wiring diagram which I receieved after we left for the day.
11 Oct 2025: We also focused on the primary data canbus for the boat. We had already run most of the backbone, but hadn't sorted out how this was configured in the engine room where there are 6 different devices. I also started prepping the breaker and control panels for hookup - the alarm panel and the AC panel are mounted and then we mounted the 3 wiring harnesses to link the 3 panels to the patch panel bay. The DC panel is awaiting a final breaker before we mount it as it is MUCH easier to swap Breakers sitting on a table verses mounted in the door panel. The picture below looks like chaos but once all of those wires get their connectors and then tied to their respective breakers it should clean up quite a bit.
21 Oct 2025: We also built the custom data cable so we can monitor the batteries through the boat's monitoring system. Although it works, the software/ firmware side is still evolving. We will be the test install going forward as that continues.
-
This is the display for our boat monitoring. We are charging the batteries so the Grid is providing lots of...
26 Oct 2025: Other than the Bilge panel, which appears to have issues, we were able to get a light switch installed, shift to a surface mount cable for another light switch, add a light in the patch panel area and put a small resettable fuse inline with the part of the boat's electrical system which is always powered.
4 Nov 2025: While they were doing that, I took on the misbehaving bilge pump system. It seems I made a couple of wiring mistakes. I was able to verify the panel was working properly and then retrace the various wires and tracked down 6 mistakes in the system (38 different connections for 4 pumps, 4 float switches and 2 high water alarm switches and finally the panel lights 2 more). We spun up 3 of the 4 pumps (the last one isn't installed yet). The pump panel lights are working so it was a good day.
8 Nov 2025: Warm day today. That will change come Monday. We got 3 pumps mounted on new mounts today and got the AC High Pressure pump wired up for the water maker. There is an active discussion on how best to hook up the 3 pumps as they all have built in pressure switches and we might use external relays on these pumps. We'll share that decision and why later.
3 Dec 2025: All and all it was a good day. The yard should be working on the engine/ fuel system today and we will be hooking the alarm panel harness into the patch bay. We did more wiring work and powered the alarm panel up for the first time and discovered that 2 of the circuits are reverse of the remaining, so when it powered up they alarmed. The good news is that the alarm works and we got to test the buzzer and mute. Hint the buzzer is loud, and that is good.
-
Not, lit up, but the wiring harnesses are connected on the panel side.
5 Dec 2025: We made more progress in the electrical front with the alarm panel harness now being complete. And that then led to reordering the boat side of the alarm patch terminals, which led to the realization that we have a bit more work to do on that front before we can call that one wired up. We did some more work to bring what we are affectionately calling our "Always On" bus online. We have all but 2 devices online and working. This bus powers the monitoring systems (alarm panel, electrical monitoring, fire, smoke) and the panel lights for the electrical panels. We have one more section to setup, but the pic below shows the panels in a more functional state. Our next big task is to create all of the custom labels. The company that manufactures the panels offers the service, but their distributors won't take orders because it's too much work. We are looking at alternatives (of course these are non-standard sizes)
-
6 Dec 2025
11 Mar 2026: The circles represent usb, 12v, volt meter, and a reset able buzzer tied to the alarm panel. The engine on/start/stop controls are in the upper right corner.
20 Mar 2026: Also spent some time with the battery manufacturer on the phone and online. We've been chasing a programming/ configuration issue within the electrical system that was resulting in a high voltage alarm. We think we have the right settings now as the solar controllers are backing off as they should be.
29 Mar 2026: We also discovered a couple of the salvaged electronics pieces supporting the alarm system where InOp so we replaced 1 with a spare and oreded a replacement for the 2nd. Not sure when they got fried, but no pump alarms without them.
1 Apr 2026: We got sucked down a Rabbit hole on the GenSet electronics when we saw NMEA2000 on a pilot label attached to the computer that controls the GenSet. We want the GenSet to be on the N2K network for monitoring (and no control). Anyway finding a dealer that has a clue beyond it's a Generator is proving to be challenging. The company wants you to work through thier dealer network.
3 Apr 2026: We have been working towards bringing some more of the alarm panel online - discovered some issues along the way that we are addressing.
14 Apr 2026: We also continued electronics wiring with today's focus being the extra features on the Inverter/ Charger. There are a handful of inputs and outputs on the inv/charger that we can use to control other items. In this case, there is an alarm out (now programmed and feeding that channel in the master alarm panel) and there is another "relay" also programmable that can be used to trigger an action based on power "levels". In our case turning the hot water heater on/off when the batteries are "full". This will allow us to turn on the water heater once the batteries are charged and we have excess solar power.
17 Apr 2026: I also spent the day on the boat's PC updating and configuring software so we can start programing the boat's electronics. Today's focus was the 2 devices that monitor the bilge and fresh water pumps and trigger alarms should they start cycling or run long. The programming was quite archaic and took several hours of troubleshooting to figure out what it was looking for, but at the end of the day that task is done. We just need to hookup the electronic switch to the appropriate Alarm panels inouts now.
20 Apr 2026: Took a big step forward over the weekend on the electronics front by hooking up and integrating the start of our advanced data processing for the boat. Data is now flowing from the traditional boat data can bus into our 2 automation "computers" - a Win PC and a Rasberry Pie. We will be using these processors to do some really cool things on the boat for logging and some advanced controls. We still have more development and integration ahead but having the data flow between the environments is a huge step towards our goal state.
22 Apr 2026: Now that this is powered up, we can start integrating the GenSet and Main Engine parameters (and control) data into the overall automation/ monitoring environment.
24 Apr 2026: The boat automation system tool another step forward with our AIS now sharing data both ways with the rest of the electronics. This is significant because the AIS rides a different (older) data bus and needed a conversion gateway to properly integrate with the rest of the boat. In it's previous installation, there were 2 other boxes that did this work. We have taken a different tack this time using a software system doing a lot of heavy lifting and providing a gateway between multiple data networks (Can buses etc). Lots more to get properly integrated along those lines, but we will have a much "smarter" or at least more capable electronics environment than most other sailboats as these systems don't naturally integrate cleanly together.
25 Apr 2026: We also continued working on the master alarm panel circuits focusing on the engine room stuff and the pump curcuits. There are several relays involved that we received this week so we could continue working.
27 Apr 2026: Today was focused on hacking the Lithium Batteries 2nd Data bus. Why you might rightly ask - well the primary one goes to the Victron Cerbo GX and it works great, but only gives us summary and high/ low type data. It doesn't give us direct insight into each cell in each battery. We want to monitor this over time to try to identify issues before they become critical. Also the battery Manufacturer/ Distributer is also interested in those detailed logs. We successfully ID'd the correct pinout (only 3 on an 8 pin connector), ID'd the correct data rate (9600 baud, RS485), and then ID'd the correct data formatting and protocol. We have ID'd a couple of issues which we confirmed with the manufacturer and have a way to resolve them (all of the batteries are assigned the same bus ID). So tomorrow, we can reassign the bus ID's and then finish daisy chaining all of the data inputs together and then run that into the Raspberry Pie and then start logging data. We will also build a cool interface to be able to look at all of the cells in a tabular view to help us compare/ track data.
-
The beginnings of data capture and analysis for the batteries. 2 of the 6 batteries are wired into this data bus. The hardware for the remaining batteries arrives Mon. The software is ready, just needs to be wired in.
6 May 2026: The batteries are now reporting on the 2nd data bus. Hopefully, this will allow us to track down some of the odd readings. We did find the root cause of our hot cable. That is now corrected and we should be fine going forward.
21 May 2026: On a positive note we were able to get onto the GenSet's data bus and the protocol being used is straightforward for us to read and use. This will allow us to bring the GenSet into our integrated data environment for monitoring, tracking and some level of control (TBD). As we are not in the water, we can't start the motor to fully sort it out, but we have a very promising start.
14 Jun 2026: But everything is working as intended. Even the alarm circuit works... the programming is likely missing a zero on the run time warning... easy to fix.
18 Aug 2026: Added some security today. This one points to the stern. There is another in the cockpit. There is an issue with the residents of one of the boats on the dock and as I said something to them, I am now personna Non-grata with them. As they walk by the boat to and from theirs I decided a little extra deterance was warranted. It will also be good to have it at anchor.
-
Added some security today. This one points to the stern. There is another in the cockpit.
20 Aug 2026: I spent the day continuing to update our as built documentation. That of course lead to enumerating all of the various control relays which then lead to another push to finally get them all configured and hooked up correctly. Made good progress and all but 2 are now ready for use. Corrected a few mistakes/ that didn't work as planned issues and was able to test function on most of them. We have over 20 relays in the environment that we have some control over and they perform several different types of tasks beyond just turning things on/off as we needed them to do creative things like connect a ground given a positive input or turn on the 110VAC hot water heater based on a 24VDC signal. Etc. A bunch of the relays are controlled through automation based on the overall environment status. For instance, the hot water heater (A significant energy consumer) is now being controlled in such a manner that only comes on once the batteries are full and there is still solar power available. It can also be overridden by a switch if we want to use it anyway (like the GenSet or Main Engine is running). I am happy to share the as built documentation with other boat owners if anyone is interested. Eventually, I will have it all loaded on the website, but that is several weeks of work away still (once I get to it).
21 Aug 2026: Got a few more tasks done today. Got 2 more relay circuits done today and then I took on repairing the bonding system.
6 Sep 2026: Otherwise, I've been playing with another coding exercise. This time I am focused on keeping up with the maintenence required for the boat. I had Gemini research the maintenance tasks associated with every system on the boat and I captured them into a spreadsheet. Then I started leading Gemini through building up the code to create a database around that data using Sqlite and then started building a GUI to interact with it. So far I have the ability to track all of our periodic tasks (whats due, overdue, upcoming) associated supplies and parts needed and the bigginings of an inventory management system including a shopping cart for consuming items. We are going to grow the system a bit to also track our tools (and their accessories) as well as our food stores. Trust me, there are lots of hidden places on the boat to squirrel away stuff and if we don't keep track of what is where, we will spends hour looking for something a few months from now. This concept isn't new and there are lits of approaches to it including many existing commercial systems, but I thought it would be a fun project to build. Populating all of the data will take some time, but it's worth it.
Additional photos from the same posts (no dated log entry to attach them to):
-
8 Jan 2026 — The alternator Regulator wiring harness. It took 20 mins just to figure out what each piece was for and then to discover it's missing 1 conductor i was expecting to create an external alarm.
-
31 May 2026 — New bilge pump panel. This one was 3D printed and is back lit and now covers the old hole in the Bulkhead.
-
2 Jun 2026 — Had to add a fan to the Rasberry Pie for cooling. We still need to finalize this space before wrapping up.