Difference between revisions of "Analog Tutorial Lesson 9: Designing a Wien Bridge Oscillator"

From Emagtech Wiki
Jump to: navigation, search
(Analyzing the Wien Bridge Oscillator and Explaining Its Behavior)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{projectinfo|Tutorial| Designing Low and High Frequency Oscillator Circuits |TUT12-8.png|In this project, the basic concepts of RF.Spice A/D are demonstrated, and a simple voltage divider is modeled and examined.|
+
{{projectinfo|Tutorial| Designing a Wien Bridge Oscillator |TUT12-5.png|In this project, you will design and realize a Wien bridge oscillator and analyze its operation.|
  
*[[CubeCAD]]
+
*Operational Amplifier
*Visualization
+
*Wien Bridge
*[[EM.Tempo#Lumped Sources | Lumped Sources]]
+
*Oscillation Frequency
*[[EM.Tempo#Scattering Parameters and Port Characteristics | S-Parameters]] 
+
*Barkhausen Criterion
*[[EM.Tempo#Far Field Calculations in FDTD | Far Fields]]
+
*Positive Feedback
*[[Advanced Meshing in EM.Tempo]]
+
|All versions|{{download|http://www.emagtech.com/downloads/ProjectRepo/AnalogLesson9.zip Analog Lesson 9}} }}
|All versions|{{download|http://www.emagtech.com/content/project-file-download-repository|EM.Tempo Lesson 1|[[EM.Cube]] 14.8}} }}
+
  
 
=== What You Will Learn ===
 
=== What You Will Learn ===
  
[[File:TUT12-1.png|thumb|400px| The Wien Bridge Oscillator.]]
+
In this tutorial you will build a Wien Bridge Oscillator using an LM741 Op-Amp and will analyze its oscillatory behavior. The primary objective of this tutorial lesson is to underline the challenges of analyzing oscillator circuits.
In the first part of this tutorial lesson, you will build a Wien Bridge Oscillator using an LM741 Op-Amp and will analyze its oscillatory behavior. In the second part, you will build and test a high frequency Colpitts oscillator using a parallel resonant LC circuit. The primary objective of this tutorial lesson is to underline the challenges of analyzing oscillator circuits.  
+
  
 
== Designing a Wien Bridge Oscillator ==
 
== Designing a Wien Bridge Oscillator ==
Line 18: Line 16:
 
The following is a list of parts needed for this part of the tutorial lesson:
 
The following is a list of parts needed for this part of the tutorial lesson:
  
----
+
{| border="0"
 
+
|-
Voltage Source VCC: 15V
+
| valign="top"|
 
+
|-
Voltage Source VEE: -15V
+
{| class="wikitable"
 
+
|-
LM741 Op-Amp: Accessible form "Parts > Integrated Circuits" menu
+
! scope="col"| Part Name
 
+
! scope="col"| Part Type
Four Resistors: R1, R2, R3 and R4
+
! scope="col"| Part Value
 
+
|-
Two Capacitors: C1 and C2
+
! scope="row"| VCC
 
+
| DC Voltage Source
----
+
| 15V
 +
|-
 +
! scope="row"| VEE
 +
| DC Voltage Source
 +
| -15V
 +
|-
 +
! scope="row"| R1 - R3
 +
| Resistor
 +
| 10k
 +
|-
 +
! scope="row"| R4
 +
| Resistor
 +
| 20k
 +
|-
 +
! scope="row"| C1 - C2
 +
| Capacitor
 +
| 1n
 +
|-
 +
! scope="row"| X1
 +
| LM741 Op-Amp
 +
| Defaults
 +
|}
  
 
The Wien Bridge Oscillator comprises an Op-Amp, four resistors and two capacitors. The oscillator can also be viewed as a positive gain amplifier combined with a bandpass filter that provides positive feedback. At the resonant frequency, the reactance of the series R2–C2 arm will be an exact multiple of the shunt R1–C1 arm. If the two R3 and R4 arms are adjusted to the same ratio, then the bridge is balanced. These conditions can be written as:
 
The Wien Bridge Oscillator comprises an Op-Amp, four resistors and two capacitors. The oscillator can also be viewed as a positive gain amplifier combined with a bandpass filter that provides positive feedback. At the resonant frequency, the reactance of the series R2–C2 arm will be an exact multiple of the shunt R1–C1 arm. If the two R3 and R4 arms are adjusted to the same ratio, then the bridge is balanced. These conditions can be written as:
Line 44: Line 63:
 
<math>f_o = \frac {1}{2 \pi RC}</math>  
 
<math>f_o = \frac {1}{2 \pi RC}</math>  
  
For this project, you will initially choose R1 = R2 = 10k, R3 = 10k, R3 = 2 R3 = 20k, and C1 = C3 = 100pF. Place and connect all the parts as shown in the above figure. Place a voltage probe marker at the output of the Op-Amp. The oscillation frequency of this circuit must be f<sub>o</sub> = 1 / (2&pi; . 1e+4 . 1e-9) = 15.9kHz.
+
For this project, you will initially choose R1 = R2 = 10k, R3 = 10k, R3 = 2 R3 = 20k, and C1 = C3 = 100pF. Place and connect all the parts as shown in the above figure. Place a voltage probe marker at the output of the Op-Amp. The oscillation frequency of this circuit must be f<sub>o</sub> = 1 / (2&pi; . 1e+4 . 1e-9) = 15.9kHz.
 +
 
 +
<table>
 +
<tr>
 +
<td>
 +
[[File:TUT12-1.png|thumb|550px| The Wien Bridge Oscillator.]]
 +
</td>
 +
</tr>
 +
</table>
  
 
== Testing the Wien Bridge Oscillator ==
 
== Testing the Wien Bridge Oscillator ==
Line 53: Line 80:
 
<tr>
 
<tr>
 
<td>
 
<td>
[[File:TUT12-2.png|thumb|800px|The output voltage of the Wien Bridge Oscillator when R4 = 20k.]]
+
[[File:TUT12-2.png|thumb|720px|The output voltage of the Wien Bridge Oscillator when R4 = 20k.]]
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 63: Line 90:
 
<tr>
 
<tr>
 
<td>
 
<td>
[[File:TUT12-3.png|thumb|800px|The output voltage of the Wien Bridge Oscillator when R4 = 21k.]]
+
[[File:TUT12-3.png|thumb|720px|The output voltage of the Wien Bridge Oscillator when R4 = 21k.]]
 
</td>
 
</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
  
In order to calculate the oscillation frequency, first zoom in the graph window by clicking the "Zoom In" button of the [[Graph toolbar|Graph Toolbar]]. Then use the "Delta Tool" of the [[Graph toolbar|Graph Toolbar]] to measure the distance between two successive peaks of the sinusoidal signal. The period is about 78.5&mu;s, which gives an oscillation frequency of 12.75kHz.       
+
In order to calculate the oscillation frequency, first zoom in the graph window by clicking the "Zoom In" button of the Graph Toolbar. Then use the "Delta Tool" of the Graph Toolbar to measure the distance between two successive peaks of the sinusoidal signal. The period is about 78.5&mu;s, which gives an oscillation frequency of 12.75kHz.       
  
 
<table>
 
<table>
 
<tr>
 
<tr>
 
<td>
 
<td>
[[File:TUT12-4.png|thumb|800px|Measuring the signal period on a close-up of the output voltage of the Wien Bridge Oscillator when R4 = 21k.]]
+
[[File:TUT12-4.png|thumb|720px|Measuring the signal period on a close-up of the output voltage of the Wien Bridge Oscillator when R4 = 21k.]]
 
</td>
 
</td>
 
</tr>
 
</tr>
Line 119: Line 146:
  
 
<p>&nbsp;</p>
 
<p>&nbsp;</p>
[[Image:Back_icon.png|40px]] '''[[RF.Spice_A/D#RF.Spice_A.2FD_Tutorial | Back to RF.Spice A/D Tutorial Gateway]]'''
+
[[Image:Back_icon.png|40px]] '''[[RF.Spice_A/D#RF.Spice_A.2FD_Tutorials | Back to RF.Spice A/D Tutorial Gateway]]'''

Latest revision as of 14:33, 4 November 2015

Tutorial Project: Designing a Wien Bridge Oscillator
TUT12-5.png

Objective: In this project, you will design and realize a Wien bridge oscillator and analyze its operation.

Concepts/Features:

  • Operational Amplifier
  • Wien Bridge
  • Oscillation Frequency
  • Barkhausen Criterion
  • Positive Feedback

Minimum Version Required: All versions

'Download2x.png Download Link: Analog Lesson 9

What You Will Learn

In this tutorial you will build a Wien Bridge Oscillator using an LM741 Op-Amp and will analyze its oscillatory behavior. The primary objective of this tutorial lesson is to underline the challenges of analyzing oscillator circuits.

Designing a Wien Bridge Oscillator

The following is a list of parts needed for this part of the tutorial lesson:

Part Name Part Type Part Value
VCC DC Voltage Source 15V
VEE DC Voltage Source -15V
R1 - R3 Resistor 10k
R4 Resistor 20k
C1 - C2 Capacitor 1n
X1 LM741 Op-Amp Defaults

The Wien Bridge Oscillator comprises an Op-Amp, four resistors and two capacitors. The oscillator can also be viewed as a positive gain amplifier combined with a bandpass filter that provides positive feedback. At the resonant frequency, the reactance of the series R2–C2 arm will be an exact multiple of the shunt R1–C1 arm. If the two R3 and R4 arms are adjusted to the same ratio, then the bridge is balanced. These conditions can be written as:

[math]\omega^2 = \frac {1}{R_1 R_2 C_1 C_2}[/math]

and

[math] \frac {C_1}{C_2} = \frac {R_4}{R_3} - \frac {R_2}{R_1}[/math]

This can be further simplified by setting R1 = R2 = R and C1 = C2 = C. In that case, setting R4 = 2 R3 will satisfy the above conditions and will lead to the following simple equation for the oscillation frequency:

[math]f_o = \frac {1}{2 \pi RC}[/math]

For this project, you will initially choose R1 = R2 = 10k, R3 = 10k, R3 = 2 R3 = 20k, and C1 = C3 = 100pF. Place and connect all the parts as shown in the above figure. Place a voltage probe marker at the output of the Op-Amp. The oscillation frequency of this circuit must be fo = 1 / (2π . 1e+4 . 1e-9) = 15.9kHz.

The Wien Bridge Oscillator.

Testing the Wien Bridge Oscillator

Run a Transient Test of this circuit with start and stop times set to 0 and 25ms and a Step Ceiling of 1μs. You will get a graph like the one shown below.

The output voltage of the Wien Bridge Oscillator when R4 = 20k.

The circuit is certainly not oscillating in a sustainable way as the output voltage fluctuates around 3.3mV. Next, change the value of R4 to 21k and run a new Transient Test. This time you will get a fairly large oscillation between -5V and +5V as show below.

The output voltage of the Wien Bridge Oscillator when R4 = 21k.

In order to calculate the oscillation frequency, first zoom in the graph window by clicking the "Zoom In" button of the Graph Toolbar. Then use the "Delta Tool" of the Graph Toolbar to measure the distance between two successive peaks of the sinusoidal signal. The period is about 78.5μs, which gives an oscillation frequency of 12.75kHz.

Measuring the signal period on a close-up of the output voltage of the Wien Bridge Oscillator when R4 = 21k.

Next, reduce the value of R4 further to 20.25k and run a new Transient Test again, but this time with a stop time of 50ms. You will notice that the sustainable oscillations start at much later time around 30ms with a reduced peak-to-peak level. If you zoom in the graph and measure the signal period, you will note that it has reduced to 71.5μs, which gives an oscillation frequency of about 14kHz, fairly close to the design frequency.

The output voltage of the Wien Bridge Oscillator when R4 = 20.25k.

Analyzing the Wien Bridge Oscillator and Explaining Its Behavior

The above behavior of the circuit can be explain using the feedback theory. The Wien Bridge Oscillator is indeed an non-inverting Op-Amp amplifier with positive feedback provided using two series and shunt RC impedances:

[math]Z_1(s) = \frac {R . \frac{1}{sC}}{R + \frac{1}{sC}} [/math]

[math]Z_2(s) = R + \frac{1}{sC} [/math]

The gain of the non-inverting amplifier is given by:

[math]A = 1 + \frac{R_4}{R_3} [/math]

The feedback gain can be found from the voltage divider:

[math] \beta (s) = \frac{Z_1(s)}{Z_1(s) + Z_2(s)} = \frac {sRC} {s^2 R^2 C^2 + 3sRC + 1} [/math]

The Barkhausen criterion for oscillation requires that T(s) = Aβ(s) ≥ 1. Substituting s = jω, one can write:

[math] T(j\omega) = A \beta(j\omega) = \frac {j\omega RC} {(1-\omega ^2 R^2 C^2)+ 3j\omega RC} [/math]

A zero phase shift can be achieved only if

[math] 1-\omega ^2 R^2 C^2 = 0 [/math]

which lead to the oscillation frequency ωo = 1/(RC). This further simplifies the Barkhausen criterion to

[math] T(j\omega) = \frac {A}{3} \ge 1[/math]

which means that A = 1 + R4/R3 ≥ 3 or R4 ≥ 2R3. This shows that setting R4 = 2R3 provides the threshold of oscillation. For R4 > 2R3, positive feedback causes the oscillations to grow indefinitely.

 

Back icon.png Back to RF.Spice A/D Tutorial Gateway