# BoatOpenIO
[](https://github.com/sponsors/bigbrainlabs)
[](https://www.patreon.com/cw/logbook_without_posing)
**Universal Marine IO System β Open Source, modular, fully configurable**
> *"Plug in, configure, done."*
BoatOpenIO is an open hardware platform for sensor integration on boats. Each of the 16 sensor terminals can be freely assigned to any of the up to 16 input channels via software. Pluggable mini-boards handle signal conditioning β no soldering, no rewiring.
Part of the **[Logbook Without Posing](https://www.amazon.com/s?k=logbook+without+posing)** series β Volume 3.
---
## π Support the project
This project is 100% open source and free. The complete story β every idea, mistake, detour and solution β is documented in the book series **"Logbook Without Posing"**.
If you find this project useful and want to support it: buying the books is the best way.
> *"Found this useful? Grab a book β or the whole series. You'll be supporting further development."*
**[π Logbook Without Posing on Amazon](https://amzn.to/4e5swN6)**
> **Note:** The ready-made board set is no longer sold on Tindie. Due to the new EU regulation on shipping abroad, the effort is no longer proportionate for me as a private individual. The Gerber files in this repo remain free to download.
>
> **The boards can be purchased directly from PCBWay** β I've set them up there as projects, so there's nothing to upload yourself: **[π BoatOpenIO projects on PCBWay](https://www.pcbway.com/project/member/?bmbno=0EDF2E80-7ABD-44)**
### π Boards sponsored by PCBWay
**[PCBWay](https://www.pcbway.com)** sponsors the board manufacturing for BoatOpenIO, the sensor gateway of this ecosystem β thank you!
**[π Order the boards directly: PCBWay project page](https://www.pcbway.com/project/member/?bmbno=0EDF2E80-7ABD-44)**
---
## β οΈ Safety Warning
**Always verify which mini-board is plugged into which channel before applying power.**
Connecting 12V directly to a pull-up channel (instead of through a voltage divider) will destroy the MUX, all ADS1115 and the ESP32 through I2C chain reaction.
The input board includes protection circuitry (3.3V) on all 16 signal inputs β but correct mini-board assignment is still essential.
---
## Concept
Commercial marine IO systems cost hundreds of euros and are closed black boxes.
BoatOpenIO costs a fraction of that β and anyone can adapt, extend, and improve it.
```
Sensor β Mini-Board β JST 3-Pin β PCB β Zener Protection β MUX β ADS1115 β ESP32 β MQTT β BoatOS
```
---
## Who Is This For?
**If your boat was built before 2000, this project was built for you.**
Boats from that era came with **analog VDO sensors** β oil pressure, oil temperature, coolant temperature, tank level, RPM. These sensors are robust, time-tested, and still doing their job perfectly. The problem: no modern system speaks their language.
NMEA 2000 gateways that bridge analog signals to modern boat networks exist β but they cost **300β500β¬**, are closed proprietary boxes, and give you zero insight or control over what happens inside.
**BoatOpenIO is an open analog marine gateway.**
Plug in your existing VDO sensors. Get clean MQTT output. Forward to Signal K or BoatOS. Done β without replacing a single sensor, without rewiring, without a black box.
```
VDO sensor β BoatOpenIO β MQTT β Signal K / BoatOS β modern dashboard
```
> **Built for boats built before 2000 that will sail for another 20 years β and deserve a modern dashboard without a full refit.**
---
## Hardware β v2 PCB
Four separate boards, connected via IDC ribbon cables: **input board**, **main board**, **ESP32 adapter board**, and **VCC distributor**. Gerber files ready to order in `hardware/v2/*/gerber/`.

> π **Ordering the boards:** All four boards are set up as projects on PCBWay and can be purchased there directly: **[PCBWay project page](https://www.pcbway.com/project/member/?bmbno=0EDF2E80-7ABD-44)** β or upload the Gerbers to a PCB fab of your choice. Bare PCBs, components per the parts list below.
```
Input Board ββ20-pin ribbonββ> Main Board <ββ16-pin ribbonββ ESP32 Adapter Board
β
3-pin JST
β
VCC Board
```

### Main Board Components
| Component | Description | Socketed |
|-----------|-------------|----------|
| ESP32-DEVKITC-32D-F (38-pin) | Microcontroller, WiFi, I2C, MUX control β on its own adapter board | β
|
| CD74HC4067 Breakout | 16:1 analog multiplexer | β
|
| ADS1115 Breakout (1Γ) | 16-bit ADC | β
|
| MPU6050 Breakout (GY-521) | 6-DOF IMU, tilt/impact detection | β
|
| AMS1117-3.3 Breakout | 5V β 3.3V regulator | β
|
**Everything socketed** β no component soldered directly. Faulty ESP32? Swap the adapter board. Done.
The ESP32 sits on its own dedicated adapter board. The first adapter board is designed for the 38-pin ESP32 DevKitC-32D β swappable and ready for future ESP32 variants.
### Protection Circuit (Input Board)
Every one of the 16 signal inputs has a hardware protection circuit, directly on the input board:
```
Sensor β Screw terminal β R_Pack08 (resistor network) β SP0503BAHTG (Zener array, 3.3V) β MUX signal
```
2Γ Bourns 4116R-1-102LF (R_Pack08, DIL-16, isolated) + 6Γ SP0503BAHTG (SOT-143, 3 channels each).
> β οΈ **Pull-up voltage is 3.3V** β the ADS1115 VDD is at 3.3V; higher voltages on the inputs risk component damage.
#### Running without the protection circuit (not recommended)
If the Bourns or Zener components are unavailable and you want to get the board running first, the resistor networks can be bypassed β but understand what you are giving up.
**How to bypass the Bourns 4116R-1-102LF:**
The DIL-16 package contains 8 isolated resistors. Each resistor connects a pin on the left row to the opposing pin on the right row:
```
Pin 1 ββ[R]ββ Pin 16
Pin 2 ββ[R]ββ Pin 15
Pin 3 ββ[R]ββ Pin 14
... ...
Pin 8 ββ[R]ββ Pin 9
```
To bypass: solder a short jumper wire across each pair (8 bridges per chip, 16 total for both R_Pack08). The signal then passes through without series resistance. The SP0503BAHTG Zener pads can simply be left empty.
> π΄ **Without this protection, all 16 inputs are exposed.** A wrong mini-board, a wiring mistake, or any brief overvoltage can destroy the MUX, ADS1115, and ESP32 in a chain reaction β all three at once. Only bypass for bench tests with known, clean signals. Fit the real parts before installing on the boat.
### Input Board β Connectors
```
16Γ screw terminal 5.08mm β raw sensor signal
20-pin IDC header β connection to main board (SIG1β16 + GND)
```
### VCC Board β Connectors
The VCC board distributes power to the mini-boards via JST connectors. It connects to the main board via a 3-pin JST cable (5V, 3.3V, GND).
```
7Γ JST 2-pin (3.3V) β VCC rail for passive/ESP01 mini-boards
3Γ JST 2-pin (5V) β VCC rail for Arduino Nano mini-boards
3-pin JST β connection to main board (5V Β· 3.3V Β· GND)
```
### I2C Address
Only 1Γ ADS1115 fitted (the MUX routes all 16 channels onto a single signal line) β fixed address **0x48**.
### GPIO Assignment (ESP32, via 16-pin main board β adapter board connector)
| GPIO | Function |
|------|----------|
| GPIO21 | I2C SDA |
| GPIO22 | I2C SCL |
| GPIO14 | MUX S0 |
| GPIO27 | MUX S1 |
| GPIO26 | MUX S2 |
| GPIO25 | MUX S3 |
| GPIO4 / 5 / 13 / 16 / 17 / 18 / 19 / 23 | OUT1βOUT8 (prepared for output channels) |
### Output Channels (prepared)
The main board already has a 10-pin header prepared for 8 signal output channels (+5V/GND) β e.g. for heaters, pumps, horns via relay or MOSFET mini-boards. Works on the same plug-in principle as the inputs.
### Compatible ESP32 Modules (first adapter board)
The footprint fits all modules in the 38-pin DevKitC layout: **ESP32-WROOM-32 / -32D / -32E / -32U / -32UE**, as well as **ESP32-SOLO-1**.
> β οΈ **ESP32-WROVER is NOT compatible** β GPIO16/17 are internally reserved for PSRAM on WROVER and therefore blocked for output channels.
---
## Mini-Boards (pluggable)
| Type | Code | Use case |
|------|------|----------|
| Voltage divider | VT | 12V VDO sensors β 3.3V |
| Pull-down | PD | Digital sensors, switches |
| Pull-up | PU | Open-collector outputs |
| Schmitt trigger | ST | Magnetic pickup sensors, 50Hz generators |
| Pulse board | ISP | RPM, flow (Arduino Nano / ESP01) |
| Optocoupler | OPT | Galvanic isolation (W-terminal RPM) |
| Direct / jumper | DIR | 3.3V signals directly |
| GND collector | GND | Multiple sensor ground loops β single reference |
### MotorCombo β everything on one board
The **MotorCombo** taps the most common engine sensors directly, so you don't have to plug in six separate mini-boards:
| Channel | Conditioning |
|---------|--------------|
| Battery 1 + 2 | Voltage divider |
| Oil pressure | Pull-up |
| Temperature | Pull-up |
| Tank | Pull-up |
| RPM | Optocoupler + ESP-01 |
**[MotorCombo THT](hardware/mini-boards/MotorCombo_THT/README.md)** β through-hole, hand-solderable. Gerbers and documentation are in the repo. Resistor values are deliberately left open so everyone can fit what matches their own VDO senders β which is also why there is no pre-assembled SMD variant: with the values depending on the senders, a fixed pre-populated board makes no sense.
**Design and submit your own mini-boards** β pull requests welcome!
---
## Multiplexer Logic
The CD74HC4067 routes one of 16 inputs onto the shared ADS pin A0 via a 4-bit address (S3βS0). Address and chip input follow the datasheet: `0000 β C0` β¦ `1111 β C15`.
> **Rev.1 note β channels are mirrored in software.** On the Rev.1 board the channel wiring is reversed (terminal 1 sits on the input that address `1111` selects, terminal 16 on `0000`). The firmware compensates in software (`MUX_MIRROR`): terminal *N* β address `16 β N`. The terminal numbering you see is therefore correct. A later board revision straightens the wiring, then the mirror is switched off (`MUX_MIRROR 0`).
| Terminal | Address S3 S2 S1 S0 | CD74HC4067 input |
|----------|---------------------|------------------|
| 1 | `1111` | C15 |
| 2 | `1110` | C14 |
| β¦ | β¦ | β¦ |
| 16 | `0000` | C0 |
---
## Software Configuration
```json
{
"kanaele": [
{"klemme": 1, "sensor": "battery1", "einheit": "V", "faktor": 4.7, "offset": 0, "aktiv": true, "topic": ""},
{"klemme": 2, "sensor": "oil_temp", "einheit": "Β°C", "faktor": 1.0, "offset": 0, "aktiv": true, "topic": "vessels/self/propulsion/engine/oilTemperature"},
{"klemme": 3, "sensor": "oil_pressure", "einheit": "bar", "faktor": 1.0, "offset": 0, "aktiv": true, "topic": "vessels/self/propulsion/engine/oilPressure"},
{"klemme": 4, "sensor": "tank", "einheit": "%", "faktor": 1.0, "offset": 0, "aktiv": true, "topic": ""},
{"klemme": 5, "sensor": "rpm", "einheit": "rpm", "faktor": 1.0, "offset": 0, "aktiv": false, "topic": ""}
]
}
```
> All 16 channels are routed via the MUX (CD74HC4067) to a single ADS1115 @ 0x48 on pin A0. No `ads` or `pin` fields needed β the channel number (`klemme`) maps directly to the MUX select lines.
>
> **`topic`** β optional. If empty (`""`), the firmware publishes to `boat/io/` (default). Set a custom topic for Signal K compatibility or any other MQTT schema. The "SK" button in the web UI auto-fills the correct Signal K path for common sensor names.
---
## MQTT Topics
```
boat/io/battery1 β 12.43
boat/io/oil_temp β 87
boat/io/oil_pressure β 3.2
boat/io/tank β 48
boat/io/rpm β 1450
boat/io/pitch β 1.2 (configurable)
boat/io/roll β -0.5 (configurable)
boat/alarm/impact_g β 2.40 (impact base configurable)
boat/alarm/impact_severity β KRITISCH (LEICHT / MITTEL / STARK / KRITISCH)
boat/alarm/impact_active β true
boatopenio/status β online
```
> **Channel topics** are set per channel (`topic` field / web UI). **Pitch, roll and the impact base topic** are editable under **WiFi & MQTT** in the web UI (defaults `boat/io/pitch`, `boat/io/roll`, `boat/alarm/impact`; the impact base gets `_g` / `_severity` / `_active` appended). In test mode the impact alarms are redirected to `boat/test/alarm/impact_*` so demo impacts never trigger real dashboards.
---
## Firmware Features
| Feature | Description |
|---------|-------------|
| Web UI | Configuration at `192.168.4.1`, bilingual DE/EN |
| WiFiManager | AP on first start for WiFi setup |
| MQTT | Publish all sensor values, LWT, auth support |
| OTA | Over-the-air firmware updates |
| mDNS | Reachable as `boatopenio.local` |
| Impact Detection | MPU6050 G-force monitoring with severity levels |
| Watchdog | Automatic restart on firmware hang |
| LittleFS | Persistent configuration storage |
---
## Supported Sensors
| Sensor | Type | Mini-Board |
|--------|------|------------|
| VDO temperature (NTC) | Resistance | VT |
| VDO oil pressure | Linear resistance | VT |
| VDO tank sender | Potentiometer | VT |
| Battery voltage 12V | Voltage divider | VT (10k/2.2k) |
| RPM (W-terminal) | Pulse/AC | OPT + ISP |
| RPM (magnetic pickup) | AC signal | ST + ISP |
| Fuel flow | Pulse | ISP |
| Bilge sensor | Digital | PD |
| Door/hatch contact | Digital | PD |
| DS18B20 temperature | Digital 1-Wire | custom board |
---
## Bill of Materials β PCB Kit
**[π Complete parts list on Amazon](https://www.amazon.de/hz/wishlist/ls/2ZLKK0GZJ5RZE?&linkCode=ll2&tag=bigbrainlab08-21&linkId=caccb90fad5cfe3e58063e29c1bc7dd4&ref_=as_li_ss_tl)**
> **Note:** Items 7, 8, 13, and 14 are from the same set β one purchase covers all. Same applies to 12 and 15.
| # | Component | Notes | Source | |
|---|-----------|-------|--------|---|
| 1 | ESP32 DevKitC-32D (38-pin) | Main controller | [Amazon](https://amzn.to/441f1bl) | |
| 2 | CD74HC4067 Breakout | 16:1 MUX | [Amazon](https://amzn.to/4vPmaHH) | |
| 3 | ADS1115 Breakout (1Γ) | 16-bit ADC | [Amazon](https://amzn.to/4gg8mRQ) | |
| 4 | MPU6050 Breakout (GY-521) | IMU | [Amazon](https://amzn.to/3S3gGKJ) | |
| 5 | AMS1117-3.3 Breakout | Voltage regulator | [Amazon](https://amzn.to/4gfqqeL) | |
| 6 | Female header assortment | Sockets for all breakouts | [Amazon](https://amzn.to/3S1rXLD) | |
| 7 | Pin header 2Γ10 (20-pin) | Main board β input board | [Amazon](https://amzn.to/4f2awU6) | |
| 8 | Pin header 2Γ08 (16-pin) | Main board β ESP32 adapter board | [Amazon](https://amzn.to/4f2awU6) | |
| 9 | Screw terminals 5.08mm | 16Γ sensor inputs | [Amazon](https://amzn.to/4e6bJcN) | |
| 10 | Bourns 4116R-1-102LF (2Γ) | Resistor network DIL-16 | [Conrad](https://www.conrad.de/de/p/bourns-4116r-1-102lf-4116r-1-102lf-widerstandsnetzwerk-1-k-radial-bedrahtet-dip-16-0-25-w-1-st-1055156.html) | [Amazon](https://amzn.to/3SuSZeD) |
| 11 | SP0503BAHTG (6Γ) | Zener array SOT-143 | [Amazon](https://amzn.to/4aippiv) | |
| 12 | JST 2-pin connector | VCC rails | [Amazon](https://amzn.to/43y2Suh) | |
| 13 | Pin header 2Γ10 (20-pin) | Input board side | [Amazon](https://amzn.to/4f2awU6) | |
| 14 | Pin header 2Γ08 (16-pin) | ESP32 adapter board side | [Amazon](https://amzn.to/4f2awU6) | |
| 15 | JST 2-pin connector (10Γ) | VCC distribution | [Amazon](https://amzn.to/43y2Suh) | |
| 16 | Ribbon cable + IDC 20-pin | Main board β input board | [Amazon](https://amzn.to/4w6858M) | |
| 17 | Ribbon cable + IDC 16-pin | Main board β ESP32 adapter board | [Amazon](https://amzn.to/3SuZ3DQ) | |
| 18 | Pin socket 2Γ05 (10-pin) | SIG-OUT prep on main board | β | |
| 19 | JST 3-pin connector | VCC board β main board | [Amazon](https://amzn.to/4ush82N) | |
| 20 | PCB set (4 boards) | Order the Gerbers in `hardware/v2/` yourself | [PCBWay](https://www.pcbway.com/project/member/?bmbno=0EDF2E80-7ABD-44) | |
> Amazon: faster delivery. AliExpress links to follow.
>
> **Item 10 comes from Conrad**, not Amazon: the same Bourns part is around β¬1.30 there versus roughly β¬10. For the 2 pieces needed that saves nearly β¬18. The Amazon link beside it is just the fallback source.
>
> Item 20 is the bare boards only. Items 1β19 are the components you still need.
---
## Directory Structure
```
BoatOpenIO/
βββ README.md β English (this file)
βββ README_de.md β German version
βββ LICENSE β GPL-3.0
βββ boatopenio_final_architektur.svg β system architecture diagram
βββ firmware_src/
β βββ firmware_src.ino β main firmware
β βββ webui.h β web UI & captive portal
β βββ data/
β βββ config.json β default channel config
βββ hardware/
β βββ boatopenio-gehaeuse-draufsicht.svg β housing top-view
β βββ mini-boards/ β mini-board designs
β βββ v2/ β KiCad PCB project (4 boards)
β βββ main-board/
β β βββ gerber/main-board.zip
β βββ input-board/
β β βββ gerber/input-board.zip
β βββ esp32-adapter-board/
β β βββ gerber/esp32-adapter-board.zip
β βββ vcc-board/
β βββ gerber/vcc-board.zip
βββ images/ β build photos
βββ docs/
βββ setup.md / setup_de.md β commissioning guide
βββ configuration.md / configuration_de.md β config reference
βββ backend.md / backend_de.md β firmware & backend reference
```
---
## Roadmap
What's done, what's planned, what's on the backlog β see [ROADMAP.md](ROADMAP.md).
---
## Integration with BoatOS
BoatOpenIO sends all values via MQTT. BoatOS auto-discovers all topics and displays them in the dashboard. No manual configuration needed.
**β‘οΈ [github.com/bigbrainlabs/BoatOS](https://github.com/bigbrainlabs/BoatOS)**
---
## License
**GNU General Public License v3.0 (GPL-3.0)**
Free to use, modify, distribute β derivative works must also be GPL-3.0. See [LICENSE](LICENSE).
**Exception:** the community enclosure designs in `hardware/enclosures/` are licensed **CC BY-SA 4.0** β the better fit for CAD work. Submitting a design means licensing it that way; see the [enclosure README](hardware/enclosures/README.md).
---
## Part of the Series
**Logbook Without Posing** β authentic DIY projects around boating.
> *"Build it yourself and you know what's in it β and what it cost."*
π [Book series on Amazon](https://amzn.to/4e5swN6) Β· π§ [BoatOS](https://github.com/bigbrainlabs/BoatOS) Β· β‘ [BoatOpenIO](https://github.com/bigbrainlabs/BoatOpenIO)