Make the cheap (~€25) FNIRSI LCR-P1 component tester stream its readings over USB, then let an AI agent (MCP) flag fake or out-of-spec transistors, JFETs and germanium diodes against their datasheets — under the tester's own bias conditions. Built for guitar-pedal and amp builders who buy parts that are sometimes relabelled or out of spec.
What it is not. The LCR-P1 tests at a single low-current bias point. This project can catch a gross mismatch (wrong type, gain far out of range, a silicon diode sold as germanium); it can never prove a part is genuine — that needs multi-point curve tracing or decapping. Every verdict carries this limitation.
You: I just tested this 1N34A — is it real germanium or a fake?
Agent: Reading: Vf 277 mV, reverse leakage 809 nA shown (~8 µA real), Cap 5 pF.
Verdict: consistent with real germanium.
- Vf 277 mV is below 300 mV — germanium, not silicon (silicon reads ~600-700 mV).
- Leakage ~8 µA is the decisive tell: real germanium leaks in µA; a fake barely
leaks (tens of nA). Two fakes you tested earlier read Vf ~410 mV and leakage
~5-7 nA — clearly not germanium.
Limitation: a single low-bias reading flags a mismatch; it can't prove authenticity.
(Photos below: a component-card SVG, and a measured point overlaid on the datasheet's hFE-vs-Ic curve — add a screenshot here before publishing.)
| Block | Role | Details |
|---|---|---|
firmware-patcher/ |
Patches an official LCR-P1 firmware so the meter streams every value it draws on its LCD over USB-C serial. Stock firmware sends nothing. | firmware-patcher/README.md |
lcr-p1-mcp/ |
Reads that serial stream and exposes it as an MCP server: live measurements, interpretation, plausibility flags, persisted history, component-card SVGs. | lcr-p1-mcp/README.md + lcr-p1-mcp/docs/test-bench-*.md |
datasheet-explorer/ |
Turns a datasheet PDF curve back into calibrated (x, y) data, so a measurement can be placed on the manufacturer's curve ("carnet de santé"). Vector PDFs only. | datasheet-explorer/README.md + datasheet-explorer/docs/ |
Plus datasheets/ — a drop zone for datasheet PDFs you supply (git-ignored, not
shipped: vendor copyright), and .kiro/ — the Kiro agent, steering and skills (below).
- Connect the LCR-P1 to the computer over USB-C (it appears as the CH340 serial port, typically COM3 on Windows). Place a part in the tester and press TEST. The patched firmware then streams the reading over that serial port.
- The
lcr-p1MCP server parses it into a measurement (with quirks handled: Idss ÷10, the hard-coded JFET pinch-off zero, the diode Ir ÷10, the "Cap" artefact). - The agent picks the matching skill and judges the reading:
- Number check (Zener, diode, R/L/C, MOSFET Vth) → datasheet value via the datasheets.md
MCP (
get_unified_datasheet), or a PDF you dropped indatasheets/. - Curve check (BJT hFE-vs-Ic, JFET transfer) → the
datasheet-explorerMCP extracts the curve and the skill overlays the measured point on it.
- Number check (Zener, diode, R/L/C, MOSFET Vth) → datasheet value via the datasheets.md
MCP (
- The verdict is consistent / borderline-consistent / inconsistent, always with the single-bias
limitation. See
datasheet-explorer/docs/extraction-logic.mdfor which families use a curve vs a number check.
You talk to the agent in plain language (French or English). It reads measurements live from the
lcr-p1 MCP; you test at your own pace and tell it when a reading is ready.
- Show a reading — "affiche-moi la dernière mesure" / "montre-moi la mesure 11". It shows the component card and stops; it does not auto-run a conformance check.
- List recent readings — "affiche-moi les dernières mesures". A table, not a card each.
- Declare a part, then check it — "je viens de tester un 2N5089, c'est un vrai ?" / "vérifie la conformité". It records the declared part number, reads the datasheet, and judges; for a BJT/JFET it overlays your point on the datasheet curve.
- Germanium fake screening — "ce 1N34A est-il un vrai germanium ou un fake ?". It uses Vf and the reverse leakage (the decisive tell: real germanium leaks in µA, a fake barely leaks).
- A reading the tester mis-detected — if the LCR-P1 reports something implausible (e.g. an IC read as a JFET), the agent flags that the detection is out of the tester's domain rather than judging it.
The agent never waits on hardware: ask, test, then say "c'est prêt" / "j'ai testé".
- Agent
agents/component-iq.md— the conversational assistant; routes to the right tools/skills. - Steering (always-on knowledge):
steering/component-conformance.md— the conformance method: procedure not profiles, verdict vocabulary, what the tester can and cannot prove, where datasheet values come from.steering/fnirsi-lcr-p1-serial-patch.md— the single source of truth for the firmware reverse-engineering: flash layout, hook/stub design, serial protocol, and the playbook for when a new official image breaks the patcher.
- Skills (one per component family, loaded on demand):
check-bjt-consistency— bipolar transistor (hFE-vs-Ic curve).check-jfet-consistency— JFET (Idss ÷10, |VGS(off)|, transfer / Idss-relation curve).check-diode-consistency— diode, with emphasis on spotting fake germanium (low Vf + clear µA leakage = real; near-zero leakage = not germanium). Ir ÷10 handled; Zener out of scope.match-transistors— pair/sort a batch of transistors (on hold).
The two MCP servers (lcr-p1-mcp, datasheet-explorer) are standard stdio uv run scripts, so any
MCP client can use them — Kiro, Claude Desktop, Claude Code, etc. The agent, steering and
skills in .kiro/ are Kiro-specific; with another client you drive the same MCP tools yourself (or
port the skills' procedure).
Each piece has neighbours on GitHub; the combination (cheap tester → serial → AI agent → datasheet verdict, aimed at pedal builders) is what's new.
- … a flasher like
threebytesfull/flash-lcr-p1orbigtimer-dev/lcr-p1-linux? Those flash/mod the LCR-P1. This patcher instead makes stock firmware stream its readings, finds every hook by content, and emulates the patched image (Unicorn) before writing it — refusing an image that fails a check. (The reverse-engineering was cross-checked againstbigtimer-dev/lcr-p1-linux; credited in the steering doc.) - …
Sightingsfor the Peak Atlas DCA75? The closest analogue (curve sweeps, pedal matching) — but it needs a ~€150 Peak tester. This targets the ~€25 FNIRSI and compares to datasheets. - … an SCPI MCP server (
SCPI_MCP,pyvisa-mcp)? Those drive bench scopes/PSUs/DMMs over SCPI. This is the first MCP for a handheld component tester, and it explains how the tester biased the part so a reading can be judged against a datasheet condition. - … a datasheet curve digitizer (
pdf2plot,unplotter)? That field is crowded; here it is a supporting piece (datasheet-explorer), not the point. The point is the fake/out-of-spec verdict. - … an "AI detects counterfeits" repo? Those target ICs via images/ML. This does discrete parts (BJT/JFET/diode), and is honest that one bias point cannot prove authenticity.
- Python is run with
uv, never pip:uv run --no-project --with <pkg> python .... The MCP servers areuv runscripts with PEP 723 headers. - Datasheets are never auto-downloaded (vendor anti-bot blocks it) and
web_fetchcannot read a PDF. Get numbers from the datasheets.md MCP, or drop the PDF intodatasheets/. - Datasheet values are never invented: every range traces to datasheet text actually read, or is labelled "general knowledge, unverified".
Validated end-to-end on real hardware for BJT, JFET and diode (incl. germanium fakes). The MCP servers run in Kiro; the patcher reproduces its reference hashes. Remaining number-check families (Zener, MOSFET, R/L/C) can be added as short skills on the diode/JFET model.