• No results found

What you will do. Build a 3-band equalizer. Connect to a music source (mp3 player) Low pass filter High pass filter Band pass filter

N/A
N/A
Protected

Academic year: 2022

Share "What you will do. Build a 3-band equalizer. Connect to a music source (mp3 player) Low pass filter High pass filter Band pass filter"

Copied!
57
0
0

Loading.... (view fulltext now)

Full text

(1)

Audio Filters

(2)

What you will do

 

Build a 3-band equalizer

  Low pass filter

  High pass filter

  Band pass filter

 

Connect to a music source (mp3 player)

  Adjust the strength of low, high, and middle frequencies

  Play result through a speaker

(3)

Gameplane

 

Review sound waves and frequency

 

Learn to read an electrical schematic

 

Build the circuit

(4)

Sound waves

  Compressional waves

  Air density increases and decreases

periodically

  These waves hit tiny hairs in your ear

  When they wiggle your nerves feel it

  Brain understands it’s sound

h"p://www.privateline.com/TelephoneHistory/

speech.jpg 

(5)

Waves: periodic

  Frequency is 1 cycle per millisecond

  1000 cycles/sec (1 kHz)

  This one is a sine wave

  Sine wave=Pure tone

(6)

Frequency relates to pitch

Higher  Frequency 

Lower  Frequency 

P. Lundstrom, ECE 682 student presentation, Autumn 2008.

(7)

Electronic version

  Current is proportional to sound pressure

  What is the frequency of this wave?

  Will it sound higher

pitched or lower pitched (when played through a speaker)?

(8)

The audible range

 

The audible range for humans is 

approximately 20 Hz to 20 kHz (20,000 Hz). 

 

The lowest note on a piano, A0, has a  frequency of 27.5 Hz. 

 

The highest note on a piano, C8, has a  frequency of 4.186 kHz  (4186 Hz). 

P. Lundstrom, ECE 682 student presentation, Autumn 2008.

(9)

Square wave

  What is the frequency?

  Will it sound higher or lower than 1 kHz sine wave?

(10)

Square wave contains many frequencies

  Here are three frequencies

  As you add more, looks more like a square wave

http://sirius.ucsc.edu/demoweb/images/waves/sound/fourier%20analysis_schem.jpg

COMPONENTS

SUM

(11)

Sounds like?

  Pitch is that of fundamental frequency

  Timbre (character) of tone is different than pure tone (sine wave)

www.chemicool.com/img1/ graphics/fourier-waves.gif

(12)

Other waveforms

TRIANGLE WAVE SAWTOOTH WAVE

(13)

What would this sound like?

https://chip.physics.purdue.edu/protected/

Prelab220newimg/m10q3beats.jpg

(14)

Sound consists of:

  Pitch

  Timbre

  Volume

  And all of this varies with time

  Music is a wildly complex combination of frequencies

P. Lundstrom, ECE 682 student presentation, Autumn 2008.

output of a .wav file

(15)

Audio equalizer

http://www.smeter.net/slc/info/equalization.php

• Lets you attenuate some frequencies

• Boost others

• This one is a 20-band equalizer

• We’ll build a three-band equalizer

(16)

Electronic Filters

  Filter – A circuit or device that passes certain frequencies and blocks others.

  Pass Band – The range of frequencies that are allowed to pass through the filter.

  Stop Band – The range of frequencies that are stopped by the filter.

(17)

Low Band – Low Pass Filter

 

A low pass filter passes all frequencies lower than a cutoff frequency and stops all frequencies higher.

Audio Input 20Hz – 20kHz

Audio Output 20Hz – 1kHz Cutoff

frequency Passband Stopband

http://www.its.bldrdoc.gov/projects/devglossary/images/

lpfiltec.gif

(18)

High-pass filter

http://www.its.bldrdoc.gov/projects/devglossary/images/

hpfiltec.gif

http://homepages.which.net/~paul.hills/Circuits/Failsafe/DetectorTiming.png

Passes only parts that are

changing rapidly IN OUT

(19)

Passband

http://www.atis.org/glossary/images/pbfiltec.gif

(20)

READING SCHEMATICS

(21)

Electrical schematics

 

Shows how components are connected

  Not how they’re arranged physically

 

Once you can read one, you can wire up any circuit

  Even if you don’t know what it does or how it works

(22)

What’s this?

AC signal source

(23)

How about this?

  Resistor

  “Resists” electricity

  Why?

•  Lets you control how much current flows

•  Protect components

(24)

And this?

  Capacitor

  Stops DC, passes AC

  The lower the

frequency, the less it passes

  We’ll use it in our filters

(25)

What’s this one?

  Inductor

  Passes low

frequencies, stop high frequencies

  We could use them…

  But hardly anyone uses inductors

anymore

(26)

Another useful symbol

  Ground

  In your house, for safety

  Connected to a cold water pipe

  Earth is infinite source (and sink) of electrons

  Sometimes we pick a common point and call it ground

  By convention is always at zero volts

(27)

This is a loop

  Every circuit has to have at least one loop

  That’s why they call it “circuit”

(28)

This is the same circuit

  Still a loop

  We know that all grounds are

connected together

  Don’t have to draw them that way

(29)

The point:

 

We can draw things lots of different

ways and still have them be the same

electrically

(30)

Which of these things is not like the others?

A B

C D

(31)

Series vs. parallel

Series Parallel

(32)

Series or parallel?

Series

(33)

Series or parallel?

Parallel

(34)

Series or parallel?

Series

(35)

Series or parallel?

Parallel

(36)

Series or parallel?

Series!

(37)

Series or parallel?

Parallel!

(38)

Are these the same?

YES

(39)

Are these the same?

NO

(40)

Now, our filters

  Recall capacitor blocks low

frequencies

  Is this a high-pass or low-pass filter?

• High pass!

• Low frequencies can not pass to output

(41)

What is the cutoff frequency?

f = 1 2π RC

  We adjust the cutoff frequency by our

choice of R, C

  We’ll use:

  R=680 Ω

  C=0.1 µF

  f≈ 2,500 Hz

  Will pass frequencies above 2.5 kHz

(42)

Low-pass filter

  All frequencies pass through R

  High frequencies pass through C

  They go to ground!

  Only low frequencies go the output

(43)

What is the cutoff frequency?

f = 1

RC   Same equation

  Here we’ll use:

  R=1.6 kΩ

  C=0.1 µF

  f≈1000 Hz

  Will pass frequencies below 1 kHz

(44)

Bandpass

  First filter out high frequencies (high- pass filter)

  Pass remaining

signal on to the next stage

  Low-pass-filter what’s left

(45)

Potentiometer

  Add variable resistor to output

  As you turn the

wheel, the amount of signal passed to output changes

  This is a volume control

  You’ll have one for each filter

(46)

Now we’re ready to build

  We’ll use a breadboard

  All holes in long

columns connected together

  These are called “buses”

  Handy for when you have to connect many things to the same point

  Holes in short rows connected

(47)

Example of the Circuit

Potentiometer Capacitor

Resistor Low Pass Filter Schematic

(48)

Start with low pass

  Here’s the entire circuit

  We’ll provide

amplifier, speaker

  You provide music source

(49)

Connect player to breadboard

Use a bus

Use a row

bus row

Not connected

(50)

Input connects to 1.6kΩ R

Stripes: brown, blue, red

(51)

Install pot and cap

Photo courtesy Bowser, Frankart, Lee, Lundstrom, Reed, Dec 2008

(52)

And grounds

(53)

Finally, amp and speaker

(54)

Plug it in and try it

(55)

Now start the high-pass filter

(56)

And finish it

Stripes: blue, gray, brown

(57)

If you have time, add the

bandpass

References

Related documents

Ultrasonic sensors can be designed to provide point level control, continuous monitoring or both.. Due to the presence of a microprocessor and relatively low power consumption,

These misrepresentations and omissions are material in that a reasonable pool participant would want to know, among other things, (i) that the profits purportedly earned by

Hence, we propose IT flexibility for SCM as ‘a focal firm's capability to use IT elastically to con figure or reconfigure its information, process and relational linkages within

In comparison to Greece and the Other PIIGS, the mean Spread became more negative for the Non-PIIGS Europe and Outside Europe countries in the Post Crisis compared with Pre

Calculate the value of

Methods for the development of the case definition and guidelines for data collection, analysis, and presentation for respiratory distress in the neonate as an adverse event

There are of course many other roles within engineering companies, such as in management, finance and statistics which would also be open to maths graduates.. The other route

Even if this finding might sound counter-intuitive, recent research has extensively illus- trated that political consumerism assumes organizational characteristics and participa-