
I collect parts desoldered from old boards. Transistors, diodes, sometimes a three-legged thing that looks like a transistor and isn’t one. Before a part like that goes into my parts store, I need to know what it is and whether it works. That’s what a small Chinese component tester is for: you put the part in the socket, press the button, and a moment later the screen shows the type of component, the pinout and a few parameters.
I wanted to go one step further. In my workshop I work with an AI agent that writes code for me, uploads it and checks it, and often makes suggestions too. Since the agent can already see my desk through a camera, I decided to give it the ability to measure the part I’ve put in the tester and compare the result with the marking on the package. I put the part in, and a moment later I get an answer: what the part is and whether its parameters are right.
To be honest up front: this project was designed and implemented by the AI agent, and I was its hands at the desk. It chose the solutions, wrote both programs, compiled them and uploaded them. I soldered, measured with a multimeter, took photos and made the decisions a program shouldn’t be making. This post is also about what working like that is like, and about how the agent got things wrong.
First decision: don’t build it from scratch
My question was: can a tester like this be built on an ESP32, with Wi-Fi from the start? The agent’s answer was: not worth it. All of the tester’s accuracy sits in the converter that turns a voltage into a number, and in the fact that the probes work at 5 V. The ESP32 has a non-linear, noisy converter and runs at 3.3 V. At that voltage some MOSFETs won’t turn on at all, because they need 3–4 V on the gate. To the tester they would be invisible.
Then there’s the history – the program in these testers comes from an open project that hobbyists have been refining for about fifteen years. Rewriting it from scratch would be a waste of time. So the plan turned out differently: take the tester that was already sitting in my parts store, flash it with the open version of the program (ComponentTester by Markus Reschke) and add a small ESP32 board purely as a go-between for the tester and the Wi-Fi network.

What board is this, anyway
There is no model name on the board. The agent identified it from the components in the camera and microscope photos: an ATmega328P microcontroller, the characteristic row of resistors next to the probes, a voltage regulator, a 9 V battery. It’s a clone of the popular LCR-T4 model.

Here is the first trap for anyone who wants to repeat this. The documentation of Markus’s open program warns that newer units have a completely different chip inside with a fake Atmel marking, and the program doesn’t run on it. So the text on the package proves nothing. The proof is the chip’s signature, an identification number you read out with a programmer. Mine came out as 0x1e950f, which means a genuine ATmega328P.
The point of no return
The sensible thing would have been to start with a backup of the factory program. It couldn’t be done: the manufacturer had locked memory read-out and the dump came out empty. So flashing the new program would erase the old one with no way back. At this point the agent stopped and asked me for permission.
This is a good example of how the roles are split. Working with the agent, I learned that reversible things the agent does on its own, while things that can’t be undone always remain my decision, even when it’s about a tester worth a few dozen złoty.
“Garbage” on the screen, or text upside down
After the new program was flashed, the screen first showed nothing, and after a change of settings it showed garbage – at least that’s how it looked at first glance. The agent pointed the camera at the screen by itself and, in the enlarged photo, spotted the word “Bat” in a corner, only reversed, and a vertical column of dots. The text was being displayed upside down and shifted by 4 pixels. Two changes in the firmware settings and a readable “Bye!” appeared in the top left corner.

And here the agent got it wrong. “Bye!” wasn’t an error, just the normal behaviour of a program that switches itself off when the battery is too weak. At the time the tester was powered from the programmer with no battery connected, so it saw zero volts and politely said goodbye. When I wrote that “nothing works”, the agent started hunting for a fault that wasn’t there – a symptom that was part of Markus’s design got treated as a failure, because a moment earlier things had looked better.
The real failure came a moment later. On battery power the screen flickered a few times and stopped responding, even though the battery, which I had checked, was at 9.29 V and the regulator was delivering its 5 V. The microcontroller kept answering correctly on the serial port the whole time. One of the photos shows the screen laid down beside the board, hanging on a sharply bent ribbon cable. That’s the likely culprit, but I can’t be sure.
After the third attempt the agent did something more sensible than yet another fix – it wrote down which of its assumptions might be wrong. It had been assuming that the board was fine and the problem was in the program. I decided there was no point in rescuing the screen of a dirt-cheap tester. It was going to be unnecessary anyway.
A tester without a screen: one pin that talks
It turned out the program has long been able to send whatever it shows on the screen as plain text through a single pin of the microcontroller. The option just had to be switched on. The tester became a black box with one input (the button) and one output (text).
That left a purely technical problem. The pins of this chip are spaced 0.8 mm apart, and soldering a wire to them is not an easy job. So the agent marked the pins we needed with numbered markers on a microscope photo. I used a meter to check where the traces lead and put my own markers on the photo. Both signals ended up on the pads of two resistors, which you can solder to without any stress. A shared photo with markers works far better than a description along the lines of “second pin from the left in the bottom row”.

The go-between is a small ESP32-C3 SuperMini board. It does three things: it powers the tester with 5 V from USB, reads its screen through a pin, and can reset it or “press” its button.
For the curious:
- Reading the text goes through a voltage divider made of 10 kΩ and 20 kΩ resistors, because the tester transmits with a 5 V signal and the ESP32 accepts 3.3 V at most.
- Reset and the button are connected through 1N4148 diodes. Thanks to them the ESP32 can only pull the line down to ground, and the tester’s 5 V doesn’t get back into its inputs.
- The battery is disconnected for good, and the tester’s program no longer checks its voltage or switches itself off – no more “Bye!”.
The same connections can be seen at the top of the ESP32 program:
#define PIN_RX 4 // tester PD6 (via 10k/20k divider)
#define PIN_BUTTON 5 // tester PD7 (via 1N4148, cathode to ESP)
#define PIN_RESET 6 // tester /RESET on ISP header (via 1N4148, cathode to ESP)
#define HOSTNAME "tester"
#define COLS 40
#define ROWS 24
#define STABLE_MS 600 // screen unchanged this long = finished drawing
Source: szmidtpiotr/component-tester-esp32/firmware/src/main.cpp, lines 39–45 (commit ec96d30)
All the parts were already in my parts store. Buying from scratch, the tester is 25–40 zł, the ESP32-C3 board 10–15 zł, and the rest costs next to nothing. You also need a USBasp programmer, once, to flash the new program.
The first measurement over Wi-Fi
The program on the ESP32 exposes a simple API on the network, that is, addresses another program can send a command to. Sending POST /measure starts a measurement and returns the result in a structured form:
{"type":"BJT NPN","values":{"123":"EBC","hFE":"242 e","Vbe":"681mV","Cbe":"13pF"}}
In other words: an NPN transistor, pins 1-2-3 are emitter, base and collector, gain 242. The first version needed about 10 seconds for this. There were two reasons, and both show nicely what this kind of bring-up looks like. First, the reset wire was soldered to the wrong pin, so the ESP32 couldn’t reset the tester and start a measurement on demand. The program had to wait until the tester repeated the measurement on its own, which it does roughly every 6 seconds. Second, the program waited for the empty line that ends a result, and the tester only prints it at the start of the next measurement, about six seconds later. After the wire was resoldered and the program fixed, a result counts as complete after 0.4 s of silence and a measurement takes 4.6 s, of which about 4 s is the tester’s welcome screen.
Measurement first, photo second
Time for a test. I put a transistor in the socket and didn’t say which one. The agent measured it through the API: PNP, pins collector-base-emitter, gain 286–298. Before I took a photo, it wrote: BC556/557/558 family, group B, and popular substitutes such as the 2N3906 are ruled out, because their pins are in a different order. The microscope photo showed a BC557 B.

That was the point of the whole project. A measurement alone won’t give you a part number: it will say “a PNP transistor with this pinout and this gain”. A marking alone is sometimes abbreviated to three characters. Only the two together give a reliable answer. The agent itself pointed out the weakness of this test, by the way: it was a part we had already been using earlier in the work. The real test is a part neither of us knows.
Calibrating a device that has no screen
The tester needs calibrating – following the original procedure – and calibration is started from the menu. The menu was on the screen I don’t have. The solution was in the same open program: a mode in which the tester behaves as if it were talking to a text terminal and sends its entire interface down the wire. The ESP32 assembles that into a virtual screen of 40×24 characters and makes it available on the network.
So the agent went through the menu the way a human would: a short “press” is the next item, a long one selects. It asked me only to short the probes in the ZIF-14 socket at the right moment, as the calibration procedure says. It didn’t go without a stumble, because the tester ignores the button during a measurement and the first 14 “presses” went nowhere. The calibration also showed why you do it: the internal reference voltage of this unit’s controller is 1041 mV instead of the nominal 1100 mV or so, which is 5% less – and that had a real effect on the measured values.
The screen came back, only in the browser
Since the results are on the network, they can be shown properly. The ESP32 serves a page where, instead of a line of text, there is a drawn symbol of the component with the socket contact numbers. You can see at a glance which pin is which. The parameters have Polish names and expandable hints for anyone who doesn’t remember what “Iceo” means and what value is normal.


The whole page is a single file that takes up about 10 kB after compression and is built into the ESP32 program. Then came the things without which the device would be just a prototype: a measurement history saved in persistent memory (it survives a restart and an update), program updates over Wi-Fi, and API documentation available at the device’s own address.
The feature that needed the most fixes was “first start-up”. When the tester can’t find a known network, after 20 seconds it puts up its own open network, “Tester-Setup”, through which you set up Wi-Fi from a phone. I tested it the way someone flashing the firmware for the first time would, and before everything worked, three versions of the program were produced in about 40 minutes. First the phone connected, but I didn’t know what address the device was getting. Then it didn’t get an address on the network at all.
Where this method ends
I put an LM317T regulator in the socket, that is, an integrated circuit with three legs. I got two different results for the same part: once a JFET with undetermined pins, once simply “4 diode junctions”. That’s not a bug. The tester looks for a single component between three contacts, and inside an LM317 there are dozens of transistors.

So the page got a plain-language translation of this result: many junctions, probably an integrated circuit, the marking is all you have left. The practical takeaway is that an odd type with an incomplete pinout is better treated as a signal that “this is probably an IC” than as a real transistor.
What it’s like working with an agent at the soldering iron
The agent wrote both programs, but it won’t solder a wire or hold meter probes to a board. Together we ended up with a device that works, and a few observations I’m taking with me to the next projects:
- The agent needs eyes. Thanks to the camera above the desk, the “garbage” on the screen could be diagnosed from a single photo.
- A raw log beats guesswork. The cause of the long measurement showed up straight away once the program started displaying exactly what the tester sends, along with the time of each line.
- The agent makes mistakes, and that’s fine as long as it says so. The “Bye!” story cost a bit of time. Pretending everything was going to plan would have cost more.
- Irreversible decisions stay with the human. Erasing the factory program, giving up on repairing the screen, no password on a device that lives only on the home network: those were my choices.
The code of both programs, the parts list, the wiring diagram and step-by-step instructions (in English) are in the project’s public repository on GitHub.
Tester elementów LCR-T4 przerobiony na urządzenie sieciowe: ESP32-C3, strona WWW (PL/EN), API HTTP, historia pomiarów
View on GitHub



Leave a comment