Skip to the content
2 layers50.1 × 60 mmESP32-EnBaFu Meter, the printed circuit board in 3D

This project shows an example design for an ESP32-based adapter with which a number of Engine, Battery and Fuel related properties can be read, interpreted an communicated with a Signal K host.

Size
50.1 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
35
Pads
107
Tracks, vias
249, 21
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Nov 2023
Updated
21 Sep 2026

Overview

ESP32-EnBaFu Meter is an open-source printed circuit board by Beukhof-Techniek, from the Beukhof-Techniek/ESP32-EnBaFu-Meter repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 50.1 × 60 mm with 27 parts on 35 nets, routed with 249 tracks and 21 vias.

It is built around the INA219AID. Its parts include 4 capacitors, 4 resistors, 4 ICs, 4 fuses and 2 diodes. It belongs with the ESP32 and RISC-V boards of this library.

Main components

1

README

README.md

ESP32 Engine, Battery & Fuel Meter

General

This project shows an example design for an ESP32-based adapter with which a number of Engine, Battery and Fuel related properties can be read, interpreted an communicated with a Signal K host. This design has actually been built and is in use on on my own sailboat.

Features

  • Fuel Level as a ratio (percentage) and volume;

  • Alternator Voltage;

  • Engine Status (stopped/running);

  • Engine Running Time (persistent over Power Cycles);

  • Battery Voltage for two Batteries;

  • WiFi connection to the Boat Network;

  • Calibration possibilities;

  • Using the ESP32 platform.

Fuel Level

The value (resistance) of a Fuel or Water Level Sender is indicative for the (remaining) amount of Liquid in the Tank. In this example, a Wema Fuel Level Sender is used which has the VDO type values: 0 Ohm when empty and 190 Ohm when full. Any other type of Linear Sender will do as long as you calibrate it properly.

Wema Fuel and Water Sender

The Sender is connected in series with a 220 Ohm resistor over which the voltage drop is being measured. Due to the inaccuracy of a standard analog input of ESP32 types of processors, an INA219A is being used. A 3.3V zenerdiode keeps a steady voltage over the resistor-sender series connection. The actual value of the Sender determines the voltage drop over the 220 Ohm resistor which in turn is an indication of the Fluid Level in the Tank.

Fuel Sender connection

The determined Input Voltage is then calculated into the ratio, a value between 0.0 and 1.0 which can be used to present a percentage (Signal K offers a number of translations), and the volume. The latter is sent to Signal K in m3 but Signal K offers a number of translations for this value as well. Because I found the Wema sender I was using was not linear, there is an additional function with which one can calibrate the resulting values.

The values sent to Signal K are:

  • type : the type of Tank;

  • capacity : total capacity/volume of the Tank;

  • currentLevel : the level of fluid in the Tank as a value 0.0-1.0 (Signal K documentation mentions 0-100% which is incorrect);

  • currentVolume : the volume of fluid in the Tank.

Alternator and Engine values

The Alternator is also connected to an INA219A voltage monitor to obtain an accurate voltage registration. The current sensing capabilities are not being used in this design.

Alternator and Battery connection

When the measured voltage is above a certain threshold, the engine is considered as running and time is added to the total runtime and updated in flash memory.

The values sent to Signal K are:

  • label : human readable label for the propulsion unit;

  • alternatorVoltage : Alternator voltage;

  • state : the current state of the Engine;

  • runTime : total running time of the Engine (Engine Hours in seconds).

Battery Voltage

This design provides the possibility to connect and monitor two Batteries. For connection details, see "Alternator and Engine values" above.

The value sent to Signal K is:

  • voltage : Voltage measured at or as close as possible to the device.

Parts

27
QtyValueFootprintReferences
4100nFCapacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mmC1, C2, C3, C4
4INA219ABT_Custom:SOIC-8_3.9x4.9mm_P1.27mmIC1, IC2, IC3, IC4
350mA FFuse:Fuseholder_Littelfuse_Nano2_154xF2, F3, F4
210kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR3, R4
1100Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1
11N5817Diode_THT:D_DO-34_SOD68_P7.62mm_HorizontalD1
1220Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR2
1250mA FFuse:Fuseholder_Littelfuse_Nano2_154xF1
13V3/0,5WDiode_THT:D_DO-34_SOD68_P7.62mm_HorizontalD2
1DC/DC Converter 5..30V->5VBT_Custom:DCDC_Converter_Aliexpress_4pin_17x12mmMOD2
1Display 0,96" OLED I2CBT_Custom:Display_0.96inch_OLED_IICDISPLAY1
1Fuel GaugeTerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mmConn2
1Pwr, Alternator & BatteriesTerminalBlock:TerminalBlock_MaiXu_MX126-5.0-05P_1x05_P5.00mmConn1
1Seeed XIAO ESP32C3Seeed Studio XIAO Series:XIAO-ESP32C3-DIPMOD1

The 23 most common of 27 parts.

Similar boards

  • 4 layers82.6 × 82.5 mmJumperless2, the printed circuit board in 3D

    Jumperless2

    Architeuthis-Flux/Jumperless

    A jumperless breadboard

    208 parts914
  • 4 layers82.6 × 82.6 mmJumperlessV5r8, the printed circuit board in 3D

    JumperlessV5r8

    Architeuthis-Flux/JumperlessV5

    The next generation jumperless breadboard

    650 parts332
  • 2 layers74.4 × 51.2 mmEsp32-wroom timer, the printed circuit board in 3D

    Esp32-wroom timer

    AlessandroAU/Chorus32-ESP32LapTimer

    This is an ESP32 port of the popular Chorus RF Laptimer

    66 parts102GPL-3.0
  • 2 layers169.3 × 128 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupply

    SmartSupply is a digital battery powered lab powersupply. It is Arduino compatible and can be controlled via PC over USB.

    134 parts96
  • 4 layers100 × 54 mmKbox, the printed circuit board in 3D

    Kbox

    sarfata/kbox-hardware

    Open-source electronics for your boat

    139 parts19
  • 2 layers50 × 100 mmPSU PCB, the printed circuit board in 3D

    PSU PCB

    ThomasVDD/SmartSupplyMini

    118 parts16
  • 2 layers101.6 × 53.3 mmBatteryAnalyzer MkII, the printed circuit board in 3D

    BatteryAnalyzer MkII

    Moragor/BatteryAnalyzer_MkII

    Updated Version of the battery analyzer, now with constant current

    25 parts12MIT
  • 2 layers100 × 100 mmWLEDController, the printed circuit board in 3D

    WLEDController

    LostInCompilation/WLED-Controller-PCB

    WLED Controller Board with ESP32 - 4 Channels - Current and Power Monitoring - INMP441 Microphone

    69 parts8

Questions

How big is the ESP32-EnBaFu Meter PCB?

It measures 50.1 × 60 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32-EnBaFu Meter use?

27 parts, built around the INA219AID. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the ESP32-EnBaFu Meter KiCad files?

From the Beukhof-Techniek/ESP32-EnBaFu-Meter repository on GitHub, at the commit this page was made from: the board is kicad/ESP32-EnBaFu-Meter.kicad_pcb and its schematic kicad/ESP32-EnBaFu-Meter.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32-EnBaFu Meter design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).