Build a DIY Component Tester: Transistors, Diodes, Capacitors, and MOSFETs on One Cheap Meter
Every maker shop accumulates a drawer of unlabeled, unknown, or salvaged components — pulled transistors, unmarked MOSFETs, capacitors with worn-off printing, diodes of uncertain polarity. This site already covers salvaging parts from e-waste; this project builds the tool that makes those salvaged parts actually usable again. A component tester built around an ATmega328 and a cheap DIY kit identifies part type, pinout, and key specs automatically — drop a part into the socket, press one button, and read the result on an LCD, instead of guessing or hunting down a datasheet for a chip with no visible markings.
What This Tester Actually Measures
ComponentWhat it reports Bipolar transistors (NPN/PNP)Type, pinout (base/collector/emitter identified automatically regardless of which socket holes you used), approximate hFE (gain), and base-emitter voltage MOSFETs (N-channel/P-channel)Type, pinout, and approximate gate threshold voltage Diodes and rectifiersForward voltage, polarity/pinout, and whether it detects as a standard diode, Zener, or Schottky based on the forward voltage measured LEDsForward voltage, polarity, and will typically light the LED briefly during the test so you can visually confirm color ResistorsResistance value, useful for a component with worn-off color bands or an unreadable SMD code CapacitorsCapacitance value, and on many kit versions, ESR (equivalent series resistance) — useful for identifying a capacitor that's drifted or degraded, since a good capacitor at rated capacitance can still have failed if ESR has risen substantially Thyristors and triacsBasic gate trigger identification on some tester firmware versions InductorsApproximate inductance value on many kit versionsHow It Works, Briefly
The tester's three (or sometimes four) ZIF socket pins can be driven and read in any combination by the ATmega328's firmware, which systematically applies voltage in different pin combinations and directions and measures the resulting currents and voltages. Because the firmware tries every reasonable combination automatically, you don't need to know a part's pinout before testing it — drop it in any orientation across three adjacent socket pins and the firmware works out what's actually connected where. This is the single biggest time-saver over a multimeter for identifying an unknown part: a multimeter can measure a diode's forward voltage once you already know which lead is which, but it can't tell you the pinout of an unmarked transistor without manual probing and reasoning.
Build and Assembly
- Most widely available kits (commonly sold as "GM328A" or similar transistor/component tester kits) ship as a bag of through-hole parts on a small PCB with the ATmega328 pre-flashed with tester firmware — verify this before ordering if you'd rather avoid a separate programming step.
- Solder the ZIF (zero insertion force) test socket first, since it's the largest through-hole component and benefits from having full access to the board before smaller parts are in the way.
- Solder the LCD module, tactile buttons, and any remaining passive components (resistors, capacitors) following the kit's silkscreen and included diagram.
- Install the 9V battery clip or DC barrel jack, depending on the kit's power option, and double-check polarity before connecting a battery for the first time — reversed polarity is the most common way to damage one of these kits on first power-up.
- Power on and confirm the LCD initializes and displays the tester's idle/ready screen.
Calibration
Most kits include a self-calibration routine that should be run once after assembly and periodically afterward: with the ZIF socket empty (or shorted, per your specific kit's instructions), enter the calibration menu and let the firmware measure its own internal reference resistances and capacitances. This compensates for the tolerance of the tester's own internal components and is what gives resistance, capacitance, and ESR readings their accuracy — skipping calibration still gets you correct part identification, but numeric values (especially ESR and capacitance) will drift from true values without it.
Using It
- Insert the unknown component across any three adjacent ZIF socket positions, in any orientation — for two-lead parts like diodes and resistors, any two adjacent pins work.
- Press the test button.
- Read the result: the display reports the detected component type, then values and pinout mapped to the specific socket positions you used, often with a small ASCII/graphic pinout diagram on kits with graphic LCDs.
- For components too large or oddly shaped for the ZIF socket (large electrolytic capacitors, power MOSFETs in TO-220 packages, inductors), most kits include or support test lead ports/alligator clip leads wired to the same three test channels.
Reading Common Results
Display showsMeaning "NPN" or "PNP" with a pinout diagram and hFE valueA working bipolar transistor — note the reported pinout matches your specific socket orientation, not necessarily the part's datasheet pin numbering Two diode symbols with no clear single-component matchOften indicates a component with internal protection diodes (some MOSFETs, ICs) confusing simple part-type detection — not necessarily a bad part "No, unknown, or damaged component"Either genuinely no connection was detected, the part is dead/open/shorted, or (less often) a part type outside what the firmware recognizes Capacitance reading with high ESR relative to a known-good reference of the same typeA likely-degraded electrolytic capacitor — common in salvaged power supply boards, and a leading cause of intermittent failures worth checking on any board being repairedHousing the Tester
A simple 3D-printed enclosure with a cutout for the LCD, ZIF socket lever, and buttons turns the bare board into something durable enough for regular bench use — see this site's guide to designing electronics enclosures for general design considerations around cutout tolerances and ventilation, though a component tester generates negligible heat and doesn't need the IP-rated concerns that guide focuses on.
Safety Notes
- Never test a component while it's still installed in a powered circuit — remove it first. Testing in-circuit risks both a wrong reading (other components on the board interfere) and back-feeding voltage into the tester from the circuit.
- Observe basic ESD precautions when handling static-sensitive parts (MOSFETs and CMOS logic especially) before they reach the tester — touch a grounded surface first, and store loose parts in anti-static bags or foam between uses.
- Double-check battery polarity before every battery change; reversed 9V battery clips are a common, easily avoidable way to damage the board.
- Don't test components rated well beyond the tester's low test voltages and currents expecting a full specification check — this tool identifies type, pinout, and approximate values; it isn't a substitute for a proper curve tracer when a part's full characteristics genuinely matter for a critical design.
This is one of the best return-on-investment builds in this whole site's project list: a few hours of assembly and a modest parts cost buys back all the time otherwise spent guessing at unmarked parts, hunting for datasheets, or throwing away perfectly good salvaged components because their identity was uncertain. Once it's built, it tends to live permanently within reach on the bench, right next to the multimeter.
Related Guides
- How to Salvage Electronic Components from E-Waste: Desoldering, Testing, and Reuse
- How to Use a Multimeter for Electronics: Every Function Explained
- Electronics: Building a Constant Current LED Driver
- Convert a Toaster Oven Into a PID-Controlled Reflow Oven for SMD Soldering
- Build a DIY Thermal Camera with ESP32 and MLX90640: Wiring, Calibration, and False-Color Display
- Build a Portable LiFePO4 Power Station: BMS, Pure Sine Inverter, and Solar Charging
- Electronics — Common ICs and Modules Quick Reference
- How to Engrave Glass, Slate, and Stone with a Laser Using Marking Compounds