Simulating Audio Amplifiers in LTspice
Simulating Audio Amplifiers in LTspice
Simulating Audio Amplifiers in LTspice
Objective: This lab will demonstrate design and simulation of an audio pre-amplifier.
Equipment: Laptop
Procedure:
I. If you haven't already do so, download the file LM741.sub from Schoology and copy it into
LTspiceXVII → lib → sub folder.
II. If you have not already done so, download the following files from Schoology and copy them into
your LTspice folder:
1. LAB29ELECphys.asc
2. LAB29ELECcct.asc
3. pot.asc
4. pot.asy
5. potphys.asy
III. Notice that there are now two potentiometers in our circuit, one (XGAIN) to control the gain of the
amplifier and one (XVOL) to control the volume. Right click on the XVOL pot.
a. Notice that the value of XVOL is defined as R = {volpot} Val={vol}.
b. Hit OK and find the simulation command that begins .param volpot.
The value after volpot is ____ ohms.
c. Find the simulation command that begins .param vol. The value after vol is _____. This is a
percentage.
d. Right click on XVOL and click on Open Schematic:
e. Notice that there are two resisters, RA and RB, in the schematic. These represent the amount of
resistance between pin 1 of the pot and the variable pin 2, and between the variable pin 2 and the
other fixed end pin 3 (respectively) (see Figure 1). The values of RA and RB are calculated at
run time by the equations in the .para statements; Ra= R * ( Val/100) and Rb=R*(1-(Val/100))
f. Close the pot schematic.
g. Right click on XGAIN, open the schematic and verify that it is the same as XVOL.
h. Close the pot schematic.
V. Now we would like to prepare the schematic of our design so that we can lay out the printed circuit
board for it.
a. In LTspice, go to Tools and click on Export Netlist. Save it, then a window should pop up
showing the netlist created. In it you will see a parts list ("C1" "10µ" "", "R3" "10k" "", etc.).
These are the discrete components (resistors, capacitors, ICs, etc.) in the schematic.
b. Notice the lines "R:VOL:A" "{Ra}" "", "R:VOL:B" "{Rb}" "", "R:GAIN:A" "{Ra}" "", and
"R:GAIN:B" "{Rb}" "". These are a problem because the netlist contains two resistors that are
used in a simulation to represent one potentiometer.
c. Close Lab29ELECcct.asc and open LAB29ELECphys.asc.
d. Notice the two pots are using a different symbol. Right click on one of the pots and notice that
there is no schematic for the pot.
e. Run a transient simulation. It will fail.
f. Go to Tools and click on Export Netlist.
g. Notice that in the netlist "XPVOL" "POT" "" and "XPGAIN" "POT" "". These represent the two
potentiometers.
VI. Go to https://www.expresspcb.com and download and install ExpressPCB. We'll use this tool
starting next week.