|
Part 2: The Benefits of Using Excel
by Aubrey Kagan
Start ý Standard
Values ý Saving Macros ý Simple
Amplifier ý LM317 Calculation ý Goal
Seek ý Use of Functions ý Additional
Options ý Source and PDF
SIMPLE AMPLIFIER
Figure 1 shows a simple noninverting
amplifier. The gain is adjustable by means of a potentiometer. The
gain is given by:

where Reff = R2 + R3. Rewriting
this to solve for Reff,

Because there is one degree of freedom,
letýs select R1 = 10K (see Example4.xls (download
Excel files)). Assuming you use
Method 2 for finding the functions, in order to run this example,
NearestValues.xls also must be open.
 |
Figure 1ýHere
you can see the noninverting amplifier using an op-amp. The gain
may be adjusted by varying R3. |
The formula for Reff is located
in cell B8. Letýs assume that the potentiometer is 20% of the total
value of Reff. Aiming for 10% on either side of the ideal
Reff, R1 should be 0.9% of Reff. This is the
formula in cell B10. Similarly, the formula for the potentiometer
in cell B12 is 0.2 ý Reff. Cell B11 looks up the nearest
5% resistor, and B13 looks up the nearest potentiometer. (Actually
the nearest potentiometer function doesnýt look for the lower value.
It searches for the first value greater than the desired value.) Use
one of the two methods to easily insert the resistor value look-up
functions when doing this on your own.
To add some versatility to the worksheet,
letýs use the standard values to calculate the maximum possible value
(R3 = 0) and the minimum value (R3 = maximum). Note that all relevant
cells have been named (see Photo 1).
|

(Click
here to enlarge)
|
Photo 1ýThis worksheet
for the amplifier in Figure 1 will calculate the standard resistor
values for a particular gain (set in cell B5) and analyze the
variation in amplification by adjusting R3 |
PREVIOUS
NEXT
Circuit Cellar provides up-to-date
information for engineers. Visit www.circuitcellar.com
for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com
or subscribe
online. ýCircuit Cellar, the Magazine for Computer Applications.
Posted with permission.
|