I'm trying to make a voltage controlled amplifier. I only need a gain of about 11 max. So I thought I would use an opto as a variable resistor on an inverting amplifier. I went with the H11F3M
formatting link
I built up the Automatic Gain Control circuit in the datasheet. I used a 50k resistor as my feedback resistor.
When I fired it up, my output looked kinda distorted. I swapped out the opto with a regular resistor and it cleaned up.
Any idea why my output looks like that? Can I not use the opto this way?
I tried a bunch of different opamps, but the scope shot is from an LF411 with +/- 5V rails. Scope shots are on the link below.
FET couplers work as controllable resistors only for very small voltages across the FET, plus minus very few tens if millivolts. After that it leaves the ohmic region and distorts. Figure 2 shows it, past +/-50mV it all flattens out.
You might be better off with an LDR and a light source. Unless it's for a product in a RoHS country, then no dice because they contain Cadmium and some armchair bureaucrats outlawed that.
Way too much javascript and tracking crudware on that site.
Was the resistor the same value as the resistance of the photoFET at your bias point? Those suckers are pretty nonlinear at high resistance.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
Yes, I had them both around 60k, and your right way in the non-linear region. I've dropped the value down to 4k, and it's not perfect but looks a whole lot better.
Or the poor man's VGA, an OTA. LM13700 is still in plentiful supply (for the moment), and is more stable than the opto, anyway (which is probably saying something).
The signal level isn't any more (~60mV with predistortion diodes in use), but you get a lot more voltage at the output for that swing.
OTA chips (LM13700, NE5517 etc.) are well-behaved variable gain devices, as long as you keep the differential Vin under 20-50 mV. You get a current-source output, so voltage shift and Zoutput control are freebies.
Ditto what Joerg and Phil have said. I assume these things act like regular JFETs. My experience matches what's been said: the key to making a decent circuit out of them is to keep the voltage swing across them small.
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
No, that doesn't help for this problem. What you suggest will help keep the conductivity (or resistance, depending on what you choose) linearly proportional to the control input, but this is a different problem: For a fixed control input, if the device is a FET there will be a non-linear relationship between Id and Vds. To fix this one needs to keep Vds very small (which might lead to poor signal-to-noise ratio), or change to a Cadmium Sulfide LDR etc., or re-design it to use a "digital potentiometer", multiplying DAC, VGA, etc.
If you use the input diodes, the input is a current as well.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
Across a narrow range of gains (say 2:1), not bad. They're terrible if you need cutoff, though (more than 1:10, say). This rather limits their use -- e.g., small range calibration*, low modulation AM, audio effects (vibrato), etc.
(*But for calibration, the residual nonlinearity would probably be as big a problem as the drift..?!)
What you get is, when the gain is set low, it's operating at very low [negative] Vgs: near pinchoff. It takes only a little drain voltage to fully pinch off part of the channel, and therefore enter the linear (read: constant current) region. The feedback resistors help a little, but only by a factor, not by orders of magnitude. Hence, it's no good if you need orders of variable range.
I suppose you could try a limited range like 1:2, and subtract the input from it, so it's variable down to zero. But now you're subtracting harmonics that weren't there before, so you'll have a residual that's inevitably distorted, no matter the signal level (asymptotically speaking, that is). There's also no good way to null it; it has to be calibrated live, otherwise when you wanted "1%" you might end up with "-5%" instead!
BJTs (e.g., OTAs, internal mult. and VGA cores) are fantastic for wide range (up to, what, 7 decades or so?), drift about as much (due to Is and Vbe), and their distortion and input range don't vary with bias (because the derivative of an exponent is an exponent is an exponent! :) ).
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.