lab5_note

pdf

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

16B

Subject

Electrical Engineering

Date

Oct 30, 2023

Type

pdf

Pages

9

Uploaded by DeanKangaroo5110

Report
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Lab 5: Sensing Part 2 Part 0: Introduction In this lab, you will further design filters to determine the frequency spectrum of the mic board. To do this, you will select your desired cutoff frequencies and calculate the appropriate resistor and capacitor values to build filters with said cutoff frequencies, somewhat to making your own color organ! The audible range is actually a somewhat small spectrum of frequencies, as demonstrated below: Figure 1: Sketch of the acoustic spectrum. Figure 2: Expansion of the audible range of the acoustic spectrum. 1 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Sanity check question: What challenge does the relatively small size of the audible spectrum create? Re- member, the word “cutoff” in the phrase “cutoff frequency” is somewhat of a misnomer; the cutoff frequency indicates the point at which the signal power is attenuated by half or the voltage gain is attenuated by 1 2 , not the point at which the signal is fully eliminated. Hint : Think about separation in frequency domain. Note: Acoustic waves are not electromagnetic waves: sound waves are mechanical and therefore need a medium through which to propagate, whereas EM waves do not need a medium 1 : they can propagate through the vacuum of space. You will be targeting part of the midrange section (about 1000-2500 Hz) depicted in Figure 2 above, which we define as follows: Bass 0-500 Hz Midrange 1000-5,000 Hz Treble 6,000-20,000 Hz Ultimately, these frequency ranges are guidelines : the goal of this lab is to independently light up your LEDs (with little to no overlap — two LEDs should not light up at the same pure frequency, and “dead zones” should be minimal/imperceptible). Also, you may notice that these ranges do not align exactly with those displayed in figure 2. After completing Part 1 of the lab, you will see why that is. Figure 3: High-level overview of completed micboard color organ system. This is a significantly larger circuit than the circuits you have built in previous labs, so be sure to plan ahead when constructing your circuit, and keep your circuit clean! You don’t want to building the band-pass filter only to find you don’t have enough space! Part 1: Frequency Response of the Speaker-Microphone System Generalizing the first-order filter The system you are building today is not limited to just the color organ circuit: you must also consider the ability of your speaker to reliably reproduce the desired frequency at a volume large enough to excite the microphone, and the ability of your microphone to respond to the desired frequency. You must also consider that in some ranges, the signal will be highly attenuated, if picked up at all, and compensate for that when you design your color organ ( How can I add gain to some frequencies and not others? Which frequencies should I choose? How can I create sharp cutoffs to minimize both overlap and dead zones? ). To gain the necessary information to design a working color organ, we first identify the speaker-microphone system’s frequency response. We will do this empirically: you will sweep over a range of audio frequencies and record the amplitude of the received wave at that frequency. 1 This bothered early scientists, so they came up with the concept of the aether (subsequently decommissioned in 1897) . 2 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Part 2A: High-Pass Filter As part of our color organ filter, we will also build a first-order high-pass filter to isolate the frequencies above the desired cutoff frequency. In the lab ipynb, there is a schematic of how to make a simple RC high-pass filter. Note that in the schematic, we ask you to connect the other end of the resistor to OS2 instead of gnd. This is different from the low-pass filter, where we asked you to connect the other end of the capacitor to gnd, not OS2. Sanity check question: Why do we have you connect the second component of the filter to OS2 instead of gnd for the high-pass filter but not the low-pass filter? Hint: The input to our filters, which is the output of the micboard, has both a sinusoidal/fluctuating component with a frequency and a DC offset component. What does a low-pass filter do to each component? What about a high-pass filter? Please refer to Appendix A of this note to familiarize yourself with the derivation of high-pass RC filters. Part 2B: Caught in the Notch In the final part of this lab, we will be building a notch filter to pass all frequencies besides a frequency of your choice. The notch filter can be created by placing a resistor, capacitor, and inductor in series. Your circuit should look something like this: Figure 4: Notch filter. Its transfer function can be written as: H ( j ω ) = e V out e V in = Z L + Z C Z L + Z C + Z R = j ω L + 1 j ω C R + j ω L + 1 j ω C = j ( ω L 1 ω C ) R + j ( ω L 1 ω C ) It’s obvious that | H ( j ω ) | will be equal to 0 if ω L = 1 ω C , which means that, if we know the exact frequency of the interference signal, we can use this type of RLC filter (notch filter), to create a notch at that frequency and then completely filter the interference signal out, which is impossible to be achieved by an RC filter. The frequency of the notch location, or the resonant frequency of the LC tank, is ω c = 1 LC . From a circuit perspective, the resonant frequency for this circuit makes both the inductor and capacitor act as shorts, therefore all the voltage drop is in the resistor. A notch filter has one resonant frequency ω c and a characteristic called the Q factor, where for an RLC circuit in series, Q = ω c L R At a high level, the Q factor represents the quality of a notch filter. The higher the Q factor, the smaller the bandwidth around the resonant frequency, which means that there will be sharper attenuation at the frequency of choice. The Q 3 Lab Note 5 — Sensing Part 2 (v4.0)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 factor can also be used to determine whether a system is underdamped, overdamped, or critically damped. A higher Q factor corresponds to underdamping, whereas a small Q factor corresponds to overdamping. You can think of the resistor in the circuit as what causes the damping. Energy is dissipated in our resistor, whereas inductors and capacitors both store energy in the form of magnetic and electric fields respectively. Therefore the larger the resistance, the higher the damping of the system (how does this relate to frequency attenuation in our magnitude response?). Please refer to Appendix B for more information about notch filters. Sanity check question: Does the resistor value in the notch filter matter? I.e. how does it impact the response of the notch filter? Exercise left for the reader: The above example uses a RLC circuit. What happens when we have a LCR circuit? What happens to the magnitude response? Buffers You can think of a buffer as providing an impedance transformation between two cascaded circuits. When you observe an undesired loading effect between two circuits, placing a buffer between them changes the load impedance of the first circuit to a very high value and the source impedance of the second to a very low value in accordance with (approximately) ideal op-amp characteristics. As the op-amp does not allow any current to flow into its input terminals, this prevents the second filter from drawing current from the first filter and affecting the frequency response. Instead, the second filter draws its current from the output of the op-amp, which is a replica of the first filter’s output due to this being a buffer circuit. This allows you to build very modular circuits easily, without having to do lots of ugly algebra. By placing a buffer in between our two filters that make up the band-pass filter, cascading them does not change the transfer functions of the individual circuits and the overall transfer function of the cascade is simply the product of the transfer functions of the individual circuits. This is why buffers are so useful in filter design. However, op-amps (and therefore these buffer circuits) do have their limits; they are not quite as perfect as the golden rules describe them to be. Amplifier Loading Recall the impedance characteristics of the ideal op-amp: its input impedance is infinite (no current flows into its inputs) and its output impedance is 0. This allows it to act like an ideal voltmeter at the input and supply infinite current at its output. But what happens if we don’t have those characteristics? Let’s assume we have a noninverting amplifier with a gain of 100, with a finite input impedance Z I and non-zero output impedance Z o , as in the schematic below. The middle box represents the amplifier. We now see that V IN depends on the source output impedance Z S and the amplifier input impedance Z I (because of the voltage divider formed by the two), and V out depends on the amplifier output impedance Z O and the load impedance Z L . Recalling the voltage divider equation, V IN = V S Z I Z I + Z S 4 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 V out = ( 100 V IN ) Z L Z L + Z O But 100 V IN is our desired V out ! To keep that approximately correct and avoid “loading” the output and reducing the voltage noticeably from what we expect, we need Z L to be considerably larger than Z O to keep Z L Z L + Z O as close to 1 as possible. This is why you set the “output load” on the signal generator to “High-Z”: by doing so, you are telling it to expect a high-impedance load. The function generator has a 50-ohm output impedance, while the oscilloscope probes are high-impedance, so when the function generator is set to “High-Z,” you can probe it with the oscilloscope and see the output voltage you expect (the one you explicitly set). If you set the function generator to “50 Ohm”, it expects a 50 Ohm load. Since this is equal to its output impedance, V out would be halved, so the function generator compensates for this by doubling its output voltage in 50 Ohm mode. Note that in addition to the output loading effect, the amplifier itself can also load its input (e.g. the output of a preceding circuit) if it has a finite input impedance, reducing the V IN from the desired value of V S . We thus also need Z I to be much larger than Z S as well so that the input is not affected (keep Z I Z I + Z S as close to 1 as possible). For our circuits, including the ones in this lab, you may assume that the load impedance is always sufficiently large enough and the op-amps’ output impedance is small enough so that the loading effect is negligible. You may also assume that the input impedance of our op-amps is sufficiently large enough to prevent the op-amp from loading its own input. Thus, we can safely connect the op-amp without worrying about it loading the output of the previous circuit, and the outputs of our op-amp circuits, like the buffers we’re using in this lab, will remain unaffected by whatever we connect it to, allowing us to safely use a buffer to build our band-pass filter. 5 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Appendix A: Derivation of first and second order RC filters 6 Lab Note 5 — Sensing Part 2 (v4.0)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Appendix B: Derivation of second order RLC Notch 7 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Appendix C: Resistor Color Code 8 Lab Note 5 — Sensing Part 2 (v4.0)
EECS 16B Designing Information Devices and Systems II Fall 2023 UC Berkeley Lab Note 5 Appendix D: Capacitor Codes References Horowitz, P. and Hill, W. (2015). The Art of Electronics . 3rd ed. Cambridge: Cambridge University Press, ch 1. Sedra, A. and Smith, K. (2015). Microelectronic Circuits. 7th ed. New York: Oxford University Press, ch 17. https://www.electronics-tutorials.ws/wp-content/uploads/2018/05/resistor-res5.gif https://www.bragitoff.com/wp-content/uploads/2015/09/CapacitorsCheatSheet.png Written by Mia Mirkovic (2019). Edited by Kourosh Hakhamaneshi (2020). Version 2.0, 2020. Edited by Steven Lu (2021). Version 3.0, 2021. Edited by Megan Zeng, Bozhi Yin (2022). Version 4.0, 2022. Edited by Jessica Fan (2023). Version 5.0, 2023. 9 Lab Note 5 — Sensing Part 2 (v4.0)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: What is the inverse matrix of. SE S FOR SE Pemb CEPURE AGRE PAPERS SPORT TELE P PRECES CHEAPES…
Q: Complete the balanced molecular chemical equation for the reaction below. If no reaction occurs,…
Q: The headlights of a certain car are 1.3 m apart. Take the wavelength of the headlights to be 555 nm.…
Q: Find the equation of a plane containing the line r = (-3, 3₁-1) ++ (-9,6/37 the plane which is…
Q: Mexico. In the Cozumel region about 49% of strikes (while trolling) resulted in a catch. Suppose…
Q: Use the inner product  u, v   = 2u1v1 + u2v2 in R2 and the Gram-Schmidt orthonormalization process…
Q: #Author: Rahma Seid # Course: CSCI 1170 # Assignment: OLA4 # The purpose of this program is d =…
Q: Why do you think the 5% sheep blood agar was selected for the culture of mouth bacteria?
Q: QUESTION 3 Forced distribution is a type of special rating instrument which can help address which…
Q: 2. 9) is = 1 claim T= {A, B, C } O {[:] [:] [:]} A 13 C Pr 2. b) set C₁ linearly c) In A S = Sa…
Q: Direct Labor Cost Budget Ace Racket Company manufactures two types of tennis rackets, the Junior and…
Q: 2. Consider Rolling a Fair six sided Dice with sides of 2, 3, 3, 4, 4, 5 (so replace the 1 & 6 with…
Q: Solve the system by any method. 4x - y = 2 8x - 2y = 4
Q: Find the open intervals where the function f(x) = is concave upward or concave downward. Find any…
Q: Bacterium A Indole H2S Production Motility Bacterium B Appearance of Positive Result Result from…
Q: Q12. Fill in the missing element of B such that A = B. A = {7, 19, g, #, 2, 4, &, f, 9, 1, k} B =…
Q: Find , ||A||, ||B||, and d(A,B) for the matrices in M2,2 using the inner product = 2a11b11 + a21b21…
Q: Given the sets U = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, A = {0, 2, 4, 5, 6}, and B = {0, 2, 4, 5, 8}, use…
Q: tructions December 1, Newton Enterprises sells $300,000 of accounts receivable to a factor without…
Q: Let f(x) = x for x < 0 and f(x) = sin(x) for x ≥ 0. Match the following. Here DNE means does not…
Q: 17. The one-line diagram of a three-phase power system is as shown in Figure 3.36. The transformer…
Q: A limitation to the biological species concept is based on the ability to interbreed so can't be…