4
\$\begingroup\$

I have been working on a home made IV tracer for diodes and transistors.

I noticed a slight curlicue in the low voltage and low current end of the plot for a transistor, and wondered what was going on.

This is the plot of the collector current and collector voltage for a 2N2222 transistor made with my setup:

enter image description here

You can see the "curlicue" down there at the lower left corner.

This is a closer view of the "curlicue":

enter image description here

I've been trying to figure out what is going on here.

This is the circuit I used to make the plots:

enter image description here There's an Arduino Nano off to the left connected to the analog and PWM signals. It uses oversampling to get better than the 10 bits of resolution of the Arduino ADC.

The best explanation I've been able to come up with is that at low collector voltages, some of the base current "goes the wrong way" out through the collector instead of the emitter. That raises the collector voltage (A3-VCollector) against the bias voltage (A2-VCollectorBias) resulting in a current flowing back through R4.

ICollector is calculated as \$\frac{VCollectorBias - VCollector}{R4} \$

Does that explanation seem right, or have I missed something?


Between those two charts, I changed R4 from 1k to 10k and made some software changes to get a little more resolution.


At a suggestion from Hearth, I simulated the circuit in LTspice.

Here's the simulated circuit:

enter image description here

This is the plot of the collector current against the collector voltage:

enter image description here

It does in fact have a negative tail, though not as extreme as in my circuit. The tail in the simulator is also straight rather than curved.

At any rate, the "tail" isn't a figment of the Nano's imagination.


I ran a trace of a 2N3904.

enter image description here

It also has a negative tail on the collector current, though much smaller than on the 2N2222.

\$\endgroup\$
9
  • \$\begingroup\$ Might it be oscillating? \$\endgroup\$ Dec 17, 2020 at 19:19
  • \$\begingroup\$ Have you run this in a simulator to see if you observe the same behavior? \$\endgroup\$
    – Hearth
    Dec 17, 2020 at 19:21
  • \$\begingroup\$ @Hearth: I haven't run it in a simulator. \$\endgroup\$
    – JRE
    Dec 17, 2020 at 19:26
  • \$\begingroup\$ @JRE I'm pretty sure you're right (confident enough to submit it as an answer anyway!) but I'd still suggest a quick LTspice simulation or something just to be sure! \$\endgroup\$
    – Hearth
    Dec 17, 2020 at 19:29
  • \$\begingroup\$ @Hearth: \$M_e + LT_{spice} \neq Q_{uick}\$ \$\endgroup\$
    – JRE
    Dec 17, 2020 at 19:31

4 Answers 4

5
\$\begingroup\$

That is what is expected even with the simplest model of a BJT. You can see it in this simulation

2n2222 simulation

If we zoom in in the VI chars

vi chars

we can see that the chars do not intersect at 0,0

intersection

The shape of the curve (excluding the Early bending) can be seen in these equations (Millman Halkias, Electronic Devices and Circuits,"Voltages as functions of currents", p. 250)

enter image description here

which lead to

enter image description here

or, in more modern notation

enter image description here

This is the plot of Ic/Ib vs Vce with Vth = 26 mV, alpha = 0.99, alphaR = 0.78. It's rotated by 90 degrees because we are plotting the inverse relationship

enter image description here

and if we zoom in near the origin we see

enter image description here

that is compatible with what Millman shows in his textbook

enter image description here

Note that the 6 mV values is Vth log (1/alpha_R).

\$\endgroup\$
7
  • \$\begingroup\$ Perfect. Thank you. This is the answer I needed. \$\endgroup\$
    – JRE
    Dec 18, 2020 at 6:52
  • \$\begingroup\$ I don't have that book. Do you know which commonly published characteristics of transistors relate to which parameters in the given equations? I find the extent and shape of the "tail" varies by the transistor type. The "tail" on the 2N3904 is much smaller than the "tail" on the 2N2222, for example. \$\endgroup\$
    – JRE
    Dec 18, 2020 at 6:59
  • \$\begingroup\$ Millman's model is maybe the simplest, but maybe the difference you see can be explained by the different alpha_R. You might also want to see how the intersection change with temperature. (By the way, did you share your project somewhere, being able to see that means it's a decent curve tracer). And finally, have you ever been on the Internet Archive? (just asking, Millman's books are worth a look - I believe what you need is in Electronic Devices, Sec. 9-5 "Detailed study of the currents in a transistor", p. 229) \$\endgroup\$ Dec 18, 2020 at 7:47
  • 2
    \$\begingroup\$ I share most of my personal projects. The IV Tracer is currently in two parts: GUI and Arduino. I have been describing the development process and progress in a series of blog posts. \$\endgroup\$
    – JRE
    Dec 18, 2020 at 13:43
  • 1
    \$\begingroup\$ I have moved all of the code for both the Arduino and the PC to one repository and given the whole thing a new name. \$\endgroup\$
    – JRE
    Jan 3, 2021 at 19:26
3
\$\begingroup\$

I'm reasonably certain your guess is correct. If the base voltage is higher than the collector voltage by a sufficient margin, I would expect to see the base-collector pn junction biased on and current flowing out of the collector. This seems to be happening when the collector voltage is below about 100 or 150 mV, which would imply (at such low currents) a reasonable base voltage of 650~700 mV, assuming it's all referenced to the emitter.

\$\endgroup\$
0
\$\begingroup\$

I think you are at the limits of the accuracy for the Arduino A/D converters. The resolution of the converters is about 5mV, or about 5\$\mu\$A through a 1k\$\Omega\$ resistor. The absolute accuracy of these converters is much worse.

To make this circuit work with an Arduino you should be using larger resistor values, and you need to very carefully calibrate all of the ADCs.

\$\endgroup\$
3
  • \$\begingroup\$ I am beyond the normal resolution of the Arduino ADC. I'm using oversampling to get more resolution and to reduce the noise as well as the jaggedness of the PWM signals. \$\endgroup\$
    – JRE
    Dec 17, 2020 at 20:10
  • \$\begingroup\$ Oversampling can help with random errors but it won't do anything for systemic errors, such as offset and nonlinearity in the ADCs. Yes, you can improve the resolution but you don't improve the accuracy. And the fact that you are oversampling would have been good information to put in the original question. \$\endgroup\$ Dec 17, 2020 at 20:22
  • \$\begingroup\$ Right. Noise and lack of resolution are the things I used oversampling for. If offsets and nonlinearity could cause the curlicue, then I'd like to know how. \$\endgroup\$
    – JRE
    Dec 17, 2020 at 20:54
0
\$\begingroup\$

The fact that you see it with 3904 is interesting. What do you see at these nodes if you look at it on a real scope?

Some shots in the dark:

  1. Is there AC component in there from the PWM's? That can create low level artifacts by being rectified somewhere, or via timings of the ADC. Maybe try to make a version of your circuit that filters the PWM more, just as a troubleshooting hack.

  2. does ADC pull any current? If so the two ends of each sense resistor have different impedance. I've had situations where a small RC on the inputs of ADC's made them better... real small like 3.3ohm/10nF ... this involved the sample/hold action of an ADC and there being a few inches of wire in the path. Not sure if either applies but just putting it out there.

\$\endgroup\$
3
  • \$\begingroup\$ At the low voltage and low current levels where the curlicues occur, the filtered PWM is at its cleanest. There's actually more than a few inches of wire involved, but that doesn't seem to bother anything. The measurements are all right at the Nano pins (all the resistors and the PWM filters are built into a sort of 3D structure right on the Nano.) \$\endgroup\$
    – JRE
    Dec 18, 2020 at 6:48
  • \$\begingroup\$ Looks like Sredni Vashtar answered it above! \$\endgroup\$
    – Pete W
    Dec 18, 2020 at 15:20
  • 1
    \$\begingroup\$ Yep. Looks like. I managed to get enough things right that my (actually quite crude) setup can detect a tiny little wrinkle that theory says will be there. \$\endgroup\$
    – JRE
    Dec 18, 2020 at 15:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.