You are on page 1of 5

A Low Cost Automatic Curve Tracer

A PC, a sound card and software combine to make a powerful I-V


curve tracer.
Dr George R. Steber, WB9LVI

C
urve tracing of electronic compo-
nents is a nifty way to gain more
information about how they
operate. By curve tracing, we
mean making a graph of current versus
voltage (an I-V curve) to display the basic
characteristic of the electronic device. The
I-V curves of diodes, Zener diodes, LEDs,
transistors and other devices are helpful in
understanding their nonlinear operation.
Also, I-V curves are often used to obtain
practical device data such as the forward
voltage of a red LED operating at 15 mA or
the reverse breakdown voltage of a 1N753A
Zener diode at a current of 20 mA. But, alas,
curve tracing seems to be a lost art and many The PC curve tracer breadboard setup.
experimenters rely only on curves supplied
by the device manufacturer.

So What if We Can’t Find the


Curves?
Unfortunately, manufacturers’ curves are
not always handy. Indeed, the I-V curves of
many devices may not be documented at all,
like those diodes you picked up at the local
hamfest. Of course, there are commercial
curve tracers that will do the job but they are
outside the realm of most experimenters. In
this article I will describe an economical way Figure 1 — Simple dc curve tracer setup (A) and I-V plot example (B).
of obtaining the I-V curves of two and three
terminal devices using a PC, a simple circuit,
a Windows compatible sound card and a bit implemented without modifying the sound Pro, a 500 MHz Pentium III, and a 1.1 GHz
of software. card or even opening the PC case. AMD Athlon processor running Windows
To my knowledge, no one has previously For this project I have designed a new 98SE and Windows XP with a Sound Blaster
used the sound card inputs of the PC for circuit that is much simpler than the one (SB) Live!, Value Edition sound card.
curve tracing without resorting to fancy mod- described in that article, and I also wrote If you have a Pentium or AMD PC with a
ulation schemes. There is good reason for new software to make it easier to use. In this Windows compatible full-duplex sound card,
this, because most sound card inputs are ac article I will cover how to build your own you probably have the basis for a very good
coupled. That is, there is a capacitor in series version of this new curve tracer, dubbed curve tracer. All you need to do is build the
with each input that effectively removes the Curve Tracer II, and how to get it up and run- simple circuit described, connect it to your
dc value of the signal. When tracing a non- ning. More in-depth technical details about computer sound card and run the program.
linear device, like a diode, the actual dc value this project are covered in a Jul/Aug QEX You will be able to obtain accurate plots
must be used or accuracy will suffer. A novel article.2 It’s a project that should appeal to of the I-V characteristics of many devices,
and completely new method that retains the almost anyone involved in electronics. including resistors, diodes, Zener diodes,
dc value when using a sound card was devel- This project requires a PC running LEDs and transistors. Data is captured via
oped by the author and disclosed in a January Windows. You can use one of the newer the sound card stereo input, processed and
2004 Circuit Cellar article.1 One outstand- 3 GHz PCs or dust off your old 200 MHz PC. plotted on the screen. The circuitry is very
ing feature of the procedure is that it can be Although there are no guarantees, of course, low cost (less than $2) and uses readily
that this project will work with your system, available parts. You can build the circuit on
1Notes appear on page 36. it has been tested with a 200 MHz Pentium a solderless breadboard as I did, or design
From July 2006 QST © ARRL
a circuit board for it. In any case you will oscilloscope with x-y plotting capability. for convenience; any other kinds of jacks
only need a good digital voltmeter (DVM) You need an ac voltage source, an isolation could be used. Sound cards typically have a
for calibration purposes. To get started it transformer, a few resistors and, of course, 3.5 mm stereo jack for input and output so
will be helpful to review the fundamentals the oscilloscope. Details of this method are you will need a cable, preferably shielded, to
of curve tracing. covered in the QEX article. convert to RCA. Actually, you will need two
While the ac curve tracing approach is stereo cables (one for input signals and one
Basic DC Curve Tracing straightforward, there are some things to for output signals) with the 3.5 mm stereo
Obtaining an I-V curve is simple in prin- consider. In addition to building the circuit, plug on one end and RCA plugs on the other
ciple. Refer to Figure 1 to see an example of a one needs to have access to an oscilloscope, end. Such cables are commonly found at your
setup for obtaining I-V data for a device under know how to use it and calibrate it properly. local electronics or audio-video store.
test (DUT). An adjustable dc power supply, Another consideration is saving and printing The interface circuit schematic is shown
ammeter, voltmeter and current limiting resis- the curves for analysis or comparison. A PC in Figure 2. A few general comments are
tor R are required. In this case only a positive can be of considerable help in these areas. in order. First make sure to use LM358 op-
voltage is shown but both polarities are often So now let’s consider how we can use a PC amps. Substitutes like the TL082 or TL272
used for tracing. Adjust the supply voltage and a sound card for curve tracing. will not work well here. Secondly, use a
while monitoring the meters and write down good, well-regulated dual power supply of
the meter readings as a table of I and V values. Sound Card Interface Circuit ±12 V with at least 100 mA capability. The
From the table, plot data points to obtain a The lead photo shows my breadboard DUT may require a pulsed current of 60 mA
graph, like the one shown in Figure 1B. While setup for interfacing to the PC sound card. or more and the supply voltage should not
this works well, it has several drawbacks. One Only a few components are required. In this droop during this time.
has to manually adjust the voltage at reason- instance, I am using a solderless breadboard, The interface uses one sound card out-
able intervals, read and write down the data, as it is an easy way to get started. Designing a put (either left or right channel) and two
and finally plot it. And you have to switch circuit board may be a better option for those sound card inputs, the left and right chan-
power leads if you want to plot negative volt- interested in a long term, less fragile system. nels. Although the schematic shows the
ages. If more than a few devices need charac- Switch S1, the power supply and connecting inputs separately for clarity, they are in fact
terization, an automatic method is preferable. cables are not shown. A Zener, 1N753A, is combined into a single stereo jack. The line
Clearly, if you have a bag of diodes, LEDs or shown as the DUT located below the 100 Ω output will provide a special sine wave as
Zeners that you just bought at a hamfest and resistor used as Rm. Observe the devices on described later. Resistor R1 provides a ground
want to test them, this is not the way to do it. the right side of the breadboard; the LEDs reference for the sound card line output. U1A
There are other ways to characterize your and diodes. They’re not part of the circuit and and U1B form a dc power amplifier to boost
devices such as using an ac curve tracer. are just sitting there patiently waiting their the line output and provide more current
Basically you apply an ac voltage to the turn to be traced. Note that RCA type connec- capability. This power amp does not provide
device under test (DUT) and plot its current tors are used on my breadboard for the sound equal current source and sink capability since
versus voltage on a two-channel dc-coupled card inputs and output, but this was only the LM358 is unbalanced in this respect.

Figure 2 — Curve tracer circuit and the interface to the PC sound card. All resistors are 1⁄4 W, 5%.
DUT — Device under test; see text. R2 — 2.2 kΩ resistor. Rm — Current measurement resistor;
C1 — 0.01 µF, 50 V ceramic capacitor. R4, R5 — 47 Ω resistor. see text.
R1, R3, R9, R11 — 10 kΩ resistor. R6, R7 — 100 kΩ resistor. U1, U2 — LM358 dual op-amp.
R8, R10 — 910 Ω resistor.
From July 2006 QST © ARRL
Typically an LM358 op-amp can source the current through the device and the volt- the bill nicely and probably many others
40 mA and sink 20 mA. Since we are using age across it. Referring to Figure 2, the short- will too. Since I cannot test them all, I will
two op-amps in our power amp, we should be ened sine wave is generated in the computer restrict my attention to this one. Referring to
able to double those figures. My breadboard and is output to the line output of the sound Figure 2, we see that A1 is the line output
circuit actually produces less, sourcing only card amplifier A1 when the START button amplifier, and A2 and A3 are the right and
up to 65 mA and sinking up to 32 mA. on the computer screen is clicked. The sine left channel line inputs of the sound card.
Nonetheless, this is a stable, overload wave is boosted by the dc power amplifier The mixer control in your Windows software
protected circuit with little dc offset, which and presented to the top of Rm via pin 2 of J1. controls the gains of these amps. The level
is why I used it. Observe that in the case of This sine wave produces a current in the DUT of the line output signal is controlled in the
diodes or LEDs, one can always orient the and a voltage across it, just as in the simple PLAY section of the mixer via the WAVE and
DUT so that current is sourced to the DUT, dc curve tracer discussed earlier. The voltage SPKR sliders. To control the amplitude of the
if desired. Note that resistor R2 controls the at the top of Rm is sent to the right channel of sine wave output, just adjust the sliders.
gain of the power amp. If you need to increase the sound card and the voltage at the bottom The gain of the line input amps A2 and A3
the gain, decrease the value of R2. of Rm is sent to the left channel. Knowing are controlled in the RECORD section of the
U2B is a simple step generator provid- the voltage across Rm enables calculation of mixer by the LINE slider. They will saturate if
ing a slow step voltage, at about 1⁄2 the posi- the current via Ohm’s Law in the computer. the input voltage is too high, regardless of the
tive supply voltage, at test point TP1 when Notice that the voltage at the bottom of Rm RECORD setting in the mixer. On the SB this
S1 closes. Use a single action momentary is also the voltage across the DUT, which is occurs at 820 mV. Fortunately this is easy to
switch for S1. Don’t use a slide switch. sent to the left sound card channel. detect, as the captured signal will flattop. At
Jumper block J1 is used to select the step or If the sound card inputs were dc coupled, saturation, the linear gain of the amplifier is
sine wave signal for the sound card. The step this would be the end of the story. But most lost, so we may also see a fictitious current
voltage is only used once, to calibrate the sound card inputs are ac coupled by means of bump in the DUT current trace at the extreme
system. Note that there is also a test point, large capacitors, which allow the frequency voltage limits. A real time oscilloscope func-
TP2, near pin 1 of J1. With no signal applied response to go down to very low frequencies, tion is provided in the software to help moni-
to the power amp, the voltage at TP2 should typically 20 Hz. See the sound card block tor for this condition. So, if you see a current
be less than 5 mV dc. This will avoid having diagram, specifically line input amps A2 bump in the I-V trace when there is no DUT
a dc voltage applied to the sound card inputs and A3, as shown in Figure 2, as an example in place, it is likely caused by an amplifier
and causing an error. In my circuit, the volt- of input coupling. Because of these capaci- saturating. Just back off a little with the PLAY
age at TP2 is around 3 mV. tors the voltage tends to decay in a specific output signal or just ignore it.
A current measuring resistor, Rm, typi- manner. Because they are capacitors, they A note is in order on earlier Sound Blaster
cally 100 to 1000 Ω, is connected in series tend to look like a short circuit to the initial sound cards such as the SB16 and AWE 32
with the DUT. The exact value can be chosen applied voltages. Knowing these characteris- since there are so many of these still around.
to suit your requirements. R8 and R9 form tics, we can model the input on the computer Unfortunately they do not provide true full
an attenuator to reduce the voltage to some- and build an inverse model that will reverse duplex operation and are noisy. The same may
thing the sound card line input right channel these effects. Details of how this is done are be said of SB compatible cards, so be wary.
can accept without overloading, typically explained in more detail in the QEX article My advice is not to use any of these cards.
around 1 V. (My SB Live begins clipping at and involves circuit theory and complex
0.82 V.) The voltage across the DUT is buff- variables. Fortunately we don’t need to know Curve Tracer Software Installation
ered by U2A, similarly attenuated and fed these details to build a fine curve tracer. and Operation
to the left channel. The current through the We need to calibrate the software model The Curve Tracer software is available
DUT is the difference between the right and so that it exactly reverses the effects of the ac on the ARRL web site and is zipped for fast
left channel voltages, divided by Rm. So we coupling. For this purpose we use a specific downloading.3 Unzip it to a new folder and
need to know the value of Rm accurately, say test input, namely a step voltage and the cir- you are ready to go. Just run the executable
within 1%. Given the value of Rm, the soft- cuitry associated with U2B. With the DUT (exe) program. It was tested with Windows
ware calculates the current in the DUT. removed and the jumper on J1 set between 98 and XP. When you run the software you
The circuit is potentially harmful to some pins 2 and 3, we start a software capture. may get a message like “Required DLL file
devices since, in normal operation, the sine Shortly after the “start” we initiate a step MSVBVM60.DLL was not found.” This
wave sweeps through both positive and nega- voltage by pressing S1. Holding S1 closed, is a Visual Basic run time file and is on
tive voltages up to 10 V. To restrict the voltage the step voltage amplitude is also measured many systems. If not found, you will need
sweep to only positive or negative excursions, with a digital voltmeter at TP1. The program to obtain it and install it on your system. It
a diode can be placed appropriately across captures the step voltage and is now ready is available free from Microsoft and other
the DUT. The sine wave may flattop as more for calibration of the software model, given sites on the Internet. It is usually avail-
current is drawn from power amplifier by some input from you. More specific details able as Visual Basic 6.0 SP5: Run-Time
the DUT. This is normally not a problem. on how to do this are given later. The cali- Redistribution Pack (VBRun60sp5.exe) and
Increasing Rm may help reduce this effect. bration is then saved and used for all further is a self-extracting file. Download takes
This circuit can easily be modified to handle curve tracer operations. The calibration about 6 minutes at 28.8 kbps.
higher voltages and currents. It is only a start- values have been found to hold up well over If you get the message “Component
ing point. A large number of devices can be many months without drift, but can always ‘COMDLG32.OCX’ or one of its depen-
curve traced with this circuit as it stands. be redone when needed. dencies is not correctly registered: a file
is missing or invalid.” when you try to run
PC Curve Tracer Operation Sound Card Considerations the program, you will need to register it on
Basically the curve tracer works by A low distortion, low noise, full duplex your system. This is also available free from
applying a test signal, a few cycles of a sound card is desirable. The economical Microsoft and other sites on the Internet.
240 Hz sine wave, to the DUT and measuring Sound Blaster Live, Value Edition (SB) fills More details are included with the software.
From July 2006 QST © ARRL
Figure 3 — The main window of the curve tracer program Figure 4 — The main window of the curve tracer program
showing a Zener diode plot. showing the response to a step voltage input.

If you just want to experiment with the Windows needs to be checked as you may to begin. Change the values shown in the
Curve Tracer program, go ahead as it does have changed its settings. When you start the CALIBRATE box as needed. All calibration is
not modify the registry or install any other program, a little notice comes on the screen done on the originally captured step voltage.
material on your computer. You can remove to remind you to do this. Basically you want It does not need to be recaptured each time.
it by just deleting the entire folder where it to set the OUTPUT LEVEL, INPUT GAIN and Use the left cursor (left mouse button) to
is located. STEREO BALANCE. The details on how to do measure the data on the left (L) and (R – L)
Figure 3 shows a screen shot of the this will obviously vary from system to sys- channels as needed.
Curve Tracer II. In the middle of the screen tem. Here is how it’s done with the SB. Adjust the CHANNEL BALANCE value
is the oscilloscope display. It functions like In the mixer PLAY section, enable WAVE until the (R – L) channel is close to zero.
a real oscilloscope and has controls for dual and SPKR, set the sliders to max and mute This is essentially the voltage across Rm,
trace and X-Y display as well as sensitiv- all others (including LINE to avoid audio which should be zero since the current in it is
ity settings on the left side. The X-Y mode feedback). In the RECORD section, enable zero because the DUT is not present.
is essentially the I-V mode with current LINE, set it to maximum and mute all others. Adjust the COMPENSATION value until
the vertical axis and voltage the horizon- Set the STEREO BALANCE to center for all there is no droop or rise of the step volt-
tal. The origin is at the center of the screen. controls. These settings are important. For age of the L channel. After its initial rise
This screen shot shows the I-V display of example, if you forget to mute LINE in the the step should flatten out to be a straight
a 1N753A Zener diode. It is rated by the PLAY section there will be errors. horizontal line across the window of the
manufacturer at 6.2 V at 20 mA. I measured You only need to perform the calibra- scope. If it is over corrected the line will rise,
6.19 V at 20.7 mA with my Zener. tion once, since parameters are saved in file while if under corrected it will decline. See
Below the scope screen is the cursor read- CTinit upon exit. Follow these steps closely Figure 4 for an example of over, under and
out, which functions with the on-screen cursor so good accuracy can be achieved. proper compensation. Make corrections in
and is controlled by your left mouse button. First, remove the DUT. Next, set the very small amounts. Use the cursor to verify
It works in both dual and X-Y mode. On the jumper J1 on the circuit so that the step volt- it is straight by moving it across the wave-
right side are the START button, STOP button age is applied to Rm. Run the program. Click form while looking at the readout.
and TRIGRDY LED. The START button initi- START and wait for the TRIGRDY LED to The volts per bit calibration is done on
ates a capture, which automatically stops after change from green to red. Now create the the L channel of the sound card. Use the
1 to 2 seconds while processing the data and step voltage by closing switch S1 on the left cursor and measure the voltage of the
displaying it on the screen. In case something circuit. Upon capture of the step voltage L channel. Adjust this value until the cursor
is wrong, such as forgetting to turn on the data, the TRIGRDY LED will revert to green. value is close to the value you measured with
circuit power supply, the STOP button may With S1 still closed, measure the step volt- the voltmeter earlier. Each time you click the
be used to stop the capture. Below the STOP age at TP1 with a good voltmeter, preferably APPLY button in the CALIBRATION box, these
button are four temporary memories for sav- a digital type, and write it down. View the values are applied to the captured step data.
ing and comparing data. Additional features data captured by the program using the left You will immediately see the results on the
include a second cursor (right mouse button) cursor in dual mode. You should see a large screen. Repeat these steps until the best cali-
for time measurement, provisions for printer step voltage on L channel (green) and small bration is achieved.
output, screen capture and file saving for use voltage on the right minus left (R – L) chan-
by Microsoft Excel or other programs. nel (blue). See Figure 4 for an example. The Other Calibration Box Values
data should start out clean without much The TRIGGER LEVEL controls the volt-
System Setup and Calibration noise. If there is a lot of noise at the start of age level at which the beginning of the input
First make sure the circuit is powered and capture (probably due to S1 bounce), repeat signal is captured. If you get false captures,
connected to the sound card line inputs as the capture until you get clean data. you can increase this value. If the value is too
shown in Figure 2. The mixer that came with The captured data is used to calibrate the high, you will miss the leading edge of the
your sound card or the one that came with program. Click on the CALIBRATE button captured waveform. If it is too low, you will
From July 2006 QST © ARRL
components that I have traced are included
in the zipped file package mentioned earlier.
You can use the program to read them and
see what a trace looks like without having to
build the circuit. The QEX article gives other
examples, including how to curve trace a
BJT transistor, an FET, a lambda diode and
others. You can also observe negative resis-
tance in some regions of the devices.
My PC curve tracer was compared to
an ac curve tracer built using my Tektronix
TDS360 Digital Real Time Oscilloscope and
the results were in good agreement. With
any luck, you may achieve similar results. In
any case, I hope I haven’t thrown too many
curves your way!
Notes
1G. Steber, “Tracing Voltage and Current,” Circuit
Figure 5 — The main window of the curve tracer program
Cellar, Jan 2004.
showing reference diode and LED traces. 2G. Steber, “I-V Curve Tracing with a PC,” QEX
Jul/Aug 2006.
3You can download the software associ-
ated with this article from the ARRLWeb at
www.arrl.org/qexfiles/. Look for 7x06Steber.
get false triggers due to noise. sure all processes are shut down. zip.
The reason for the INVERT INPUT box is Curve tracing various components is
that some sound cards invert the signal. The George R. Steber, PhD, is Emeritus Professor of
interesting and instructive. Resistors, of
Electrical Engineering and Computer Science at
SB Live inverts the data, so this box needs to course, plot as straight lines. Their value can the University of Wisconsin-Milwaukee. George,
be checked to correct the input polarity. To be checked by choosing a point on the line WB9LVI, has an Advanced class license and
determine if your sound card inverts the data, with the cursor (yielding the voltage and cur- is a Life Member of ARRL and the IEEE.
look at the step waveform of the L channel. rent at a given point) and using Ohm’s Law. Dr Steber has written several articles for QST,
It should start out positive for a positive input Diodes, Zeners, and LEDs show plots simi- the most recent being “A Low Cost Automatic
such as provided by the hardware circuit. If lar to Figure 3. Capacitors and inductors do Impedance Bridge” in the October 2005 issue.
not, you need to check the box to invert the not plot well as there are not enough cycles He has industrial experience as a company
data. in the test sine wave to reach steady state. officer, consultant and product designer, with
Enter the value of the current measuring As one last example, Figure 5 shows what 18 patents issued. In his spare time he enjoys
resistor in ohms in the Rm box. The cursor racquetball, reading, editing video, astronomy
you can expect when you trace an ordinary
and playing classical, Broadway and big band
readout will display device current based on silicon diode and red and green LEDs. They favorites with his trumpet in a local band. You
this value using Ohm’s law. clearly have different I-V curves; not what may reach him at 9957 N River Rd, Mequon, WI
Here are values for my SB Live many would expect. This also illustrates the 53092 or at steber@execpc.com with “Curve
card. C H A N N E L B A L A N C E : 0.9551; use of the reference memories to display Tracer” in the subject line. Please send your
COMPENSATION : +10; VOLTS PER BIT : and compare results. Files of some other message in text mode.
0.00033982; TRIGGER LEVEL: 200; Rm: 98.8
and INVERT: Box checked.

Obtaining I-V Traces


It is easy to curve trace a component.
Make sure the hardware circuit is connected
to the sound card, J1 connected to sine, the
NEW PRODUCTS
program calibrated, and the DUT connected. SOLDER-FREE PL-259 COAX CABLE SHIELD CONNECTION
So you know what to expect, use a known
The K4AVU Coax Crimper offers an alter- Coax Crimper is said to work with nearly all
resistor, diode or Zener as your first DUT. To
native to soldering the shield connections on varieties of 1⁄2-inch diameter coax cables
curve trace it, follow these steps. standard PL-259 coaxial cable connectors. (RG-8 size), and also with standard UG-175
Click the START button. The green The Coax Crimper fits around the part of the and UG-176 reducers for smaller diameter
TRIGRDY LED will not turn red as the sine connector where the solder holes for the coax cable types such as RG-58, RG-59 and
wave generated is only a few cycles long. shield are located RG-8X. Price: $29.
After 1 to 2 seconds the data will be captured and crimps the body For more informa-
and processed, and will appear on screen. You of the connector tion or to order,
have now curve traced your first component! firmly in place. contact Paul Marsha,
If for some reason, the trigger did not occur, Installation is com- K 4 AV U , 2 0 0
the TRIGRDY LED will turn red. A manual pleted by soldering Garden Trail Lane,
the center pin Lexington, SC
reset with the STOP button should restore
connection and 2 9 0 7 2 ; k 4 av u @
operation. Normally this is not required twisting on the con- yahoo.com; www.
unless there is something wrong with your nector’s coupling hamstation.com/
setup. You cannot exit the program unless the ring. The K4AVU coaxcrimper2.htm.
TRIGRDY LED is green, a precaution to make

From July 2006 QST © ARRL

You might also like