EBCTester V2: an ESP32-S3 brain for ZKE battery testers — days-long tests with no PC
Open firmware that makes a ZKE EBC battery tester standalone: an ESP32-S3 runs charge and discharge plans for days, logs to microSD and serves a web UI.

What it is
An ESP32-S3 that becomes the brain of a ZKE EBC battery tester: it runs days-long charge/discharge tests and 10-step plans without a PC, logs runs to SQLite on a microSD card, and serves its own Wi-Fi web UI with live charts.
What you need
- ZKE EBC battery tester required — EBC-A20/A40L/A50L enabled; this project is the brain, not the tester
- ESP32-S3 board, 16 MB flash N16R8 — the partition table requires 16 MiB
- microSD breakout + FAT32 card SQLite logging lives here; 10 kΩ pull-ups on the SD lines
- 3.3 V ↔ 5 V level shifter mandatory — the tester's serial port is 5 V TTL
- DS3231 RTC (optional) off by default in MakerMode
How hard
Intermediate: no toolchain and no soldering for a breadboard build — you flash a release image from the browser and type your pin map into a web form. The care is in the wiring: the level shifter is mandatory and the pin map must steer clear of the reserved GPIOs.
Key Facts
- This is not a standalone ESP32 project: you need a ZKE EBC battery tester next to it. The total build is the tester plus an ESP32-S3 with 16 MB flash plus breakout modules. EBC-A20 is the reference build; EBC-A40L and EBC-A50L are also enabled. Other ZKE models (EBC-A05, A10H, the EBD series and more) are recognized but stay read-only until someone verifies them on real hardware
- It replaces the tethered PC: manual CV charge, CC/CP discharge and test plans with up to ten steps (charge, discharge, rest, repetitions) run on the ESP32 itself. The browser is only the control panel — close it and the test keeps going; recording needs a ready SD database, not a Wi-Fi connection
- Offline recording: every run goes into a SQLite database on a FAT32 microSD card together with the battery details. No cloud. exFAT is unsupported and cards are never formatted automatically
- Its own Wi-Fi access point (BatteryTester-XXXXXX, web UI at http://192.168.4.1) means it works where home Wi-Fi doesn't reach — the author's reason for moving past ESPHome. The Bootstrap + Chart.js UI is served from the device, nothing loaded from a CDN. First-start defaults: setup AP password and admin web password are both 'ebctester' — change them on first use
- Internal resistance: a configurable load-pulse test gives DCIR results at 1, 5 and 10 seconds by default, using measured current, with optional automatic preparation of the state of charge. The ESP32 triggers the test and logs the readings, but the load pulse itself is executed by the ZKE tester's hardware
- MakerMode needs no toolchain: install the release image from the WebFlasher in your browser (or flash EBCTester-<version>-full-install.bin at address 0x0), then enter your pin map in the web form. At first start the firmware probes GPIO 47 — high selects FactoryMode for the author's board, open/low selects MakerMode; once a valid config is stored, GPIO 47 is ignored
- Wiring rules from the author: the tester's serial port is 5 V TTL at 9600 baud, 8O1, and ESP32 GPIOs are not 5 V tolerant — a level shifter is mandatory (the PCB uses a TXS0104E). Avoid GPIO 26–32 (flash), 33–37 (octal PSRAM), 19/20 (USB), 43/44 (console) and the strapping pins 0, 3, 45, 46. SD lines need 10 kΩ pull-ups to 3.3 V; leave GPIO 47 open or tie it to GND
- And the cell itself: days-long charge and discharge runs are exactly the scenario lithium fires come from. Bench the rig on a non-flammable surface away from anything burnable, prefer LiFePO4 when a test will run truly unattended, and check in on Li-ion cells rather than trusting them overnight — 'standalone' means no laptop babysitting, not no supervision
- Reference pin map (prototype matches the PCB): tester UART TX/RX on GPIO 10/11, microSD in SPI mode CLK/MOSI/MISO/CS on 6/7/5/17, card detect on 13 (must read high with a card inserted; set it to -1 for the PCB's active-low switch), status LED on GPIO 48, optional DS3231 RTC on I²C 14/15/16 — disabled by default in MakerMode
- Optional integrations: Home Assistant over MQTT (remote plan start is off by default), MariaDB backup of test runs, a live debug log in the browser (last 500 lines, off by default), UI in English and German with more languages loadable from SD. Firmware updates over Wi-Fi are offered but installed only after a click and a confirmation
- Software facts: written in C on ESP-IDF 6.0.1 (not Arduino), Apache-2.0, with the networking layer (ota-suite) and SD handling (sd-card-manager) split into reusable repos. Published alongside: two English manuals (Factory and Maker editions), a technical reference, the schematic PDF and a BOM of 26 line items / 57 parts with JLCPCB and PCBWay files
About This Project
ZKE's EBC battery testers are capable hobbyist tools, but they need a PC running the vendor's closed software for the whole run — and a capacity test on a large LiFePO4 cell can take days. Thomas Stoll (Gemelon) got tired of a laptop tied to his EBC-A20, tried ESPHome and found his batteries sat outside home Wi-Fi, and wrote EBCTester instead: firmware that talks to the tester over serial, records everything itself, and brings its own Wi-Fi access point so a phone is all the control panel you need.
What runs on the ESP32-S3: manual constant-voltage charge and constant-current/constant-power discharge, test plans of up to ten steps (charge, discharge, rest, repetitions), and a configurable load-pulse test for DC internal resistance at 1, 5 and 10 seconds. Every run lands in a SQLite database on a FAT32 microSD card next to the battery's details — no cloud — and the browser UI charts voltage, current and capacity over time. Close the browser mid-test; nothing stops. Optional extras: Home Assistant over MQTT, MariaDB backup of runs, a DS3231 real-time clock, WS2812 status LEDs, and an English/German UI.
V2's MakerMode is the path for everyone who doesn't buy the author's PCB: one release image fits any ESP32-S3 with 16 MB flash. Flash it from the browser, wire a microSD breakout and a level shifter to your board, then type your pin assignment into the web form — no toolchain, no rebuild. A brand-new Maker device starts with every peripheral off, and the firmware checks each pin (output-capable, used once, not a reserved pin) before saving your config as a CRC-protected blob.
Honest maturity notes: V2 is the current stable release line (v2.0.7, November 2026), the project publishes two English manuals, a schematic and a full BOM — but the first custom PCBs have only just been manufactured, the bridge back to the vendor's PC software is not implemented yet, and only the EBC-A20, EBC-A40L and EBC-A50L are enabled (other ZKE models are recognized but read-only until owners verify them on real hardware). Firmware is Apache-2.0, © 2026 Thomas Stoll. MCU Atlas is not affiliated with Thomas Stoll or ZKE; this page summarizes his README and project page with full credit.
Source & Attribution

How to Build It
Parts Needed
- A ZKE EBC battery tester — EBC-A20 (the reference build), EBC-A40L or EBC-A50L; other ZKE models are recognized but read-only
- An ESP32-S3 board with 16 MB flash, such as an N16R8 DevKitC-1 — the partition table requires 16 MiB
- A microSD breakout and a FAT32 card (exFAT will not work)
- A bidirectional 3.3 V ↔ 5 V logic level shifter — mandatory, the tester's serial port is 5 V TTL
- Optional: a DS3231 RTC module and a WS2812 status LED (many dev boards already have one on GPIO 48)
- Breadboard or perfboard, jumper wires, a JST socket with a cable to the tester's serial port, USB power
- A phone or computer with a browser — no PC is needed during tests, and no toolchain at all
Steps
- 1
Know what you're building — and what you must bring
EBCTester is the brain, not the tester: it replaces the PC that ZKE's closed software would otherwise tie to your EBC tester for the whole run (a LiFePO4 capacity test can take days). The complete setup is the ZKE tester plus an ESP32-S3 plus a few modules. EBC-A20, EBC-A40L and EBC-A50L are enabled; other ZKE models stay read-only until owners verify them. The project is young but real: V2 is the current stable release line, the first custom PCBs have just been manufactured, and the bridge back to the vendor's PC software is not implemented yet — read the release notes of the version you flash.
- 2
Check the board before wiring anything
You need 16 MB of flash (N16R8 boards match the defaults; other boards require matching settings, and optional octal PSRAM is enabled by default). Keep these GPIOs free of your wiring: 26–32 (flash), 33–37 (octal PSRAM), 19/20 (USB), 43/44 (console), and the strapping pins 0, 3, 45, 46. Leave GPIO 47 unconnected — the firmware probes it at first start to pick FactoryMode (high, for the author's PCB) or MakerMode (open or low, for your build); once a valid configuration is saved it is ignored.
- 3
Flash the release image from your browser
No build environment needed. Open the WebFlasher at gemelon.github.io/EBCTester and install the current release onto the board over USB. Prefer esptool? Download EBCTester-<version>-full-install.bin from the latest release on GitHub and flash it at address 0x0 — instructions are in the release notes. Either way you never install ESP-IDF: MakerMode exists precisely so a self-built device doesn't need a toolchain.
- 4
Wire the modules (the level shifter is not optional)
The tester's serial port is 5 V TTL at 9600 baud, 8O1, and ESP32 GPIOs are not 5 V tolerant — put a bidirectional level shifter between the two, then run the shifted tester UART to GPIO 10 (TX) and 11 (RX). The prototype used a JST socket and a twisted cable to the EBC-A20. microSD breakout in SPI mode: CLK to GPIO 6, MOSI to 7, MISO to 5, CS to 17, card detect to 13 (it must read high with a card inserted), with 10 kΩ pull-ups to 3.3 V on the SD lines. Optional: WS2812 status LED on GPIO 48, DS3231 RTC on I²C 14/15/16 with external pull-ups. These assignments match the author's PCB, so a prototype and the PCB behave the same.
- 5
First boot: the device starts deliberately blind
A new Maker device starts with every peripheral off — only the Wi-Fi access point and the web interface run, so a wiring mistake can't drive a pin into something it shouldn't. Join the access point BatteryTester-XXXXXX (the setup AP password defaults to 'ebctester'), open http://192.168.4.1 and log in as admin — the initial web password is also 'ebctester'. Change both passwords before you do anything else; the login settings offer 24-hour or 7-day sessions, and recording keeps running no matter what the browser does.
- 6
Enter your pin map in Maker Settings
In the Maker Settings tab, describe your hardware: tester UART pins, SD bus type (SPI or 4-bit SDMMC) and pins, card-detect pin (set -1 if your card slot's switch is active-low, like the PCB's), status LED, optional RTC — plus passwords, time server and update URL. Before saving, the firmware validates every entry: each pin must be an output-capable GPIO, no pin may be used twice, and reserved pins (flash, PSRAM, USB, console) are rejected. Tick ConfigAktive and save; the device restarts with your hardware enabled. The configuration is stored as a versioned blob with magic number and CRC, so a damaged config is detected instead of half-applied.
- 7
Select the tester model and prepare a battery
Under Administration → Settings → EBC tester, select and save your model before connecting — each model's charge/discharge/power limits then apply to manual commands, plans and resistance settings, so you can prepare everything with the tester still unplugged. Insert the FAT32 card and check that the SD database is ready (cards are never formatted automatically). Then create a battery entry with its label, manufacturer and nominal capacity: battery details are stored with every run, and a battery with recorded runs can't be deleted until those runs go first.
- 8
Run tests, close the browser, come back to charts
Start a manual constant-voltage charge or constant-current/constant-power discharge, or build a plan of up to ten steps (charge, discharge, rest, repetitions) and let it run — the sequence executes on the ESP32 as long as it has power, with no browser and no continuous connection needed. The load-pulse test reports DC internal resistance at 1, 5 and 10 seconds by default. Later, the dashboard charts voltage, current and capacity over time plus capacity per segment, and run management renames, filters or deletes saved runs. Optional extras live in Settings: Home Assistant over MQTT (remote plan start is off by default), MariaDB backup, the live debug log, and additional UI languages from SD. Firmware updates are offered over Wi-Fi but install only after your click and confirmation.
Bill of Materials
Parts list
7 parts · 2 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× ZKE EBC battery tester (EBC-A20 reference build)
Not included: Breadboard or perfboard and jumper wires, A JST socket with a twisted cable to the tester's serial port — what the author's prototype used, USB power for the module build (the author's PCB can instead run from the tester's 19 V), A phone or computer with a browser — and that's it: no PC is needed during tests, and no toolchain is needed at all in MakerMode
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
Related Projects






