<!-- Canonical page: https://reversedwithai.com/p/v100-fan-controller-micropython-claude -->
Canonical page: https://reversedwithai.com/p/v100-fan-controller-micropython-claude

# Replaced a dead fan-controller MCU on a dual V100 board with an RP2040, Claude doing the reverse engineering

> A dead fan controller swapped for an RP2040 in about 50 minutes.

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.

## Key facts

- Target: Dual Tesla V100 carrier board fan controller
- Category: Firmware and hardware
- Platform: RP2040 / MicroPython
- Models: Claude
- Tools: Claude Code, mpremote
- Outcome: Works
- Time spent (author-reported): About 15 minutes of active work, 50 minutes wall-clock
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: yes; Verified by others: not reported
- Author: [Andrew Leech](https://github.com/andrewleech)
- Added: 2026-10-14
- Updated: 2026-10-14
- Sources reviewed: 2026-10-14 (editor)

## What was done

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.

### How it was done

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

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

### Results

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

## Human work and limitations

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.

## Sources

- [Write-up](https://notes.alelec.net/posts/reverse-engineered-repairs-with-micropython-and-claude/)

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: Andrew Leech (2026). Replaced a dead fan-controller MCU on a dual V100 board with an RP2040, Claude doing the reverse engineering. Reversed with AI. https://reversedwithai.com/p/v100-fan-controller-micropython-claude
