Documente online.
Zona de administrare documente. Fisierele tale
Am uitat parola x Creaza cont nou
 HomeExploreaza
upload
Upload




Operational Amplifier Integrator and Oscillator

technical


Operational Amplifier Integrator and Oscillator

P12.1 SPICE Equati 15315u203p ons

P12.2 Opamp Integrator



P12.3 Opamp Oscillator

Exercises and Analysis Exercise12.mcd - Project12.mcd

P12.1 SPICE Equati 15315u203p ons

SPICE Equati 15315u203p on

Description

Opamp-integrator peak voltage amplitude of the triangular-wave for applied square-wave with peak Vs and period T and with Ry = R1||R2 and Cf.

Cosine-wave output for sinewave input with peak Vs, period T, Ry = R1||R2 and Cf.

T 2.2 RfCo

Period of oscillator for Rf with Co and R1 = R3.

General form for Tplus in terms of R1, R3, Vom, and Vop.

General form for Tmnus in terms of R1, R3Vom, and Vop.

P12.2 Opamp Integrator

Components

Refer to Project 11 for resistor values. Use Project12.mcd to calculate the capacitor value.

Obtain Cf from the square-wave equation

)

Vs+ is the voltage applied at the noninverting terminal (pin 3) of the opamp, and Vs is the voltage from Chan0_out.

Use Tmax = 0.1 S for the intial frequency of f=10 Hz.

Procedure

Connect the circuit, which includes adding the capacitor and moving Chan1_in to connect to Chan0_out.

In the Front Panel of Integrator.vi, set Vs (Chan0_out Peak(V) at 4 V to 10 V. This is adjusted to set the initial peak (lowest frequency) of the triangular wave. Also open subVI, IterateVo.vi, to observe the process of setting the output to near 0 V.

Run the VI with the signal set to the SqWave mode. Re-adjust Vs for a value of Vo(Peak-to-Peak) (init) of between 5 V and 6 V. Verify that the initial and final peak-to-peak output voltage ratio is approximately 10. Note that it will be less than 10 due to the finite RfCf The ideal integrator has infinite Rf. Note that only the last half of the output array is used in the output voltage peak determination, to avoid initial transients. Also, the average value of the output voltage channel is subtracted from the waveform in the oscilloscope. Obtain a log of the Front Panel. Default and save.

Now set the input waveform switch to Sine-wave and re-run. Note the lower peak value. Obtain a log of the Front Panel.

P12.3 Opamp Oscillator

Components

Use R1 = R3 from the integrator.

Make Rfosc = R1 = R3 and use Cf from the integrator.

Tosc 2.2RfoscCf (

Note that Tosc is about ½ of the design Tmax from the integrator or about 50 ms.

Procedure

Turn off the power supply to reconnect the circuit into the oscillator configuration. Note the connection of Chan1_in, which measures the capacitor voltage.

The main VI, Oscillator.vi(below), contains subVI's CountCycles.vi and T.vi.CountCycles.vi determines the number of cycles in the oscillator output data array (Chan0_in) by checking for sign changes. It then increases or decreases the sample rate (for a fixed number of samples) until the number of sign changes in the array is 4. T.vi then checks the number of samples in the positive and negative pulses and multiplies the total by the sample rate to obtain the oscillator frequency. This frequency is used to set the time base of the oscilloscope, OscOscill.vi, to display five cycles of the oscillator waveform in the Front Panel of the main VI.

Connect the circuit with the power supply off to avoid damage to the chip. Then turn on the power supply. Open the oscillator oscilloscope VI, OscOscill.vi. Set the oscilloscope frequency, fscope, to the expected frequency of the oscillator (e.g., about 50 Hz). This sets up the scope for a full sweep of 2/fscope = 40 msec (Note that the scope is set for 2048 samples per sweep. Thus the resolution is 2/(2048fscope) = 19 ms for this example.)

Run OscOscill.vi to verify that the circuit is oscillating. Reset fscope for a time base that includes about two cycles of oscillation and rerun. Note that this fscope setting is approximately the frequency of the oscillator.

Open subVI CountCycles.vi. Set TimeBase (init)(msec) (full sweep time of scope) to include about two cycles of the oscillator waveform. (Use Time Base = 2/fscope.) Run the subVI to verify that the VI can find the final time base, which includes about two cycles.

Open Oscillator.vi. Set Time Base(init)(msec) to the value obtained in CountCycles.vi. Set in the value of Rfosc. Run the VI to obtain a final plot of the oscillator waveform and the frequency and period of the oscillator. Note the value found for the capacitor. Compare this with the value expected. The precision of the value depends on the precision of the Rfosc. Note that if the Time Base(init) is not set close to the final value, the VI will find the correct value, after some searching. Set the value of R3 for the record. It plays no role in the VI. Save the information in the Front Panel by obtaining a log.

Replace Rfosc with Rfosc 10 Rfosc(very approximately). Set in the new value in Oscillator.vi. Use Oscillator.vi to measure the new oscillator frequency. Compare the capacitor measurement. Obtain a log for this case.

Now replace R3 with R3 R3/10 (very approximately). Set in the new value of R3 for the log record. Run the VI. Note that the capacitor measurement is not valid for this case. The capacitor now charges to about 10% of the maximum output voltages before switching. This increases the frequency of oscillation, due to the shorter transient time. Obtain a log and save.


Document Info


Accesari: 2508
Apreciat: hand-up

Comenteaza documentul:

Nu esti inregistrat
Trebuie sa fii utilizator inregistrat pentru a putea comenta


Creaza cont nou

A fost util?

Daca documentul a fost util si crezi ca merita
sa adaugi un link catre el la tine in site


in pagina web a site-ului tau.




eCoduri.com - coduri postale, contabile, CAEN sau bancare

Politica de confidentialitate | Termenii si conditii de utilizare




Copyright © Contact (SCRIGROUP Int. 2024 )