Electrical & electronics

Baseboard for a Raspberry Pi based OpenPlotter computer

KhatkaPi: the baseboard I designed to protect a Raspberry Pi 5 running OpenPlotter on a boat. The design files are public.

This board is the home of Vira's navigation computer: a Raspberry Pi 5 running OpenPlotter. I call it KhatkaPi. The design files are public, you can download them here, and the full description is in my original diary article: KhatkaPi Baseboard.

KhatkaPi: a home for the Raspberry Pi

Story page14 Jan 2025

KhatkaPi is a baseboard for a Raspberry Pi 5 running OpenPlotter, built to really protect the electronics on a boat. I designed it, tested it, and the design files are public. ("Khatka" is a little house in Ukrainian, and that's exactly what it is for the Pi.)

The main ideas:

  • Made for the Pi 5, as a baseboard, not a HAT, so you can use any heatsink case and NVMe SSD adapter.
  • Everything lives in an IP67 box (290 x 210 x 100 mm), and the board puts some distance between the outside world and the Pi.
  • Every interface has ESD protection, 15 kV air and 8 kV contact.
  • Built to lose as little as possible from a lightning strike, a user mistake or some other device going crazy. Mostly common ground rather than galvanic isolation, but the data lines to the Pi are isolated on most interfaces, and outside interfaces get their own power regulators.
  • And of course, a double conformal coating against moisture and salt air.

Power: over-voltage protection up to 40 V, and a cut-off below 9 V so the battery doesn't get killed, with an override switch down to 6 V for emergencies. Its own 5 V, 6 A regulator for the Pi. Connectors for hard power on, hard power off and shutdown buttons. When the Pi finishes shutting down, everything turns off except the AIS. A switched 12 V output, up to 4 A, for other devices while the Pi runs. And a spot for an HDMI splitter, so two mirrored displays work without software tricks.

On the board: an ICM-20948 IMU, placed in the far corner, away from magnetic fields. A PWM fan to stir the air in the box, so the heat gets to the box walls. A socket for an Arduino Nano running the PyPilot weather sensors, with a BMP280 pressure sensor on board. Three 1-Wire connectors for temperature sensors.

To the outside world: I2C (protected, not isolated, so keep it short or inside the box). Two fully isolated NMEA 0183 ports, one meant for the depth sounder. A port for the Maiana AIS/GPS, straight on RJ45, with switches for power and transmit, its own 3.3 V regulator and indicators. An isolated PyPilot motor controller port with its own 5 V. An isolated serial port to a helper microcontroller that gives access to the Pi's GPIO, for example for a remote button module. Two four-port USB hubs, 8 ports in total, each with 12 kV ESD protection, common-mode filters and its own 2 A regulator per group. And two power-only USB ports, 1.5 A total.

Here's the real prototype, and the board installed on the boat.