Fork me on GitHub

Project Notes

#083 Transistor Tester

Use an Arduino to test NPN and PNP BJTs.

Here’s a quick video of the circuit in action:

TransistorTester demo

Notes

A bipolar junction transistor (BJT) can be considered a back-to-back pair of diodes.

  • NPN have the common anode on the base
  • PNP have the common cathode on the base

Given this arrangement, one technique for testing BJTs is to measure the forward voltage between Base-Emitter and Base-Collector.

  • if positive forward voltage is found from Base to Emitter and Base to Collector, we assume a properly functioning NPN
  • if positive forward voltage is found from Emitter to Base and Collector to Base, we assume a properly functioning PNP
  • the forward voltage will be around 0.7V for silicon transistors

The Arduino sketch periodically probes the transistor test pad. This invovles checking the various possible forward voltage combinations and recording the results. From this it concludes:

  • if a functioning transistor is currently on the test pad
  • whether the transistor is NPN or PNP
  • the forward voltage in mV

Once we have that information, we just need a way to display it. In the first version of the sketch, it was simply written to the serial out. The current version uses a 16x2 LCD to display the results.

The “test pad” is the three sockets into which a transistor is plugged for testing. The sketch currently requires that the transistor base be plugged into the designated socket. It does not matter which way around the emitter and collector pins are plugged in.

Some limitations and things to improve:

  • it doesn’t do a very rigorous check of the transistor at present
  • it could test regardless of pin arrangement and determine B-C-E configuration
  • it could/should report Vce(sat) rather than the forward voltage
  • it would be nice if it also measured β/hFE

Construction

The Breadboard

The Schematic

The Build

Credits and References

About LEAP#83 ArduinoBJT
Project Source on GitHub Return to the LEAP Catalog

LEAP is just my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know (or send a PR!). See the individual projects for credits where due.

For a while I have also included various scale modelling projects here too, but I've now split those off into a new repository. Check out LittleModelArt if you are looking for the modelling projects!

Project Gallery Notebook LittleCodingKata LittleModelArt More on my blog