{
  "api_version": "1.0.0",
  "slug": "v100-fan-controller-micropython-claude",
  "url": "https://reversedwithai.com/p/v100-fan-controller-micropython-claude",
  "markdown_url": "https://reversedwithai.com/p/v100-fan-controller-micropython-claude.md",
  "json_url": "https://reversedwithai.com/p/v100-fan-controller-micropython-claude.json",
  "title": "Replaced a dead fan-controller MCU on a dual V100 board with an RP2040, Claude doing the reverse engineering",
  "tagline": "A dead fan controller swapped for an RP2040 in about 50 minutes.",
  "summary": "Claude Code scanned the board to find the I2C bus and LM75-style temperature sensors, then wrote MicroPython control firmware for the fan PWM pins the author had traced; a 4-hour full-load run held both GPUs below throttling.",
  "target": {
    "name": "Dual Tesla V100 carrier board fan controller",
    "type": "firmware",
    "type_label": "Firmware and hardware"
  },
  "platform": "RP2040 / MicroPython",
  "models": [
    "Claude"
  ],
  "tools": [
    "Claude Code",
    "mpremote"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": "About 15 minutes of active work, 50 minutes wall-clock",
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": "yes",
    "independently_verified": null
  },
  "author": {
    "name": "Andrew Leech",
    "url": "https://github.com/andrewleech"
  },
  "sources": {
    "repository": null,
    "writeup": "https://notes.alelec.net/posts/reverse-engineered-repairs-with-micropython-and-claude/",
    "discussions": [],
    "all": [
      "https://notes.alelec.net/posts/reverse-engineered-repairs-with-micropython-and-claude/"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/v100-fan-controller-micropython-claude.webp",
    "credit": "notes.alelec.net"
  },
  "commit_history": null,
  "added_at": "2026-10-14T00:00:58+00:00",
  "updated_at": "2026-10-14T00:00:58+00:00",
  "sources_reviewed_at": "2026-10-14T00:00:58+00:00",
  "reviewed_by": "editor",
  "human_notes": "Leech did the diagnosis, chip removal and soldering, and traced the fan PWM pins himself; he used Gemini only to sanity-check that a 6-pin sensor was likely digital I2C. A leftover boot.py from an earlier project crashed boot until he had Claude delete it.",
  "reproduce": null,
  "body_md": "Andrew Leech replaced a fan-controller chip that Leech had burnt out on the dual Tesla V100 carrier board with a $3 RP2040-Zero running MicroPython. Claude Code found the I2C bus, identified LM75-family temperature sensors and wrote the control firmware in about 15 minutes of active work, roughly 50 minutes of wall-clock time.\n\n### How it was done\n\nLeech killed the original controller by hot-plugging fans under load. Leech identified it as an STC8G1K08, an 8051 microcontroller running custom firmware, so a blank replacement would not work. Leech traced the fan PWM pins to it with a multimeter, removed it, and wired both of its I2C-capable pin pairs, plus the PWM lines, to the RP2040.\n\nIn Claude Code, using mpremote, Claude checked each pin for external pull-ups, scanned both orientations, and found devices at 0x48 and 0x49 on GP26/GP27. It identified them as LM75-family sensors from their power-on register defaults. It then wrote an asyncio sensor loop, a 25 kHz PWM fan driver and a temperature curve (25% at room temperature, 60% at 50 °C, 100% at 70 °C), failing safe to full speed if both sensors stop responding.\n\n### Results\n\nThe firmware runs at boot and drives both fans off the hotter sensor. Leech later added a host-side service with named power and fan profiles, and a fallback if the host goes quiet for 5 seconds. A sustained 4-hour full-power run kept both cards in the mid-60s to low-70s °C on HBM with zero throttle events.",
  "ai_use_excerpts": null
}
