<!-- Canonical page: https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude -->
Canonical page: https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude

# Reverse engineered a Bluetooth battery charger into ESP32 firmware for Home Assistant, with Claude Code finishing the job

> A charger flight recorder: BLE to Home Assistant on an ESP32.

A human decompiled the charger app and protocol, then Claude Code finished an ESP32 bridge with MQTT, a web UI and docs.

## Key facts

- Target: Powertech MB3906 Bluetooth battery charger
- Category: Firmware and hardware
- Platform: ESP32-C3, BLE, MQTT
- Models: Claude
- Tools: Claude Code, ESP32, Home Assistant
- Outcome: Works
- License: MIT
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [freman](https://github.com/freman)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

freman built firmware that bridges a Powertech MB3906 Bluetooth battery charger to a network. The author wanted a flight recorder, so the next battery failure would come with evidence. The author did the decompiling and protocol work and used Claude Code for the rest.

### How it was done

The charger's BLE protocol is undocumented, so the author reverse engineered it and wrote it up in a blog post and a protocol reference. Claude Code, in the author's words, was brought in to finish: the captive portal, turning notes into readable documentation, and the web page code. Everything was checked against a live charger through full charge cycles.

### Results

An ESP32-C3 connects over BLE, authenticates and streams voltage, current, capacity, program and faults, and starts or stops charge programs. Home Assistant gets ten sensors plus controls through MQTT discovery, and there is a web UI with live updates and a small OLED display. The code is MIT licensed.

## What the commit history shows

None of the 2 commits in the public repository credits an AI. Many tools add no credit, so this does not show the AI was not used.

Measured by this site from public git history.

## Questions about Powertech MB3906 Bluetooth battery charger

### What is the Powertech MB3906 Bluetooth battery charger project?

A human decompiled the charger app and protocol, then Claude Code finished an ESP32 bridge with MQTT, a web UI and docs. It is listed under Firmware and hardware for ESP32-C3, BLE, MQTT.

### Which AI model was used on Powertech MB3906 Bluetooth battery charger?

The entry names Claude. The tools named alongside are Claude Code, ESP32 and Home Assistant.

### Did the AI reverse engineering of Powertech MB3906 Bluetooth battery charger work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for Powertech MB3906 Bluetooth battery charger available?

Yes. The code, patches or tooling are public: https://github.com/freman/chargermon-mb3906. Licence: MIT. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/freman/chargermon-mb3906)
- [Write-up](https://fremnet.net/posts/reverse-enginnering-mb3906)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: freman (2026). Reverse engineered a Bluetooth battery charger into ESP32 firmware for Home Assistant, with Claude Code finishing the job. Reversed with AI. https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude
