# Task 8.10: AC vs DC Input to an Op-Amp > [!figures] Figure I: Inverting Amplifier Circuit > ![[Pasted image 20261030121802.png|center|450]] > [!calculation] Theoretical Inverting Gain > $R_1=10k\Omega,\qquad R_2=15k\Omega$ > > $A_v=-\frac{R_2}{R_1}=-\frac{15,000}{10,000}=\boxed{-1.5}$ > > $V_{out}=A_vV_{in}=-1.5V_{in}$ > > $A_{v,measured}=\frac{V_{out}}{V_{in}}$ > > $\%\text{ error}=\left|\frac{A_{v,measured}-A_{v,theoretical}}{A_{v,theoretical}}\right|\times100$ ## Step 2: DC Input Measurements > [!table] Table I: DC Input, Output, Gain, and Percent Error > > | $V_{in}$ [V] | $V_{out}$ [V] | Gain | Percent Error | > | ---: | ---: | ---: | ---: | > | 0.0 | 0.000 | N/A | N/A | > | +1.0 | -1.510 | -1.510 | 0.67% | > | +2.5 | -3.781 | -1.512 | 0.83% | > | +5.0 | -4.050 | -0.810 | 46.0% | > | 0.0 | 0.000 | N/A | N/A | > | -1.0 | +1.510 | -1.510 | 0.67% | > | -2.5 | +3.780 | -1.512 | 0.80% | > | -5.0 | +4.040 | -0.808 | 46.1% | > [!calculation] DC Gain and Saturation > For a $+1.0V$ input: > > $A_v=\frac{-1.510}{1.0}=\boxed{-1.510}$ > > $\%\text{ error}=\left|\frac{-1.510-(-1.5)}{-1.5}\right|\times100=\boxed{0.67\%}$ > > For inputs of $\pm5.0V$, the ideal outputs are: > > $V_{out,ideal}=(-1.5)(\pm5.0)=\mp7.5V$ > > These outputs exceed the available output swing with $\pm5V$ supplies. > > $V_{out,measured}\approx-4.05V\text{ and }+4.04V$ > [!note] Step 2: Observations > - The output polarity was opposite the input polarity. > - At inputs of $\pm1.0V$ and $\pm2.5V$, the measured gains were close to the theoretical value of $-1.5$. > - At inputs of $\pm5.0V$, the output saturated near the available voltage limits. > - Saturation reduced the measured gain magnitude. > - Reducing the input magnitude or feedback resistance would reduce the required output swing. ## Step 3: AC Input Measurements > [!table] Table II: AC Peak-to-Peak Voltage and Gain Magnitude > > | $V_{in}$ [Vpp] | $V_{out}$ [Vpp] | Gain Magnitude | Reported Signed Percent Deviation | > | ---: | ---: | ---: | ---: | > | 2.09 | 3.11 | 1.49 | -0.8% | > | 4.06 | 6.12 | 1.51 | +0.5% | > | 6.14 | 8.09 | 1.32 | -12.2% | > | 8.12 | 8.09 | 1.00 | -33.6% | > | 9.94 | 8.09 | 0.81 | -45.7% | > | 0 | 0 | N/A | N/A | > [!calculation] AC Gain Magnitude > $|A_v|=\frac{V_{out,pp}}{V_{in,pp}}$ > > For the smallest nonzero input: > > $|A_v|=\frac{3.11}{2.09}\approx\boxed{1.49}$ > > For the largest input: > > $|A_v|=\frac{8.09}{9.94}\approx\boxed{0.81}$ > > The peak-to-peak voltage ratio gives the gain magnitude. The approximately $180^\circ$ phase inversion indicates the negative gain. > [!figures] Figure II: Input and Inverted Output at Approximately 1 kHz > ![[Pasted image 20261030121844.png|center|450]] > [!note] Step 3: Observations > - At inputs of 2.09 Vpp and 4.06 Vpp, the measured gain magnitudes were approximately 1.49 and 1.51. > - These values were close to the theoretical gain magnitude of 1.5. > - At larger inputs, the output remained near 8.09 Vpp. > - The output could no longer increase proportionally because of clipping, so the measured gain magnitude decreased. > - The captured input and output waveforms showed the phase inversion expected from an inverting amplifier. # Task 8.11: The Adjustable Gain Amplifier > [!figures] Figure V: Inverting Amplifier with Adjustable Feedback Resistance > ![[Pasted image 20261030121916.png|center|450]] > [!calculation] Adjustable Inverting Gain > $A_v=-\frac{R_{feedback}}{R_1}$ > > Increasing the feedback resistance increases the gain magnitude. > > $|A_v|=\frac{V_{out,pp}}{V_{in,pp}}$ ## Step 2: Output Amplitude at Different Gain Settings > [!figures] Figure VI: Highest Captured Output Amplitude > ![[Pasted image 20261030121929.png|center|450]] > [!figures] Figure VII: Intermediate Output Amplitude > ![[Pasted image 20261030121940.png|center|450]] > [!figures] Figure VIII: Lowest Captured Output Amplitude > ![[Pasted image 20261030121951.png|center|450]] > [!table] Table III: Adjustable Amplifier Measurements > > | Setting | $V_{in}$ [Vpp] | $V_{out}$ [Vpp] | Gain Magnitude | > | --- | ---: | ---: | ---: | > | Highest captured output | 2.57 | 2.37 | 0.922 | > | Intermediate output | 2.57 | 1.25 | 0.486 | > | Lowest captured output | 2.57 | 0.120 | 0.0467 | > [!calculation] Measured Gain Magnitudes > $|A_{v,high}|=\frac{2.37}{2.57}=\boxed{0.922}$ > > $|A_{v,mid}|=\frac{1.25}{2.57}=\boxed{0.486}$ > > $|A_{v,low}|=\frac{0.120}{2.57}=\boxed{0.0467}$ > > Since the outputs are inverted: > > $A_v\approx-0.922,\quad-0.486,\quad-0.0467$ ## Step 3: Speaker Response > [!note] Expected Speaker Behavior > - Increasing the output amplitude increases the sound level when connected to a suitable speaker load. > - Lower gain produces a quieter tone. > - The pitch remains approximately 440 Hz because the potentiometer changes amplitude rather than frequency. ## Step 5: Clipping and Output Limits > [!note] Step 5: Observations > - The three captured waveforms did not show clear clipping. > - Clipping occurs when the input amplitude and gain demand an output beyond the available voltage swing. > - For a gain magnitude of 1 and a 2.57 Vpp input, the ideal output is 2.57 Vpp. > - Larger input amplitudes or gain magnitudes can flatten the waveform peaks and distort the sound. > - Reducing the input amplitude or gain can prevent voltage clipping. > - A speaker load can also introduce output-current limitations. # Task 8.12: Characteristics of Op-Amps and Comparators > [!figures] Figure XII: LM239 Comparator with Adjustable Reference and Output Pull-Up > ![[Pasted image 20261030122114.png|center|450]] > [!calculation] Comparator Switching Relationship > For the circuit shown, the reference is connected to the noninverting input and the signal is connected to the inverting input. > > $V_{out}\approx > \begin{cases} > V_{HIGH}, & V_{in}<V_{ref}\\ > V_{LOW}, & V_{in}>V_{ref} > \end{cases}$ > > The pull-up resistor establishes the high output state when the comparator's output transistor is off. ## Step 2: Low-Frequency Comparator Response > [!figures] Figure XIII: Comparator Response to a Low-Frequency Triangle Wave > ![[Pasted image 20261030122134.png|center|450]] > [!note] Step 2: Observations > - The triangle-wave input produced a two-state output. > - The output switched when the input crossed the reference voltage. > - The output was high when the input was below the reference and low when the input was above the reference. ## Step 4: Pull-Up and Pull-Down Resistors > [!note] Defined Logic States > - A pull-up resistor establishes a known high state when a switch or open-collector device is not pulling the signal low. > - This prevents the signal from floating and responding unpredictably to noise. > - The resistor limits current when the signal is pulled low. > - A pull-down resistor serves the corresponding purpose when the desired default state is low. ## Step 5: Adjusting the Reference Voltage > [!figures] Figure XIV: Comparator Switching with a Reference Near 3.125 V > ![[Pasted image 20261030122159.png|center|450]] > [!note] Step 5: Observations > - Adjusting the potentiometer changed the voltage at which the comparator switched. > - The captured waveform showed switching near the 3.125 V cursor level. > - Raising the reference increased the portion of each cycle for which the triangle-wave input was below the reference. > - This increased the output's high-state duty cycle. > - Lowering the reference had the opposite effect. ## Step 7: LM239 and LF356 at Low Frequency > [!figures] Figure XVI: Triangle-Wave Input with LM239 and LF356 Outputs > ![[Pasted image 20261030122211.png|center|450]] > [!table] Table IV: Oscilloscope Trace Identification > > | Trace Color | Signal | > | --- | --- | > | Blue | Triangle-wave input | > | Yellow | LM239 output | > | Green | LF356 output | > [!note] Step 7: Observations > - The horizontal cursor was positioned at approximately 2.70 V as a reference for the switching level. > - Both outputs changed state near the same input voltage at low frequency. > - The high-state output voltages differed. > - The displayed time scale did not resolve the transition speeds well enough to compare slew rates quantitatively. ## Step 9: High-Frequency Response > [!figures] Figure XVII: LM239 and LF356 Responses at Approximately 100 kHz > ![[Pasted image 20261030122237.png|center|450]] > [!calculation] Frequency from the Oscilloscope Time Scale > $\text{Time scale}=5\mu s/\text{div}$ > > One input cycle spans approximately two divisions. > > $T\approx(2)(5\mu s)=10\mu s$ > > $f=\frac{1}{T}=\frac{1}{10\times10^{-6}}=\boxed{100kHz}$ > [!note] Step 9: Observations > - The yellow LM239 output retained sharper transitions. > - The green LF356 output became rounded and responded more slowly. > - This behavior is consistent with limitations in slew rate, bandwidth, and recovery from saturation. > - These effects can change switching times and pulse widths as frequency increases. > - The waveform alone does not establish which limitation dominates.