Question

In: Electrical Engineering

3. Use matlab to plot the output voltage of an inverting operational amplifier given the following...

3. Use matlab to plot the output voltage of an inverting operational amplifier given the following conditions: K = Gain of the amplifier = 12.5. Vi = input voltage -2.5 < Vi < 2.5 V], (use 0.25 increments). V+ = positive power supply voltage, V+ = +20 V. V- = negative power supply voltage V- = -20V. Vo = output voltage Vo = -KVi Recall that if the output voltage Vo is greater than V+, or less than V-, the output voltage Vo gets clipped to the V+, or V- voltage, (clipped at the rail voltage).

Solutions

Expert Solution

K=12.5; % gain of the amplifier
Vp=+20; % Positive power supply
Vn=-20; % Negative power supply
i=0;
Vout=[];Vin=[]; % initiating input and output voltage
for Vi=-2.25:0.25:2.25; % input voltage staring from -12.5V to +12.5V
i=i+1;
V=-K*Vi; % inverting opAmp ouput voltage equation
if V>Vp
V=Vp; % if the output greaterthan positive power
% supply then it become positive power supply
elseif V<Vn
V=Vn; % if the output greaterthan Negative power
% supply then it become Negative power supply
end
Vout(i)=V; % Storing each output voltage value in an array
Vin(i)=Vi; % Storing each input voltage value in an array
end

figure;
% Plotting the Vout vs Vin of inverting opamp circuit
plot(Vin,Vout,'-ro','linewidth',2);grid on;grid minor;
xlabel('V_{in}');ylabel('V_{out}');
title('Inverting Operational Amplifier output for Gain K = 12.5');


Related Solutions

Operational amplifier question Design a non- inverting amplifier with gain of 7.5?
Operational amplifier question Design a non- inverting amplifier with gain of 7.5?
with a voltage range of 0.874 and -0.855 how can i design a inverting amplifier using...
with a voltage range of 0.874 and -0.855 how can i design a inverting amplifier using standard resistors to produce a voltage output range of -10 to 10 volts?
1.If an inverting voltage amplifier with a large gain were built to amplify a small sinusoidal...
1.If an inverting voltage amplifier with a large gain were built to amplify a small sinusoidal signal and the output waveform was observed to be sinusoidal but with a much lower amplitude than predicted by a theoretical analysis assuming an ideal operational amplifier, what non ideal property of the operational amplifier would be likely contributing to this degradation in performance? 40
In a differential amplifier, the non-inverting input is 3 cos (600t + 45◦) mV and the...
In a differential amplifier, the non-inverting input is 3 cos (600t + 45◦) mV and the inverting input is 4cos (600t - 45◦) mV. The output is vo = 3cos (600t + 45◦) + 4.004cos (600t - 45◦) V. The CMRR is of ____ dB
Derive the K value for the non-inverting amplifier (a) and the Summer (b) (use the naming...
Derive the K value for the non-inverting amplifier (a) and the Summer (b) (use the naming conventions from sheet in the back of the text).
Given ? = ???+??? + ??? and ? = ???-3?? + ????. Use MATLAB to find...
Given ? = ???+??? + ??? and ? = ???-3?? + ????. Use MATLAB to find the following: a) ? + ? b) ?  ? c) ? × ? d) A unit vector in the direction of ? − 2? e) ??? f) The component of ? along ? 2. Use MATLAB to convert points ?(11,4,15), ?(10,−14,33) and ?(−33,−14,15) from Cartesian to Cylindrical and Spherical coordinates.
Problem 5. (10 pts) In a differential amplifier, the non-inverting input is 3 cos (600t +...
Problem 5. (10 pts) In a differential amplifier, the non-inverting input is 3 cos (600t + 45◦) mV and the inverting input is 4cos (600t - 45◦) mV. The output is vo = 3cos (600t + 45◦) + 4.004cos (600t - 45◦) V. The CMRR is dB
Research and investigate Audio Amplifier circuits and submit a short report. You may use Operational Amplifier...
Research and investigate Audio Amplifier circuits and submit a short report. You may use Operational Amplifier LM741, Op741. Research should include: Prosed Circuit. Circuit analysis.
Question 5. Use MATLAB to solve for and plot the response of the following models for...
Question 5. Use MATLAB to solve for and plot the response of the following models for 0≤t ≤1.5, where the input is f (t) =5t and the initial conditions are zero a. 3¨ x +21˙ x +30x = f (t) b. 5¨ A (Turn in the MATLAB script and answers from MATLAB, .m file, screen shots if needed) B (Turn in the MATLAB plot with t being time in SI units) C Comment on the response the analytical solution compared...
Design an ECG amplifier using 3 operational amplifiers for standard (AHA) specifications.
Design an ECG amplifier using 3 operational amplifiers for standard (AHA) specifications.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT