Two testers were lying side by side on the bench. The first is a cheap component tester: you put a resistor, a capacitor or a transistor into it and read the result. The second is my integrated circuit tester built on an Arduino Mega, freshly soldered and driven by a program on the computer. At heart both do the same thing: they put something on the pins and measure what comes back. Hence the question: what if it were one device?
This is the third part of the series. I described building the tester and the software in parts 1 and 2. Here it is enough to know that the Arduino Mega (a board with a microcontroller and several dozen pins) sets logic levels on the pins of the chip under test and measures voltages, and everything else is handled by an application on the computer, operated by me or by an AI agent. I solder, the agent designs and writes the code.
Two resistors per pin
To pins 1–3 of the socket I soldered two resistors per pin: a small one, 680 Ω, and a large one, 470 kΩ. Each goes to its own Mega pin. This is the principle known from cheap LCR-T4 style component testers. The agent wrote the measurement code from scratch though, from the principle of operation alone, not by copying someone else’s program.
The principle itself is simple: the tester applies a voltage through a known resistor and measures voltages or time. That gives three kinds of measurement.
- Resistor. The component under test and the tester’s known resistor form a voltage divider: two resistors in series split the supply voltage in proportion to their values. Measuring the voltage in the middle is enough to calculate the unknown resistance.
- Capacitor. The tester charges it through a known resistor and measures the time it takes for the voltage to cross a set threshold. The larger the capacitance, the longer it takes. This charging time is described by the time constant.
- Diode and transistor. A diode conducts in one direction and has a characteristic voltage drop (Vf). To the tester, a transistor is two diodes with a common pin, the base. The direction of conduction shows whether it is NPN or PNP, and then hFE, the transistor’s gain, can be measured.
The program got a new “Component” tab. It recognises a resistor, a capacitor, a diode, NPN and PNP transistors and a short circuit, in any orientation in the socket, and draws the component the way it actually sits. The agent can measure too: measuring a component is the same kind of tool for it as testing a chip. So I have one device instead of two.
One decision concerned calibration. I measured the resistors with a UT612 meter before soldering them in, and those values went into the program. The small ones came out at 676.6 / 674.9 / 678.2 Ω, the large ones at 472.2 / 472.8 / 471.3 kΩ. So the program calculates with the measured values, not with the nominal 680 Ω and 470 kΩ.
Numbers, with a meter alongside
| Component | Tester result | Reference |
|---|---|---|
| 10 kΩ resistor | 9.94 kΩ | 10 kΩ |
| 4.7 nF X7R ±10 % capacitor | 4.62–4.67 nF (10/10 measurements) | 5.00 nF before the fix |
| 100 nF capacitor | 103.0–105.7 nF | +3…+6 % |
| 47 µF electrolytic | 47.36 µF and 46.52 µF | ±1 % |
| Schottky diode | Vf 248–253 mV, anode and cathode correct in 3 orientations | — |
| 1N4749A 24 V Zener diode | diode, Vf 788–798 mV | — |
| S8550 (PNP) | hFE 288, Vbe 0.637 V | datasheet: 160–300 |
| BC547 (NPN) | hFE 281, Vbe 0.634 V | datasheet: 200–450 |
Both transistors have an hFE in line with the datasheet, and both measurements of the electrolytic are within ±1 %.
The capacitors did not work out straight away. The first results were 6 % too high (hence 5.00 nF for the 4.7 nF capacitor), and small capacitances showed up one time and not the next. The agent and I debugged it, and I will not go through every fix here. What counts is the result: the charging time is now measured by the firmware, the program loaded into the Mega itself, rather than by the computer over USB, and the error dropped to −1 %.
Two things to keep in mind. The tester runs on 5 V, so in a 24 V Zener diode it sees only an ordinary diode with a Vf of about 0.79 V and cannot measure the Zener voltage. The probe test is done only with an empty socket, because with a chip in the socket the chip’s diodes bridged the probes.
A ZIF-14 from another tester
Until then the tester had only a DIP-8 socket, for chips with eight pins. Eventually it is to get a ZIF-40. A ZIF (zero insertion force) socket is a clamping socket: the chip goes in without any force and a lever presses the contacts onto it. The ZIF-40 I ordered had not arrived yet, and I did not want to wait with testing 14-pin chips. So I desoldered the green ZIF-14 socket from a second cheap component tester and soldered it onto the shield in parallel with the DIP-8, in the place reserved for the future ZIF-40.

The photo also shows a row of seven 2N7000 transistors, the ground switches, and the blue probe resistors of the component tester. From this point on the tester checks 14-pin chips.
Two faults at once
After the ZIF-14 was soldered in, identifying an LM358 started to pass and fail alternately: one time yes, the next time no. That pattern pointed to an intermittent contact, not a bug in the program, so we searched on the board.

Two faults turned up. Transistor Q2 had no connection to ground at all, because the solder bridge was broken. At Q1 there was a cold joint, a connection that looks done but makes contact better one moment and worse the next. It is probably the same joint that “fixed itself” in part 1. I am not certain, but the thread of the fault that disappeared for no reason finally has a likely explanation. After the repair Q1 and Q2 passed 8 out of 8 measurements and pull the pin down to 59–64 mV.
During the same soldering session three ZIF-14 wires landed one Mega pin off. The program detected this by itself, and I asked: should I resolder, or will you change it in the code? The code change won, because the pin map is a single table in the firmware. There was also a mistake on the agent’s side, in the soldering instructions, which I caught myself, and since then every wire gets its own row in the table.
Two trials before the board
The next day I started with adapters. The first SMD chip, meaning one in a surface-mount package, was an NE5532D in an SO-8 package with the marking “N5532”. It sat in a clamp adapter plugged into the DIP-8 socket, and the program identified it correctly, as the LM358 / NE5532 family, in 1.44–2.38 s.

The first result was doubtful though, for a reason nobody had foreseen. An LM324N had been left in the ZIF-14 from the previous day, and the two sockets are wired in parallel. The tester showed it by itself: the attempt to power the LM324 ended in a cut-off at 2.975 V, because its supply pin sat on the same wire as the ground of the chip in the adapter. With the LM324 removed the result was the same.
The second adapter from my collection, labelled “1.8V”, looks like an ordinary socket but is not suitable for the tester. The chip in its clamp is connected through a level shifter, not directly.

Then came two trials. I wanted to check two more things on the prototype that are to go on the list of requirements for the board: measuring the supply current and a smoothly varied voltage.
Trial 1: current from the switches
The idea needed no soldering. The ground switch transistor has a small resistance, so the voltage drop across it tells how much current the chip draws. A known resistor placed in the socket between supply and ground served for calibration.
| Load | Current | Ground pin | Supply rail |
|---|---|---|---|
| none | 0 | 63.8 mV (fixed offset) | 5066–5068 mV |
| 1 kΩ | 4.95 mA | +9.6 mV | −40 mV |
| 470 Ω | 10.45 mA | +19.4 mV | −74 mV |
The result is “yes, but”. The ground side is linear (the 2N7000 has about 1.9 Ω), except that one step of the Mega’s converter is ~2.6 mA. That is enough for a short circuit, but not for CMOS chips, which draw microamps. The supply side gives a signal 4 times larger, but it is mixed with the sag of the 5 V from USB. The conclusion for the board: a separate sense resistor on the supply side and an amplifier, with a target of ~10 µA.
Twice the measurement “worked” although no current was flowing at all. The thin leads of the resistor did not grip in the socket’s springs, and once the resistor sat on pins 5–8 instead of 4–8. The calculated “5 mA current” was fiction. It was given away by the voltage on the pin that should have had 5 V but was “floating” at 1.2–1.5 V. Along the way a firmware bug came out: the “switch everything off” command left the supply rail charged to 4.98 V. After the fix 24 mV remains on it.
Trial 2: a smooth voltage and the Schmitt trigger
In part 2 the tester could not tell a Schmitt trigger (40106) from an ordinary inverter (4069), because at 0 and 5 V both behave the same. A Schmitt trigger is a gate with two thresholds: it switches at one voltage when the signal rises and at another when it falls. That difference is the hysteresis, and to see it the voltage has to change smoothly.
The Mega cannot output an intermediate voltage, but it can blink a pin quickly (that is PWM). A filter made of a 10 kΩ resistor and a 10 µF capacitor on a small breadboard smooths that blinking into a steady voltage, which goes through a 1 kΩ resistor to pin 1 of the socket. The tester raises it slowly from 0 to 5 V and back, which takes about 16 s, and records at what voltage, measured on the pin itself, the gate’s output switches.


The chip itself had its adventures too. I could not find the CD40106, because it was lying in my inventory without a box. The agent pointed out that it had been entered on the same day as the NE5532D, and that is how I found it. Then I put it in backwards. The protection cut the power at 1579 mV within milliseconds, and the agent spotted the mistake in the camera photo by the upside-down lettering. The chip survived: the test of all 6 gates passed.

| Chip | Rising threshold | Falling threshold | Hysteresis |
|---|---|---|---|
| CD40106BE (Schmitt) | 2.742 / 2.754 V | 2.046 / 2.046 V | 0.70 V |
| CD4071BE (ordinary gate) | 2.412 / 2.402 V | 2.387 / 2.382 V | 0.02 V (ramp step) |
The CD40106 switches up at 2.75 V and down at 2.05 V, so it has a hysteresis of 0.70 V. The ordinary CD4071 gate has a single threshold, 2.40 V. The difference is unambiguous. The two values in each table cell are two consecutive measurements of the same threshold. Along the way, powering through an input could be seen live: before the chip got its supply, the voltage from the filter “lifted” its other pins to 3.6–3.8 V.
This was a trial with a filter on a breadboard, not a new feature of the program. It does, however, confirm the method planned for the board, where a DAC will replace the filter.
A board built from the prototype’s mistakes
The prototype on a shield full of wires is not the final version. The goal is a custom printed circuit board. So as not to design it “just in case”, I had the agent write down what was missing at every discovery on the prototype. That is how a list of nine requirements, W1 to W9, came about, and each of them has the event that triggered it. A few examples, with W1 and W3 already carrying numbers from the trials:
| No. | What is needed | Where it came from |
|---|---|---|
| W1 | tell a Schmitt trigger from an ordinary gate (a voltage ramp from a DAC) | the CD4069 also matched as a 40106; trial 2 on the prototype confirmed the method: the CD40106 switches at 2.75 V going up and 2.05 V going down, while the CD4071 has a single threshold of 2.40 V |
| W3 | measuring the supply current of the chip under test | an LM324 powered through an input posed as an AND gate; trial 1 on the prototype: the ground switch measures linearly (about 1.9 Ω), but one step of the Mega’s converter is ~2.6 mA, so the board is to have a separate sense resistor on the supply side and an amplifier, target ~10 µA |
| W4 | a reliable ground switch | two cold joints on the prototype |
| W6 | test executed in firmware | USB delays; already done on the Mega: 9.53 → 1.18 s |
| W7 | Zener voltage and white LEDs (a 0–30 V socket) | a 24 V Zener seen only as a diode |
| W9 | an intermediate voltage, e.g. 2.5 V, on any pin | the TL072 does not work near ground and had to be tested “near the positive supply” |
For the processor I chose the AVR128DB64. It runs on 5 V and has about 54 I/O lines, so it will handle the ZIF-40, the switches and the probes without expanders. It has a 12-bit analogue-to-digital converter (the Mega has a 10-bit one), a DAC, meaning an output on which an intermediate voltage can be set, and built-in operational amplifiers. It comes in an SMD package, for surface mounting, but I have a hot air station, so that is no obstacle. Optionally the board will have room for an ESP32 with Wi-Fi, so that the tester can work without a computer. The AVR128DB64 has a feature called MVIO, which lets one of its ports run at a different voltage, so it will talk to the ESP32 directly.
The high voltage needed for Zener diodes and white LEDs will get a separate socket: 0–30 V with the current limited to a few mA. The 40 pins of the main socket stay at 5 V, because protecting 40 lines against 30 V would be expensive and risky.
All of this is a plan for now. The board is neither designed nor ordered.
What’s next
The adapters and both trials on the prototype are behind me. Next up are tests of the chips lying in my inventory. Only after that comes the board design.




Leave a comment