For a Raspberry Pi 4 Model B you already own, pair the Hat Labs Sailor Hat v2 with the Waveshare 2-Channel Isolated CAN HAT built around the MCP2515. The Sailor Hat accepts a nominal 12 V supply. The Waveshare board handles NMEA 2000 data, and the Sailor Hat’s supercapacitors keep the Pi powered while Raspberry Pi OS shuts down with the Sailor Hat service installed. Sailor Hat setup, CAN HAT setup, Sailor Hat hardware.
Choose the hardware
| What you need | What to choose | What to check |
|---|---|---|
| Add both features to a Pi 4 Model B | Sailor Hat for Raspberry Pi v2 plus Waveshare 2-Channel Isolated CAN HAT (MCP2515) | Allow room for the stacked boards in a waterproof enclosure. The Waveshare board provides the isolated CAN interface. Sailor Hat setup, CAN HAT setup. |
| Buy a complete boat computer | Hat Labs HALPI2 with Raspberry Pi Compute Module 5 | It has a dedicated E7T power input and an isolated NMEA 2000 interface with a Micro-C port. The preinstalled HaLOS image handles shutdown during a sustained loss of input power and starts the computer again when power returns. HALPI2 guide, HALPI2 interfaces, HALPI2 operation. |
If you already have a Sailor Hat v1, it has its own isolated CAN interface. Use the v1 instructions for that board. Sailor Hat v1 hardware.
Skip the MacArthur HAT v1.2 if galvanic isolation is a requirement. Its NMEA 2000 circuit lacks electrical isolation. Its optional power module supports orderly shutdown of OpenPlotter in OpenMarine’s documented power configurations. MacArthur HAT v1.2 wiring.
Check the sustained power budget
At the Sailor Hat v2’s default 0.8 A input limit, the maximum sustained output is about 1.4 A. At the 2.8 A input setting, the maximum average 5 V output is at least 3 A in open air at room temperature. Account for ambient temperature in the enclosure when budgeting for sustained output. The 5 A specification is a peak. Sailor Hat power limits.
Check the interfaces and power limits
The Sailor Hat v2 has a pass-through GPIO header and a stack-through connector. Hat Labs documents compatibility with the Waveshare 2-Channel Isolated CAN HAT. Sailor Hat hardware, CAN HAT guide.
| Equipment | Published interfaces and limits |
|---|---|
| Sailor Hat v2 power | The power input accepts a nominal 12 V supply. The board has a separate 5 V output. Applying 12 V to the 5 V output can permanently damage the Raspberry Pi and Sailor Hat. Sailor Hat setup, Sailor Hat hardware. |
| Waveshare CAN HAT | The board exposes CAN0 and CAN1, offers a 3V3 logic setting for Raspberry Pi, and has jumper-selectable onboard termination. Hat Labs documents a single NMEA 2000 interface on this board to meet isolation requirements. CAN HAT guide. |
| HALPI2 NMEA 2000 | The Micro-C port accepts a standard NMEA 2000 drop cable. HALPI2 interfaces. |
Feeding the Pi through USB-C with the Sailor Hat attached can backfeed discharged supercapacitors and damage the hardware. Hat Labs USB-C power guidance.
For hardware installation, follow the maker’s manual and local rules.
Enable shutdown and check for CAN traffic
Hat Labs documents this installer for a fresh Raspberry Pi OS installation. This command downloads the installer and runs it with sudo. In the CAN dialog, select Enable for the installed Waveshare board. Reboot when the installation finishes. Hat Labs installation procedure, Hat Labs installer prompts.
curl -L \
https://raw.githubusercontent.com/hatlabs/SH-RPi-daemon/main/install-online.sh \
| sudo bash
- Shutdown. During a loss of input power, the LEDs scroll left while the supercapacitors are depleting. Two brief dark pulses with a one-second pause indicate that the daemon has started shutdown. The Pi starts again automatically when input power returns. Sailor Hat power and LED states, Sailor Hat power loss and restart.
- CAN reception. The Sailor Hat installer’s CAN configuration specifies 250 kbit/s on
can0. Once the CAN hardware is connected and configured, runcandump can0from thecan-utilspackage. Incoming frames should scroll in the terminal when devices are sending. PressCtrl+Cto exit. Hat Labs CAN interface configuration, Signal K connection checks.
Evidence and limits. Checked on 2026-11-27 against Hat Labs’ SH-RPi v1, v2.0.0 and HALPI2 guides, OpenMarine’s MacArthur HAT v1.2 documentation, and Signal K’s connection guide. The installation and checks were not carried out for this article.