|
||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
|
|
![]()
Two Great Applications of the Mysterious Op-Amp
In a previous article I promised that I would return to the topic of op-amps. So here we are. I firmly believe that the op-amp is not as well understood
by this generation of "embedded engineers" as it was by our predecessors. We get our "ones" and "zeros" all right, but when someone says op-amp we just nod and pretend we know what is
being talked about. The amazing thing is that these parts are actually very easy to use once you understand them. And on top of that, there are times when the correct application of an
op-amp will work much better than a slew of code running on a micro-controller. I have seen cases where a $10 DSP can be replaced by a 25-cent op-amp. The ideas that I will present and
explain require the basic knowledge that I covered in my previous articles. If you get lost, please refer to my archives.
The plan here is to show two different applications of op-amps to get you thinking about less than conventional ways to use them in your designs. What I will show you here is not
typically found in textbooks and on the Web. So I hope you will refer to this page often.
The AC Amplifier ![]() Figure 1 - Standard Noninverting Op-Amp Remember the equation for this circuit is:
(Please see my archives for an intuitive explanation of why this is the equation for this circuit.) Then insert a capacitor in series with Ri like this. ![]() Figure 2 - Standard Noninverting Op-Amp with Capacitor Added Now, let's rewrite the equation for the amplifier first.
Consider the elements in the feedback loops to be impedances in place of resistances. Now it should be obvious that:
So to put it simply, the impedance of Zi will approach Ri as frequency increases, and infinity as the frequency approaches 0 or a DC level. Now insert that into the original equation. What happens?
As the frequency approaches a DC level, the gain of the circuit approaches 1. As the frequency increases, the gain approaches 1+Zf/Zi. You now have an amplifier that only amplifies AC signals. Any DC bias that was on the signal to begin with is simply passed on to the output. This can be a very handy characteristic. There are many instances where the AC signal you are interested in is riding on a DC bias. If you amplify it a lot, you will run into a problem where the op-amp will "rail" and cease to operate as desired. You can work out a special ground and a bipolar supply to eliminate it, or you can use the above circuit. I personally prefer the latter wherever possible. A Voltage-Controlled, Grounded Constant-Current Source ![]() Figure 3 - Voltage-Controlled, Grounded Constant-Current Source So let me explain the operation of this circuit a little. Remember the negative feedback rule? If there is negative feedback, the op-amp will try to make V+ = V- (if you think there is any significant current flowing in or out of these inputs, you better go read the archives). Well in this case there is negative feedback. Follow my logic for a moment. (Yes, I did use the term logic in reference to an analog circuit. Logic implies rules and even analog circuits must follow rules. However, I am sure there are engineers that would dispute this assertion. J) We begin at the output of the op-amp. As the voltage at the output of the op-amp decreases, current through the transistor will increase. This means the voltage at V- will decrease as well, and the current through R will go up because it is connected to the transistor. But, if V- falls below V+, then the error signal in the op-amp is positive, and that will make the output of the op-amp increase voltage. This process will stabilize when V- = V+. Tada! The magic of negative feedback works again. That's great you say, but I thought we were talking about a constant-current source. We are, and that is the beauty of this design. If V- = V+, that means that the voltage across R is always equal to Vcc - Vin. You simply apply Ohm's law to discover that
Since the current through R is the same as the current through "Load," you have a constant-current source. Even better, you can adjust the current by simply changing Vin. Another great thing is that this circuit works with a load that is connected to ground. A good example as to where this type of circuit could be used is to hook up a micro-controller to switch a standard 4-20 mA current loop interface. A couple of words of warning, however. A constant-current source will not control current unless a load is connected. It is also possible to connect a load that will force the source out of regulation. So make sure you know the maximum range required as well as the total available current. (All this depends on the implementation, the value of Vcc, the value chosen for R and Rb, etc.) Note also that current increases as Vin decreases. (Look at the above equation again if you didn't notice that it is referenced to Vcc). So, there you have it, a couple of neat circuits that you can create with the op-amp. If you have any questions about particular applications of these circuits, please email me. I will be happy to help you out as much as possible.
|
|||||||||||||||||||||||||||||||||
|
Copyright © 2003 ChipCenter-QuestLink About ChipCenter-Questlink |
||||||||||||||||||||||||||||||||||