I put an eight-pin integrated circuit into the socket and did not tell the AI agent what it was. I only wrote that a chip was sitting in the tester and that I would not give its name. The program went through its database and answered: nothing matches. What happened next is at the end of this post, because first I need to show where the program that allows this kind of game came from.
A short recap for those who have not read part 1: the tester is an Arduino Mega, a board with a microcontroller and several dozen pins, with a hand-soldered shield and a socket for chips in DIP packages (two rows of through-hole pins). The Mega sets logic levels on the chip’s pins, measures voltages and switches the chip’s power on by itself. It is only the “hands”. All the knowledge about chips lives in a program on the computer. I solder, the AI agent designs and writes the code.
From the terminal to an application with an icon in the menu
The first version of the program was a script run in a terminal. It had a driver for the Mega, a database of 16 chips stored in text files (op-amps, a comparator and a 555 in DIP-8 packages, plus gates from the 74xx and 40xx families) and three commands: test a known chip, probe without power, and identify. The description of a logic gate in the database takes a few lines along the lines of “NAND, inputs 1 and 2, output 3”, and the program works out the truth table by itself.
The first attempt went well. In the socket sat a UA741, an operational amplifier: a chip that compares the voltages on its two inputs and amplifies the difference. The command “identify an 8-pin chip” checked the 555, LM358 and LM393 in turn, all three dropped out at the first step, and the program answered: UA741, with LM741, TL071 and OP07 as equivalents.
A script in a terminal was not enough for me, so I started setting requirements as a user, not as a programmer: “one window on the desktop”, “an icon in the menu”, “there is no point keeping the ATmega locked”, “the key has to be visible in the application”. The result is a Linux application like any other. You install it with apt install from a .deb file, it has its own window and an icon in the menu, and on top of that a panel in the browser, an API (an interface through which other programs can order a test) and a built-in MCP server. MCP is the way an AI agent can call the program’s functions by itself, a test for example, the same way it calls a tool. The original is in English, a Polish translation is included, and further ones can be loaded from the window.
The service does not sit in the background permanently. It starts on demand, releases the Mega’s port after 60 s of inactivity, and shuts itself down after 10 min. Network access is closed by default, and once enabled it requires a key that is shown in the settings. From the start the program is also shared between the Mega and the T48 programmer: one chip database and one algorithm, regardless of which device happens to hold the part being measured.
The version numbers show the pace of work well: 34 minutes passed between 0.2.1 and 0.4.3. In the same time the database grew from 16 to 71 chips, because the agent added a truth table generator for the 74xx and 40xx families.

How the program tests and how you can see it
Every chip in the database has its own card: a drawn symbol (gates, an amplifier or a block), a pin legend and the parameters measured during the test. These are the supply voltage, the lowest “high” and the highest “low” output voltage, and for logic chips also a hint whether it is a TTL or a CMOS family. Every parameter has an explanation under the ⓘ icon. The test result itself is drawn as a timing diagram, as in a logic analyser: you can see step by step what the tester put on the inputs and what the chip answered.
For the UA741 it looks like this: supply 5.07 V, output high 4.63 V, low 1.79 V, and the whole test takes 0.2 s.


A separate matter is the moments when a test is started by the AI agent or by someone on another computer. The window then replays that work at a human pace: it switches the tab, “presses” the button and shows a banner along the lines of “AI agent: identifying a DIP-8 chip… checking UA741 (5/5)”, and on the list of candidates it ticks off the ones that matched and crosses out the rejected ones. I can see on my desktop what the agent is doing and I do not have to read the log. A switch in the settings turns the animation off.

A day later one more thing was added. Since version 0.10.2 the identification result keeps the timing diagram of every candidate that was checked: the matching chip under the heading “Identified”, and below it the list of rejected ones. Every rejected candidate has a red field at the step and on the pin where it failed, and above every chart there is a colour legend. So instead of a bare “does not match” you can see why it does not match.

When the tester gets it wrong
The program did not work flawlessly from the first version. Along the way the agent and I debugged quite a few problems, in the window itself, in the service and in the power supply protection. I will not take them apart here. One kind of error is worth describing though, because it concerns the method itself: identification could return a chip that was not in the socket.
The best example is the LM324, four operational amplifiers in one package, which “was” also a 7408 AND gate. The gate test put 5 V on pin 4 as an input, and on the LM324 pin 4 is the supply. So the chip was getting power through a test input and its outputs were mimicking the truth table. After the fix every gate in a chip gets patterns shifted relative to the others, so a common pattern can no longer be faked. It was similar with the CD4069 inverters, which also matched the 7405 and 7406. Those two have open-collector outputs, meaning outputs that can only pull the voltage down to ground, while an external resistor has to pull it up. One extra step without the pull-up was enough: an open collector would have stayed low, and the CD4069 gave 5.07 V.
One limitation could not be worked around. A Schmitt trigger (40106) cannot be told apart from an ordinary inverter (4069) when only 0 and 5 V are available. That went onto the list of requirements for the future board.
“And what about thousands of chips?”
I asked that question when identifying an LM324N among 50 candidates took 9.53 s, because the program ran 50 tests one after another. It turned out that the time was eaten by USB, not by the processor: every command to the Mega was a separate exchange. The agent made four changes. A whole test now goes to the Mega in one packet. Chips with the same power pins are tested after a single power-up. Chips that are verified and often seen in the history go first. The biggest gain, however, came from the fourth change, the “fingerprint”.
The fingerprint is simple physics. After switching the power on, the tester weakly pulls all the pins up to 5 V (a pull-up) and reads the voltages. A chip’s input will follow the pull-up. A pin that stays low in spite of it must be an output. A candidate for which that pin should be an input drops out without any test at all.
| LM324N, 50 candidates | Before the changes | After the changes (0.10.0) |
|---|---|---|
| no marking | 9.53 s, 50 tests | 1.18 s, 1 test, 49 rejected by fingerprint |
| with the marking “LM324N” | — | 0.96 s |
The second row of the table is the “marking on the chip” field. The agent suggested reading the marking with a camera, but I chose a plain text field, because not everyone has a setup like mine, and a field works for everybody. The program extracts the number from the marking (SN74LS00N is a 7400, CD4069UBE is a 4069, LM324N is an LM324), tests those chips first and stops when one of them passes. Along the way, matching the marking caught an error in the database: equivalents written as MC1401 instead of MC14001.
I checked the fingerprint on real LM324N and TL072 chips. On logic chips it works only in simulation for now. There is also a safeguard in case a description in the database is incomplete: if nothing matches, the program tests the candidates rejected by the fingerprint anyway.
Back to the chip with no name
So the identification said: nothing matches. The agent did not start guessing, it kept measuring, in three steps.
- Probing without power showed the pin pairs 2–3 and 5–6, and pins 1, 4, 7 and 8 tied to one another. That is what a dual operational amplifier looks like.
- A test like the one for the LM358, the dual amplifier from the database, did not pass: both outputs sat at 4.6 V no matter what was on the inputs.
- The agent devised the third step by itself, because the program had no such measurement. On pins 1–3 of the socket there are resistors soldered in for the component tester (part 3 will be about it). The agent used them to put voltages close to the positive supply, and then close to ground, on the inputs of one half of the chip.
| Inputs of half A | IN− | IN+ | Output |
|---|---|---|---|
| near the positive supply, IN− > IN+ | 5.068 V | 4.671 V | 1.322 V (low) |
| near the positive supply, IN+ > IN− | 4.671 V | 5.068 V | 4.602 V (high) |
| near ground, IN+ > IN− | 0 V | 0.153 V | 4.622 V |
| near ground, IN− > IN+ | 0.153 V | 0 V | 4.617 V (should be low) |
Near the positive supply the amplifier works as it should: the output goes low or high depending on which input has the higher voltage. Near ground the output does not move. That is how an amplifier with JFET inputs behaves, meaning inputs built on field-effect transistors, which do not work near ground. The TL072, TL082, TL062 and LF353 belong to this family.
The agent added the TL072 to the database with a test carried out near the positive supply, and while it was at it fixed an error there: the TL072 was listed as an equivalent of the LM358, which it is not. Only then did I read the marking on the package: TL072CP.
The agent did not know what chip it was. It got there by measuring.
Now that it is in the database, identifying the TL072 takes 1.43 s, and 1.64 s with the marking “TL072CP” typed in. Two things have to be said honestly here. The test fully checks only half A of the chip, because the resistors are only at pins 1–3. I also do not know yet whether a real LM358 would falsely pass the new TL072 test. That remains to be checked.
What’s next
The TL072 experiment produced one more requirement for the future board: an intermediate voltage, 2.5 V for example, applied to any pin. That will be the subject of part 3, together with the component tester that fits into the same socket pins, and the full list of requirements for the board.




Leave a comment