{
  "api_version": "1.0.0",
  "slug": "mb3906-charger-ble-esp32-claude",
  "url": "https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude",
  "markdown_url": "https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude.md",
  "json_url": "https://reversedwithai.com/p/mb3906-charger-ble-esp32-claude.json",
  "title": "Reverse engineered a Bluetooth battery charger into ESP32 firmware for Home Assistant, with Claude Code finishing the job",
  "tagline": "A charger flight recorder: BLE to Home Assistant on an ESP32.",
  "summary": "A human decompiled the charger app and protocol, then Claude Code finished an ESP32 bridge with MQTT, a web UI and docs.",
  "target": {
    "name": "Powertech MB3906 Bluetooth battery charger",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "ESP32-C3, BLE, MQTT",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude Code",
    "ESP32",
    "Home Assistant"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": "MIT",
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "freman",
    "url": "https://github.com/freman"
  },
  "sources": {
    "repository": "https://github.com/freman/chargermon-mb3906",
    "writeup": "https://fremnet.net/posts/reverse-enginnering-mb3906",
    "discussions": [],
    "all": [
      "https://github.com/freman/chargermon-mb3906",
      "https://fremnet.net/posts/reverse-enginnering-mb3906"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/mb3906-charger-ble-esp32-claude.webp",
    "credit": "Image: GitHub (freman/chargermon-mb3906)"
  },
  "commit_history": {
    "commits": 2,
    "ai_commits": 0,
    "ai_days": 0,
    "first_ai_commit": null,
    "last_ai_commit": null,
    "credited_models": []
  },
  "added_at": "2026-10-15T04:13:30.452086+00:00",
  "updated_at": "2026-10-15T04:13:30.452086+00:00",
  "sources_reviewed_at": "2026-10-15T04:13:30.452086+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\n### How it was done\n\nThe 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.\n\n### Results\n\nAn 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.",
  "ai_use_excerpts": null
}
