

ESP32-EnBaFu Meter
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
1README
README.mdESP32 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.

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.

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.

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| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100nF | Capacitor_THT:C_Disc_D3.0mm_W1.6mm_P2.50mm | C1, C2, C3, C4 |
| 4 | INA219A | BT_Custom:SOIC-8_3.9x4.9mm_P1.27mm | IC1, IC2, IC3, IC4 |
| 3 | 50mA F | Fuse:Fuseholder_Littelfuse_Nano2_154x | F2, F3, F4 |
| 2 | 10k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R3, R4 |
| 1 | 100 | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R1 |
| 1 | 1N5817 | Diode_THT:D_DO-34_SOD68_P7.62mm_Horizontal | D1 |
| 1 | 220 | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R2 |
| 1 | 250mA F | Fuse:Fuseholder_Littelfuse_Nano2_154x | F1 |
| 1 | 3V3/0,5W | Diode_THT:D_DO-34_SOD68_P7.62mm_Horizontal | D2 |
| 1 | DC/DC Converter 5..30V->5V | BT_Custom:DCDC_Converter_Aliexpress_4pin_17x12mm | MOD2 |
| 1 | Display 0,96" OLED I2C | BT_Custom:Display_0.96inch_OLED_IIC | DISPLAY1 |
| 1 | Fuel Gauge | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | Conn2 |
| 1 | Pwr, Alternator & Batteries | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-05P_1x05_P5.00mm | Conn1 |
| 1 | Seeed XIAO ESP32C3 | Seeed Studio XIAO Series:XIAO-ESP32C3-DIP | MOD1 |
The 23 most common of 27 parts.
Similar boards
- 4 layers82.6 × 82.5 mm

- 4 layers82.6 × 82.6 mm

- 2 layers74.4 × 51.2 mm

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 mm

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 mm

- 2 layers50 × 100 mm

- 2 layers101.6 × 53.3 mm

BatteryAnalyzer MkII
Moragor/BatteryAnalyzer_MkII
Updated Version of the battery analyzer, now with constant current
25 parts12MIT - 2 layers100 × 100 mm

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).