Need help with baby's first curve tracer

Hey all,

I'm cobbling together a type of curve tracer to test small (~10mA) JFET constant current sources, but I'm seeing what I think is an artifact with the shunt signal amplifier.

The basic idea is to create a voltage supply which varies over a small window (e.g. 10V +/- 0.5V at 1kHz), apply the voltage to the CCS followed by a shunt resistor, then look at the shunt resistor's voltage signal on a scope to see how well the CCS is performing. My initial work on this is detailed here: https://www.diyaudio.com/forums/sol...ed-data-j105-nchannel-jfet-3.html#post6401985

This worked, but the shunt signal was too small, so I added an amplifier to the shunt signal.

The problem is, I am seeing what I think is an artifact, and I'm not sure where it is coming from, so I thought I would turn to the forum for help.

First, here's the sawtooth-like generator circuit:
 

Attachments

  • Screenshot_2020-11-07_18-19-20.png
    Screenshot_2020-11-07_18-19-20.png
    156.7 KB · Views: 176
  • sawed-off.pdf
    sawed-off.pdf
    35.6 KB · Views: 57
Last edited:
I then added an amplifier to the shunt signal:

Initially I used 101x gain, but when I noticed the problem, I also tried lowering the gain to about 10x (bodged a 10k in parallel with the 100k), but that wasn't a solution.

To clear up any possibility that this was a problem with the JFET CCS, I replaced that with a simple resistor.

I tried a few values of shunt resistors and found the problem only exists when the shunt / signal is below a certain level.

First, here is a 100k resistor as a stand-in for the CCS, with a 1k shunt, tested with about 1.1V +/- 0.5V, and with 22.7V +/- 0.5V (ignore the inaccurate 600mV p-p readout).

No problems so far.

Edit: note these shots are with the feedback resistor bodge for a gain of 10x, not 101x.
 

Attachments

  • Screenshot_2020-11-07_18-26-07.png
    Screenshot_2020-11-07_18-26-07.png
    78.6 KB · Views: 181
  • NewFile14.png
    NewFile14.png
    3.6 KB · Views: 178
  • NewFile15.png
    NewFile15.png
    3.5 KB · Views: 181
Now, here is the same setup, but with the shunt changed from 1k to 100R.

Same test signals: 1.1V +/- 0.5V, and 22.7V +/- 0.5V.

There is a strange bump at the end of each ramp.
 

Attachments

  • IMG_5913.jpg
    IMG_5913.jpg
    327.8 KB · Views: 82
  • NewFile1.png
    NewFile1.png
    3 KB · Views: 79
  • NewFile0.png
    NewFile0.png
    3.2 KB · Views: 174
Can you point to the artifact that you're seeing? What's the significance of the blue/cyan trace on the scope?

BTW, the humble LM555 timer IC can make something that resembles a sawtooth as well. If you set the IC up to be an astable multivibrator, you'll find a "sawtooth" on pin 6 (threshold).

Tom
 
Thanks tomchr, oops, actually I thought the blue trace was the input signal to the DUT, but actually it was the DC offset input to the sum circuit, so it was just 22.7V without the +/- 0.5V added.

Here are two new scope shots, where the blue is actually the DUT input signal, both DC and AC coupled.
 

Attachments

  • NewFile5.png
    NewFile5.png
    3.7 KB · Views: 63
  • NewFile4.png
    NewFile4.png
    3 KB · Views: 70
tomchr, this schematic should be what I'm actually testing right now.

There was a mistake in what I posed earlier, I showed Vsaw going directly into the DUT, which is incorrect. Vsaw goes to the summing amp, and the output of the summing amp goes into the DUT.
 

Attachments

Last edited:
Here's a different look: shunts of 100R, 150R, 220R, 330R, 470R, 680R, 1k, but all with the same vertical scale, and with the peak of the bump at the same division.

edit: I wonder if this is inductive in nature?
 

Attachments

  • NewFile23.png
    NewFile23.png
    3.2 KB · Views: 72
  • NewFile22.png
    NewFile22.png
    3.4 KB · Views: 64
  • NewFile21.png
    NewFile21.png
    3.5 KB · Views: 103
  • NewFile20.png
    NewFile20.png
    3.6 KB · Views: 105
  • NewFile19.png
    NewFile19.png
    3.4 KB · Views: 103
  • NewFile18.png
    NewFile18.png
    3.2 KB · Views: 104
  • NewFile17.png
    NewFile17.png
    3.1 KB · Views: 101
So this is interesting. Here are shunts of 100R, 47R, 10R, 4.7R, 1R and "0R" (a zero-ohm resistor, actually about 25mR).

So this is unrelated to the signal on the shunt. Perhaps this is just a sloppy ground?
 

Attachments

  • NewFile29.png
    NewFile29.png
    3.1 KB · Views: 56
  • NewFile28.png
    NewFile28.png
    3.1 KB · Views: 58
  • NewFile27.png
    NewFile27.png
    3.1 KB · Views: 61
  • NewFile26.png
    NewFile26.png
    3 KB · Views: 64
  • NewFile25.png
    NewFile25.png
    3 KB · Views: 56
  • NewFile24.png
    NewFile24.png
    3.1 KB · Views: 65
I think the issue is that your summing stage is not a summing stage.

Have a look here: https://www.electronics-tutorials.ws/opamp/opamp_4.html

You'll note that if all the resistors in the summing amp are equal, you'll get -(V1+V2+V3+...). You'll need an inverting amp stage to get rid of the minus sign (assuming you care about it or can't get rid of it elsewhere in your circuit, that is. You could always just invert the scope input. Personally, I'd just add the inverting gain stage.

I would probably use more modern opamps. OPA2134, NE5532, TL072, etc. would probably work well. Or something even newer. Some of the older opamps can be pretty quirky.

Tom
 
Last edited:
tomchr, actually that's the same page I started from, ha! if you scroll down further, you'll see the "non-inverting" version of the circuit which I used.

edit: here's the ltspice file from earlier in the design process.
 

Attachments

  • Screenshot_2020-11-07_20-18-51.png
    Screenshot_2020-11-07_20-18-51.png
    74.2 KB · Views: 63
  • Screenshot_2020-11-07_20-27-18.png
    Screenshot_2020-11-07_20-27-18.png
    57.4 KB · Views: 66
  • triangle.asc
    triangle.asc
    6.1 KB · Views: 55
Last edited:
welp, I soldered in a star ground, then somehow blew up one of the op amps, replaced all of the op amps, the circuit still works, but the amplified output is noisier. sigh.

I think I'll try the suggestion of switching to a 555 for the sawtooth.
 

Attachments

  • NewFile30.png
    NewFile30.png
    3.4 KB · Views: 67
Your issue is one of fundamental functionality, not grounding, capacitor dielectric, etc.

Your "DUT" is just a voltage divider right now, so the circuit should work.

I would test it in blocks. Measure the two inputs to the summing block. Verify that you get the correct output. Measure the "DUT" voltage (pin 1 of the shunt, for example).

I bet one of your opamp stages is cranky. Possibly because you're violating its input voltage specs. The old opamps are not all rail-to-rail I/O.

Tom
 
Your LTSpice sim spec'd LM324, while the earlier tests showed using an LM358. The latter has an unusual, asymmetrical-drive output stage. Plenty of opamps from that era have trouble driving loads below about 2k ohms. Its internal bias stages lose their minds when too much current is asked of the output.

If I understand correctly what you're trying to do, how about flipping the sawtooth (abrupt rise, then gradual ramp down), feeding it to the inverting input (of the DUT driver amp, wired for gain of -1)), then bias the '+' input with the variable voltage from the 12 position switch. Then you could even skip the selector switch buffer amp! It would also eliminate the need for any arithmetic to predict the drive waveform.

But you probably do need a more *modern* opamp. Probably an output buffer, too.

Also, the J105 is only rated 25V -- a high-current spike is probably going to occur Somewhere within a 0 to 27V range.😉

Cheers