Lab 5
Lab 5
In this lab, we will discuss and construct the components required for a basic Audio
Amplifier: 3.5mm stereo jack input, stereo-to-mono audio, pre-amp, virtual ground, power
amp with speaker output, LED bar visualization, and low/band/high pass filtering. Also
each student or pair will solder an audio jack breakout board adapter.
Students work in pairs (except one group of 3) during lab time.
What you specifically should include in your lab report, SCH, PCB, etc. is detailed at
the end of this document with due dates.
Lab reports are individual work but include your lab partner’s name in your report.
Tools Used:
• Digital Multimeters
o Thsinde 18B+ (yellow)
o Mastech MS8268 (green)
• Current-Limited Power Supplies
o DC Power Supply, Yihua YH-302D
o DC Regulated Power Supply, Tekpower TP3005T
• Digital Oscilloscope
o Siglent SDS 1202X-E, 200MHz
• Signal Generator
o Siglent SDG1025, 25MHz, 125 MSa/s
• Wire cutters/strippers, probes, banana connectors, alligator clips, jumper
wires, etc.
Components Used:
Note: No components are listed in this document, instead they are organized in a
separate Bill of Materials document on Blackboard named “BOM_Audio_Amp.pdf”
1
Directed Part of Lab:
1. Audio Amp Requirements
a. Audio input may come from two sources chosen by a SPDT Switch:
i. Standard 3.5mm AUX cable connected to computer or phone
ii. or Simple two-pin Electret Microphone
b. Audio signal must be biased by a Virtual Ground to prevent the audio signal’s
negative voltages from being lost (clipped)
c. The audio signal must immediately pass through a Pre-Amplifier to boost
the audio signal’s voltage amplitude
i. The Pre-Amp’s gain must be user adjustable (“Pre-Amp POT”)
d. The audio signal will then branch off into 3 active filters to extract 3 different
audio frequency ranges (Bass, Midrange, Treble)
i. Low Pass, Band Pass, and High Pass filters respectively
e. Output from each of the 3 filters (via 3 POTs) will branch off in 2 directions:
i. All 3 outputs will be summed together to recombine the audio signal;
the recombined audio signal will be passed to a Power Amplifier
which in turn outputs the final audio signal to the speaker
1. Power Amp’s gain must be adjustable (“Power Amp POT”)
ii. Each of the 3 outputs will also go to LED Bar Driver ICs that control
different colored LED Bars to create a light organ effect that responds
to audio signal amplitudes that belong to certain frequency ranges
(Low/Bass, Band/Midrange, High/Treble)
High Pass
or Filter
LED
Pre-Amp Band Pass Bar
(Adjustable) Filter
Drivers
Low Pass
Filter
2
2. Capacitors Block DC and Allow AC to Pass Freely
a. Capacitive Reactance
i. In Depth Details About Capacitive Reactance
𝟏
𝐗𝐂 = 𝐢𝐧 𝐎𝐡𝐦𝐬 (𝛀)
𝟐𝛑𝒇𝐂
Ω Ω
Ω
“CAPs block DC” “CAPs pass AC”
DC is basically a 0Hz AC As f goes higher, Ω goes
Voltage Signal and if f is lower allowing the AC
0Hz, then Ω is very high signal to pass unaffected
3
b. Decoupling Capacitors (“Remove AC Components”)
i. These are used to decouple a portion of a circuit (like an IC’s power
input) from AC voltages, random voltage spikes, or noises caused by
other circuit components. When placed near the VDD or VCC input of an
IC, these capacitors can protect it from damage by immediately shunting
or shorting the voltage spike directly to GROUND.
ii. “Pass unwanted AC to GND, DC is blocked and doesn’t flow through CAP”
iii. More Details 1, More Details 2
4
3. 3.5mm Audio Jack with Breakout Board PCB
5
4. Virtual Ground (DC Bias, DC Offset)
+100mV
0V Our Circuit’s New Audio Signal
Offset or “Biased” by +6V DC
-100mV
6
𝟏
𝑻𝒊𝒎𝒆 𝑪𝒐𝒏𝒔𝒕𝒂𝒏𝒕 𝝉 = 𝐑𝐂 =
𝟐𝛑𝒇𝒄
𝟏
𝑪𝒖𝒕𝒐𝒇𝒇 𝑭𝒓𝒆𝒒𝒖𝒆𝒏𝒄𝒚 𝒇𝐂 = 𝐢𝐧 𝐇𝐞𝐫𝐭𝐳 (𝐇𝐳)
𝟐𝛑𝐑𝐂
By the time your AC voltage signal reaches the cutoff frequency fC it’s
voltage amplitude is already attenuated (reduced) by -3dB (now only
0.708 of original voltage amplitude).
7
2nd Order RC Low-Pass Filter Circuit
(Faster slope of attenuation → BETTER)
𝟏
𝑪𝒖𝒕𝒐𝒇𝒇 𝑭𝒓𝒆𝒒𝒖𝒆𝒏𝒄𝒚 𝒇𝐂 = 𝐢𝐧 𝐇𝐞𝐫𝐭𝐳 (𝐇𝐳)
𝟐𝛑√𝐑𝟏𝐂𝟏𝐑𝟐𝐂𝟐
8
b. More Sophisticated Filters
i. Filter Design Tool
9
6. Audio Spectrum (Frequency Band Labels)
10
7. Electret Microphone
Output GND
Terminal Terminal
Connected
to Body
11
8. Power Amplifier (Speaker Output) – LM386
12
Individual Part of Lab:
1. Breadboard (Work in Pairs)
a. Breadboard “Audio_Amp.sch” in a modular fashion to simplify debugging
b. It will take multiple lab periods to complete the circuit fully and things will
get messy fast with wiring so triple-check every connection
c. Demo your working circuit when it is fully complete
d. Volume Setting Sequence (after fully breadboarded):
i. Turn both Pre-Amp POT and Power-Amp POT completely OFF
ii. Turn Power-Amp POT completely ON (100%)
iii. Slowly turn the Pre-Amp POT up until the speaker outputs your
ideal MAX volume
iv. Once reached, leave the Pre-Amp POT permanently in that
position
v. Now you can freely turn the Power-Amp POT to act as your
normal Volume Knob
13
3. Part 3 (Due 4/12/2019) - Lab Report (.pdf)
a. Design your own High and Low Pass Filters.
b. Go to this Filter Design Wizard website and use the “Sallen-Key Active Filter”
tools to create HIGH Pass and LOW Pass filters.
c. You determine the exact cutoff frequencies, but they should match
conventional audio spectrum frequencies (LOW Pass for Bass and HIGH Pass
for Treble/High-End).
d. In your report, include many screenshots from the filter website to show all
the relevant math and what component values were chosen.
e. Then you will simulate these 2 filter circuits (independently) in EveryCircuit.
The input for the filters should be an AC Source with a sine wave frequency
you can alter.
f. Provide screen shots for both filters you created in EveryCircuit. Also provide
screen shots of the top "Oscilloscope View" when the circuit is simulating and
running. Note: there are two yellow arrows you can use to run/simulate your
circuit (Run Transient: Space and Run AC); use both of them. Be sure to
provide these oscilloscope screen shots at different MEANINGFUL
frequencies for your AC Sine Wave input. Use the "Show Waveform: W" Eye
icon on your input and the outputs to make them appear in the oscilloscope
view.
14
15