Sailing Exodus
Hardware · the cheap end

The Raspberry Pi side.

A computer for about the price of a decent shackle, the boards and sensors that give it a way into the boat, what to know before you buy them, and where to buy them.

Where the clever happens

The cheap end

A Raspberry Pi is a complete computer for about the price of a decent shackle. It is what everything on this boat ends up talking to, and it's what the rest of the site is largely about.

It arrives knowing nothing about boats — no marine interfaces, no sensors, and no sensible way to run off 12 or 24 volts. The next few sections are what you bolt onto it to fix that.

The Raspberry Pi 5, port by port

The board on Exodus, numbered

A Raspberry Pi 5 seen from above with numbered markers on every port and connector, and the four mounting holes ringed with the 58 by 49 millimetre spacing marked
Photo: SimonWaldherr, CC BY 4.0, Wikimedia Commons. Cropped Annotated by Sailing Exodus: the numbers match the list below, and the cyan rings are the mounting holes.
  1. USB-C power in. 5 V at 5 A (25 W) with Power Delivery. On a 5 A supply the USB ports can give devices 1.6 A between them; on a plain 3 A (15 W) supply they are limited to 600 mA.
  2. Power button. A clean shutdown beats pulling the plug.
  3. RTC battery connector (marked BAT). A small backup cell keeps the clock right while the Pi is off.
  4. Two micro-HDMI ports (HDMI0 and HDMI1), each up to 4Kp60. Micro, not mini and not full size.
  5. UART connector. A small serial console for debugging.
  6. Two camera / display connectors (MIPI, four lanes each, 22-pin 0.5 mm).
  7. PoE header. For the separate PoE+ HAT.
  8. Gigabit Ethernet. The most reliable way onto the boat's network.
  9. Two USB 3.0 ports (blue). Both can run at 5 Gbit/s at the same time.
  10. Two USB 2.0 ports (black).
  11. Four-pin fan connector. For the official cooler or a PWM fan.
  12. 40-pin GPIO header. Where the hats and sensors go. 3.3 volt logic, and not 5-volt tolerant.
  13. PCIe 2.0 x1 connector (flat-cable type). For an M.2 SSD through an adapter board.
  14. Four mounting holes (cyan rings), spaced 58 mm by 49 mm (about 2.3 by 1.9 inches), 2.7 mm across, for M2.5 screws. The whole board is 85 by 56 mm (about 3.3 by 2.2 inches).

Not visible: the microSD slot is on the underside of the board, on the left. The Pi 5 is rated for 32 to 158 °F. Every port in detail, and the power rules →

A labelled diagram of the Raspberry Pi 5 board naming the processor, the on/off button, the PCI Express interface, the RP1 I/O controller, the fan connector, the Ethernet and USB connectors, the PoE HAT connector, the camera and display connectors, the UART and the RTC battery connector
The same board, labeled by function rather than by number.

Getting a Pi onto the boat's network

The hat is the whole job

A Raspberry Pi has no marine interfaces at all. It cannot hear NMEA 2000, it cannot hear NMEA 0183, and it has no sensible way to run off 12 or 24 volts. A hat fixes all three, and which one you choose decides what the rest of the project looks like.

PiCAN-M — what's on Exodus

This is the board actually fitted here. From SK Pang in the UK, also sold through Copperhill in the US. It is the long-established way to get a Raspberry Pi onto an NMEA 2000 backbone, and it is what everything on this site is built on top of.

Underneath it is an MCP2515 CAN controller — the same chip in most Pi CAN boards — which is why Linux already knows how to talk to it. You bring the interface up and the whole N2K bus arrives as a standard network device. CANboat and Signal K take it from there.

The PiCAN-M, the version we run, adds NMEA 0183 as well, and can power the Pi from the bus with a proper regulator rather than a USB brick — worth having on a boat where the 12 volt supply wanders around.

skpang.co.uk · copperhilltech.com

A PiCAN-M hat on a Raspberry Pi with an NMEA 2000 drop cable and blue T-connectors, a DS18B20 temperature probe and a small sensor board alongside
A PiCAN-M on a Raspberry Pi, wired into NMEA 2000 T-connectors, with a temperature probe and a small sensor board alongside.

MacArthur HAT — the other one worth knowing

From OpenMarine — the people behind OpenPlotter — and the most complete board of its kind. We don't run one, but it is the board to look at if you are starting from scratch with a mixed-protocol boat. It takes both NMEA 0183 and NMEA 2000, which is the thing most boats actually need, because most boats are a mixture of the two.

InterfaceWhat you get
NMEA 0183 2 inputs, opto-isolated, and 2 outputs
NMEA 2000 1 port, in and out, with an optional 120 Ω termination resistor included
SeaTalk 1 input — for older Raymarine gear that speaks neither of the above
1-Wire A connector for DS18B20 temperature probes, so you don't have to solder your own pull-up resistor onto a breadboard
Power Runs the Pi straight off the ship's batteries, with smart power management that shuts it down cleanly instead of yanking the power and corrupting the SD card

Those opto-isolated inputs are worth the money on their own. Opto-isolation means the incoming signal is passed across a tiny internal light beam rather than a wire — so there is no electrical connection between the boat's instrument wiring and your Pi. A ground loop or a voltage spike on the 0183 line cannot follow it home.

It stacks with other hats, so you can put an AIS receiver board on top of it. Pi 3, 4 and 5, with OpenPlotter.

shop.openmarine.net · documentation

A MacArthur HAT wiring diagram: NMEA 0183 devices in, an AIS base kit, an I2C sensor chain, DS18B20 sensors, a SeaTalk network, an NMEA 2000 network and a 12 volt supply with a main switch
A MacArthur HAT wired up: two NMEA 0183 devices in, an AIS base kit, a chain of I2C sensors, DS18B20 temperature sensors, SeaTalk, NMEA 2000, and a 12 volt supply through a main switch.

Which to buy

PiCAN / PiCAN-MMacArthur HAT
NMEA 2000YesYes
NMEA 0183On the -M version Yes — 2 in opto-isolated, 2 out
SeaTalkNoYes
1-Wire connectorNoYes
Powers the PiOn the -M version Yes, with clean shutdown

Both do the main job. If your boat is all NMEA 2000, the PiCAN-M is simple, proven and cheaper — it's what's here and it has never given trouble. If you have older 0183 or SeaTalk gear to bring in as well, the MacArthur does it on one board instead of three.

The Pi as a multiplexer

And why a boat needs one at all

A multiplexer takes several streams of boat data and turns them into one. A Raspberry Pi running Signal K does exactly that, and it is the main reason to put a Pi aboard.

Why it is needed

What the Pi does with it

JobHow the Pi does it
Many 0183 talkers Each one goes into its own serial input (a USB serial adapter or a hat with isolated inputs), so nothing collides.
NMEA 2000 Comes straight off the backbone through the CAN hat. On Exodus that is the PiCAN-M.
Different baud rates Every serial input is set to its own speed, so 4800 and 38400 sit side by side.
Your own sensors Temperature, pressure, motion and the rest are read by the Pi itself and join the same stream as everything else.
One common set of names Signal K turns it all into one model, so a wind speed is the same thing wherever it came from.
Out again Serves the merged result back out as 0183, as a web page, or over WiFi to any phone or tablet on the boat.

A commercial multiplexer does the first part for a few hundred dollars and keeps its insides hidden. The Pi does all of it, and you can see and change every step. The commercial boxes, and how they work →

Two cautions. First, do not wire an instrument's output straight into the Pi's own pins. Use an isolated input or a proper adapter, because 0183 signal levels and the Pi's 3.3 volt pins are not the same thing and a mistake can damage the Pi. Second, the Pi is a computer that can crash, so we keep the navigation that keeps the boat safe on commercial gear that works without it. Why we split it that way →

What's actually running on Exodus

Not a wish list — these are fitted

The pictures show each kind of part, not necessarily the exact unit aboard.

A PiCAN-M hat on a Raspberry Pi wired into NMEA 2000 T-connectors
PiCAN-M hat puts the Pi on the NMEA 2000 bus.
Illustration of a stacking header seen from the side
Stacking header lets a second board plug on top.Illustration by Sailing Exodus, simplified.
A red BME280 pressure, temperature and humidity breakout board
BME280 pressure, temperature and humidity.Photo: SparkFun, CC BY 2.0, Wikimedia Commons
A DS18B20 waterproof temperature probe with its black cable coiled
DS18B20 probe a waterproof stainless temperature probe on a lead.Photo: Leonardo Postay, CC BY-SA 4.0, Wikimedia Commons
Illustration of a BNO085 motion sensor board
BNO085 heel, pitch and heading from nine axes.Illustration by Sailing Exodus, simplified.
An RTL-SDR dongle with its antenna adapter and USB cable
RTL-SDR dongle a software defined radio on a USB stick.Photo: Joeceads, CC BY-SA 4.0, Wikimedia Commons. Cropped
Illustration of a typical WiFi weather station with outdoor sensors and an indoor console
Ecowitt-style weather station an outdoor sensor array and an indoor console.Illustration by Sailing Exodus, simplified.
A small white Bluetooth temperature and humidity sensor with a display
Bluetooth LE tag a typical battery temperature and humidity sensor (not ours).Photo: Jacek Halicki, CC BY-SA 4.0, Wikimedia Commons. Cropped
An ESP32 development board on a breadboard
ESP32 board WiFi and Bluetooth for a few dollars.Photo: Edwiyanto, CC BY-SA 4.0, Wikimedia Commons. Cropped
PartWhat it doesConnects by
PiCAN-M hat
(MCP2515)
Puts the Pi on the NMEA 2000 backbone. The single most useful board on the boat — without it the Pi is deaf. GPIO hat
Stacking header Passes the GPIO pins up through the hat so everything else can still reach them. Costs almost nothing, solves the problem that stops most people at board two. GPIO
BME280 Barometric pressure, temperature and humidity in one chip. A logged pressure trend is worth more at anchor than any forecast. I2C, 4 wires
DS18B20 probes Waterproof stainless temperature probes on a lead. Engine coolant in and out, fridge, freezer, anywhere you want a number. 1-Wire + 4.7kΩ resistor
BNO085 IMU Nine-axis motion sensor. Heel, pitch and roll — real attitude data without a proprietary sensor. I2C
RTL-SDR dongle Software defined radio on a USB stick. Receives AIS, weather satellite images and a great deal more for about the price of dinner. USB
Ecowitt weather station Outside temperature, humidity, dew point, pressure and wind, feeding straight into Signal K — and published as a public weather station that anybody can look up, alongside thousands of others doing the same. How that network works → WiFi
Bluetooth sensors Cheap BLE temperature and humidity tags scattered in lockers and compartments, read by the Pi's own Bluetooth. Bluetooth LE
ESP32 boards Sensors where a cable run isn't worth the day it would take. WiFi built in, a few dollars each. WiFi

How these are wired up →

The bench kit

What it takes to build any of this

None of the sensors on this page work straight out of the packet. You need a few ordinary things on the bench first.

A solderless breadboard with rows of holes and red and blue power rails
Breadboard a solderless board for testing a circuit before anything is soldered. Parts push in and pull out.Photo: oomlout, CC BY-SA 2.0, Wikimedia Commons.
A K-type thermocouple: a coil of green and white twisted wire with a two-pin connector
K-type thermocouple probe for things far too hot for a DS18B20, like raw engine exhaust.Photo: Harke, Public domain, Wikimedia Commons.
A mains soldering iron with a blue handle and a black cable
Soldering iron makes the joints permanent. A boat shakes, and a breadboard does not survive it.Photo: Александр Александрович Москвин, CC BY-SA 4.0, Wikimedia Commons.
Six axial resistors with coloured bands on their bodies
Resistors small color-coded parts. The 1-Wire pull-up is 4.7 kΩ: yellow, violet, red.Photo: Evan-Amos, Public domain, Wikimedia Commons.

Worth knowing before you buy

Four things that cost us time

A hat covers the pins it sits on. If you plan more than one board, buy a stacking header at the same time. It's a couple of dollars and it saves taking the whole thing apart later.

1-Wire needs a pull-up resistor. 4.7 kΩ between data and 3.3 V. Without it you get nothing and no error message explaining why. Some probe modules include it; bare probes don't.

Wire colors are not standard. On the DS18B20 probes we use, red is power, yellow is data and blue is ground. Other suppliers use black and white for the same jobs. Check before connecting — guessing can cook the sensor.

Check the voltage. The Pi's GPIO is 3.3 volt and not tolerant of 5. Plenty of modules are sold for Arduino at 5 volts. Read the board before you wire it to a Pi.

Where to buy

The shops worth knowing

Adafruit

New York. Excellent documentation, honest descriptions, and a tutorial for almost everything they sell. If you're learning, start here even when they're not cheapest.

adafruit.com

Arduino

The microcontroller side. Where you go when the job doesn't need a whole computer, or needs to sit somewhere a Pi can't.

arduino.cc

Raspberry Pi

The boards themselves, the official accessories, and the documentation that actually matches the hardware.

raspberrypi.com

SparkFun

Colorado. Similar ground to Adafruit, different catalog — worth checking both before you buy.

sparkfun.com

Pimoroni

UK. Pi hats and add-ons, often things nobody else makes.

shop.pimoroni.com

SK Pang

UK. The PiCAN CAN-bus boards — the usual way to get a Pi onto an NMEA 2000 backbone.

skpang.co.uk

Seeed Studio

Sensors and modules at low prices, plus their own Pi-compatible boards.

seeedstudio.com

Elecrow

Where the assembled Open Echo sonar board comes from.

elecrow.com

On the list

Not bought yet

Relay board

Turns the Pi from something that watches into something that acts. Start a generator, switch a pump. Needs real care — see the generator write-up.

Open Echo sonar shield

TUSS4470 board on an Arduino Uno. Our own transducer, our own raw echo data, our own screen.

Current sensors

Hall-effect clamps on individual circuits, to find out what is actually drawing the power at three in the morning.

Flow sensor

On the bilge pump outlet. Counting cycles catches a leak months before you'd otherwise notice.

The projects these feed → All the links