Miniproject: Wien-Bridge Oscillators

advertisement
Analog and Telecommunication Electronics
Prof. Dante Del Corso
Miniproject: Wien-Bridge Oscillators
Student Name: Emilio Orlandini
Student ID: 221773
A.Y. 2014/2015
Index
INTRODUCTION
1. Oscillators generalities
1.1 Sinewave oscillator................................................................................pag. 3
1.2 Requirements for oscillations.................................................................pag. 3
1.3 Phase Shift in the oscillator....................................................................pag. 5
1.4 Gain in the oscillator..............................................................................pag. 6
2. The Wien-Bridge oscillator
2.1 Wien-Bridge oscillator...........................................................................pag. 7
2.2 Linear Analysis......................................................................................pag. 8
2.3 Introduction of non-linear elements.....................................................pag. 10
2.4 Lamp Stabilised Wien-Bridge Oscillator.............................................pag. 11
2.5 Diode stabilised Wien-Bridge Oscillator..............................................pag. 14
REFERENCES
1|Pag.
Introduction
Circuits that produce a specific, periodic waveform without any input signal are called
“Oscillators”. They can generate waveforms such as square, sinusoidal, triangular and
so on. They are generally composed by some active elements surrounded by passive
components such as resistors, capacitors and inductors. Basically, we divide oscillators
in two families: relaxation and sinusoidal. Relaxation oscillators generate waveforms
which are not sinusoidal, such as triangular, square, sawtooth, while sinusoidal
oscillators generate sinusoidal waveforms with a specific frequency (or period) and
amplitude. Oscillators may use amplifiers with external components, or crystals that
internally generate the oscillation. In this miniproject we are dealing with sine wave
oscillators, and in particular our attention is focused on Wien Bridge configuration,
which is based on an OpAmp.
2|Pag.
1 Oscillators generalities
1.1 Sine-wave oscillators
OpAmp oscillators are unstable circuits, but ones that are intentionally designed to
remain in an unstable or oscillatory state. Oscillators are useful for generating uniform
signals that are used as a reference in applications such as audio, function generators,
digital systems and communication systems. Sinewave oscillators base on an OpAmp
operate without any externally-applied input signal. Some combination of positive and
negative feedback is implemented in order to drive the OpAmp into an unstable state.
OpAmp oscillators are restricted to a low frequency spectrum because OpAmps do not
have the required bandwidth to achieve low phase shift at high frequencies. Voltagefeedback OpAmps are usually limited to a low kHz range. Crystal oscillators, instead,
are used in high-frequency applications up to the hundreds of MHz range.
1.2 Requirements for oscillation
The fundamental characteristic of an oscillator is non linearity; in order to give rise to
oscillations the system must be initially unstable. A principle scheme is shown in figure
1.1.
Figure 1.1: canonical form of a feedback system
Since:
π‘‰π‘œπ‘’π‘‘ = 𝐸 · 𝐴
(1)
𝐸 = 𝑉𝑖𝑛 + 𝛽 · π‘‰π‘œπ‘’π‘‘
(2)
3|Pag.
Substituing E in (1), we obtain:
π‘‰π‘œπ‘’π‘‘
𝐴
= 𝑉𝑖𝑛 − 𝛽 · π‘‰π‘œπ‘’π‘‘
(3)
And collecting the terms in π‘‰π‘œπ‘’π‘‘ yelds:
1
𝑉𝑖𝑛 = π‘‰π‘œπ‘’π‘‘ ( + 𝛽)
𝐴
(4)
Rearranging the elements produces equation 5, which is the classical form of a
feedback expression:
π‘‰π‘œπ‘’π‘‘
𝑉𝑖𝑛
=
𝐴
1+𝐴𝛽
(5)
Oscillators does not need any input signal; they only use a fraction of the output signal
created by the feedback network as the input signal.
Oscillations occurs when the feedback system is not able to find a steady-state since its
transfer function cannot be satisfied. This happens when the denominator is equal to
zero, i.e. when 1 + 𝐴𝛽 = 0 or 𝐴𝛽 = -1. In the design of an oscillator, it must be ensured
that 𝐴𝛽 = -1. This is called the Barkhausen criterion. For a positive feedback system,
the expression is A = 1∠0° and the sign of the A term is negative in equation (5). This
criterion implies that the magnitude of the loop gain is unity, with a corresponding
phase shift of 180° (due to the minus sign).
As the phase shift reaches 180° and |𝐴𝛽| = 1, the output voltage of the unstable system
ideally tends to infinity but, in a real system it is limited to finite values of power
supply. At this point, one of three things can occur:
1) Nonlinearity in saturation causes the system to become stable and lock-up to the
current supply voltage;
2) The initial change causes the system to saturate and stay that way for a long time
before it becomes linear and heads for the opposite power rail;
3) The system stays linear and reverses direction, heading for the opposite power
rail.
4|Pag.
The second case produces highly distorted oscillations (usually quasi-square waves),
the resulting oscillators are called relaxation oscillators. The third case, instead,
produces a sine-wave oscillator.
1.3 Phase Shift in the Oscillator
The 180° phase shift required by the Barkhausen criterion is introduced by active and
passive components. Oscillators are made dependent on passive component phase shift
because it is very accurate. The phase shift contributed by active components is
minimized because it varies with temperature, has a wide initial tolerance, and is device
dependent.
A single RL or RC circuit contributed up to 90° phase shift per pole, and since 180° of
phase shift is required for oscillation, at least two poles must be used in the oscillator
design. An LC circuit has two poles, but LC and LR oscillators are not suitable for lowfrequency applications because inductors at low frequencies are expensive, heavy and
highly nonideal. LC oscillators are designed tipically in high frequency applications,
where the inductor size, weight and cost are less significant. When RC sections are
cascaded, the phase shift multiplies by the number of sections n (figure 1.2).
Figure 1.2: Phase plot of RC sections [1]
5|Pag.
In the region where phase shift is 180°, the frequency oscillation is very sensitive to
the phase shift. Thus, a tight frequency specification requires that the phase shift, dΙΈ,
must be kept within too much narrow limits for there to be only small variations in
frequency, dω, at 180°. Figure 1.2 shows that the value of
dΙΈ⁄
dω
at the oscillator
frequency is unacceptably small. Thus, in order to have a much higher dΙΈ⁄dω, tipically
four RC sections are used.
Crystal or ceramic resonators make the most stable oscillators because resonators have
an extremely high dΙΈ⁄dω as a result of their nonlinear properties. Anyway, OpAmps are
not generally used with crystal or ceramic resonator oscillators because of OpAmps’
low bandwidth. Experience shows that rather than using a low-frequency resonator for
low frequencies, it is more cost effective to build a high frequency crystal oscillator,
count the output down, and then fitler the output to obtain the low frequency [1].
1.4 Gain in the Oscillator
According to the Barkhausen criterion, the oscillator gain must be one in magnitude at
the oscillation frequency. When the gain exceeds unity with a phase shift of -180°, the
nonlinearity of the active device reduces the gain to unity and the circuits oscillates.
The nonlinearity becomes significant when the amplifiers get close to the supply
voltage level, since saturation reduces the active device (transistor) gain. The worstcase design usually requires nominal gains exceeding unity, but excess gain causes
increased distortion of the output sinewave.
When the gain is too low, oscillations cease under worst case conditions, and when the
gain is too high, the output wave form looks more like a squarewave than a sinewave.
Distortion is a direct result of excessive gain overdriving the amplifier. Thus, gain must
be carefully controlled. The more stable the gain, the better the purity of the sinewave
output.
6|Pag.
2 The Wien-Bridge oscillator
2.1 Wien-Bridge Oscillator
There are many types of sinewave oscillator circuits. In an application, the choice
depends on the frequency and the desired monotonicity of the output waveform. This
section is focused on the “Wien Bridge configuration”.
The Wien Bridge is one of the simplest and best known oscillators and is largely used
in circuits for audio applications [1]. The basic configuration of a Wien-Bridge
oscillator is shown in figure 2.1.
Figure 2.1: Wien-Bridge circuit schematic [3]
7|Pag.
2.2 Linear Analysis
The first goal in the analysis of an oscillator regards the trigger of oscillations. A couple
of poles with positive real part is necessary in order to the system to oscillate. But, once
oscillations occurs, the positive real part poles must be shifted on the imaginary axis to
have a stable sinewave (this will be explained in details in the nonlinear analysis). [2]
Looking at the scheme to analyze the linear behaviour of the Wien-Bridge oscillator
(figure 2.2), we can identify the feedback block B(ω) and the gain block A.
Figure 2.2: Scheme of the Wien-Bridge oscillator for the linear analysis [2]
Let us evaluate the expression of B(ω):
B(ω) =
Since 𝑍𝑝 =
𝑅𝑝
1+π‘—πœ”πœπ‘
and 𝑍𝑓 =
1+ π‘—πœ”πœπ‘ 
π‘—πœ”πΆπ‘ 
𝑉𝑓
π‘‰π‘œ
=
𝑍𝑝
𝑍𝑝 + 𝑍𝑓
(5)
, substituting these values in (5) we obtain
(6):
B(ω) =
π‘—πœ”πΆπ‘  𝑅𝑝
π‘—πœ”πΆπ‘  𝑅𝑝 +1+π‘—πœ”(πœπ‘ +πœπ‘  )+(π‘—πœ”)2 πœπ‘ πœπ‘ 
(6)
8|Pag.
Then, imposing 𝑅𝑠 = 𝑅𝑝 = R, 𝐢𝑠 = 𝐢𝑝 = C, πœπ‘  = πœπ‘ = τ, the final expression
(7) is:
B(ω) =
Now, since A = 1+
𝑅2
𝑅1
1
(7)
1
3+𝑗(πœ”πœ− πœ”πœ)
(see figure 2.1, A is the gain of an OpAmp non-inverting
amplifier), and 𝛽(π‘—πœ”) = 𝐡(π‘—πœ”) we get:
A𝛽(π‘—πœ”) = (1−πœ”2
π‘—πœ”π‘…πΆπ΄
𝑅 2 𝐢 2 )+3π‘—πœ”π‘…πΆ
(8)
Now, according to Barkhausen criterion (for a positive feedback system), we must
satisfy:
1
∠A𝛽(π‘—πœ”) = 0 ⇒ πœ”2 𝑅 2 𝐢 2 − 1 = 0 ⇒ πœ” = 𝑅𝐢 = πœ”0
at πœ” = πœ”0 we have:
𝐴𝛽 (π‘—πœ”0 ) =
𝐴
3
⇒ |𝐴𝛽 (π‘—πœ”0 )| = 1 ⇒ 𝑅2 = 2𝑅1 .
Summarizing, we have found two conditions to be satisfied in order to have a sinewave
at the output at frequency π‘“π‘œπ‘’π‘‘ :
π‘“π‘œπ‘’π‘‘ =
1
2πœ‹π‘…πΆ
𝑅2 = 2𝑅1
(9)
(10)
In figure 2.3, the output waveform is shown for different conditions of the A gain:
9|Pag.
Figure 2.4: output waveforms for different values of A [2]
2.3 Introduction of non-linear elements
As we can see in figure 2.4, what we want is to force the system to oscillate (A>3), and
then to get stable oscillations (A=3). This behaviour can only be obtained by
introducing some nonlinearity in our circuit. Different ways can be exploited in order
to have nonlinearity, such as a lamp, diodes, in general something which resistance
varies with increasing of potential drop across it. This is straightforward to understand:
at first we want A>3, so 𝑅2 > 2𝑅1 , but, when the magnitude of the output voltage
reaches a desired value, we need 𝑅2 = 2𝑅1 .
10 | P a g .
2.4 Lamp Stabilised Wien-Bridge Oscillator
The first Wien-Bridge stable oscillator was developed by Bill Hewlett in the late 1930s,
as his Stanford’s Master thesis. He introduced a light bulb in order to stabilize the gain
without producing distortion. It was then commercialized as HP200A audio oscillator
[4]. It can still be built using similar principles to the early Hewlett Packard versions,
but with modern components [5] (figure 2.6).
Figure 2.6: Basic lamp stabilized Wien Bridge oscillator [5]
It is a property of filament lamps that the resistance of the tungsten filament increases
in a non-linear manner as the filament heats up. The gain of the amplifier is set by
𝐴 =
𝑅3 +π‘…πΏπ‘Žπ‘šπ‘
π‘…πΏπ‘Žπ‘šπ‘
(11)
Therefore the greater the resistance of the lamp, the lower the amplifier gain. By
choosing a suitable lamp, the gain of the amplifier can be automatically controlled over
an appropriate range. Usually, a lamp with a maximum current flow of around 50mA
or less is used, to give an initial gain of more than 3 as the oscillator starts, falling
quickly to 3 as the lamp heats up. In figure 2.7 there is a graph showing how positive
temperature coefficient resistance varies with voltage.
11 | P a g .
Figure 2.7: Non-linear resistance of a filament lamp [5]
The useful area of the lamp characteristic, where the largest change in resistance occurs
is shaded green, the oscillators amplitude is stabilised by making use of this area. To
find a value for 𝑅3 that will give the correct amount of gain at start up and during
oscillation, its value should be slightly greater than twice the value of the lamps
resistance at the lower end of the green shaded area (i.e. 2 x 30Ω = 60Ω) to give a gain
>3, but no greater than twice the value of the lamp’s resistance at the upper limit of its
useful slope (i.e. 2 x 75 = 150 Ω), the gain should then stabilise at 3, with the oscillator
providing an undistorted sinewave output. The realization and output waveform of the
lamp-stabilised circuit is shown in figure 2.8:
Figure 2.8: realization of a lamp-stabilised Wien Bridge oscillator (left) and its output waveform
(right) [5].
12 | P a g .
The design formulae are the following:
π‘“π‘œπ‘ π‘ =
𝑅=
1
2πœ‹π‘…πΆ
(12)
1
π‘“π‘œπ‘ π‘ 2πœ‹πΆ
𝐢 = 1/(π‘“π‘œπ‘ π‘ 2πœ‹π‘…)
(13)
(14)
In order to obtain an output frequency of 159Hz (fig. 2.8), the component list to build
the circuit is the following:
ο‚· 𝐼𝐢1 = 𝐿𝑀324 (OpAmp)
ο‚· 𝐢1 = 𝐢2 = 100𝑛𝐹
ο‚· 𝑅1 = 𝑅2 = 10π‘˜Ω
ο‚· 𝑅3 = 68Ω
ο‚· πΏπ‘Žπ‘šπ‘ = 𝑇1 5𝑉 45π‘šπ΄ π‘€π‘–π‘Ÿπ‘’ 𝑒𝑛𝑑𝑒𝑑 π‘™π‘Žπ‘šπ‘ (suitable from Rapid Electronics UK,
May 2015)
ο‚· 𝑆𝑒𝑝𝑝𝑙𝑦 π‘£π‘œπ‘™π‘‘π‘Žπ‘”π‘’ ±9V
13 | P a g .
2.5 Diode stabilised Wien-Bridge Oscillator
An alternative to lamp stabilization is provided by using a pair of diodes in parallel
with the feedback resistor as shown in figure 2.9.
Figure 2.9: Basic diode stabilized Wien-Bridge oscillator
In this circuit, the ratio of the non-inverting amplifier is controlled by the ratio between
𝑅3 and 𝑅4 . Initially, it will be slightly greater than 3, in order to allow oscillations to
start. Once the feedback signal from the output produces a waveform across 𝑅3 that
approaches 0.6𝑉𝑝𝑝 , the diodes begin to conduct. Their forward resistance reduces, and
since they are in parallel with 𝑅3 , this reduces the value of 𝑅3 and the amplifier gain
as well. A design example, for a π‘“π‘œπ‘ π‘ = 132𝐻𝑧, has been carried out with the following
components:
ο‚· IC LM224N (OpAmp)
ο‚· 𝐢1 = 𝐢2 = 100𝑛𝐹
ο‚· 𝑅1 = 𝑅2 = 12π‘˜Ω
ο‚· 𝑅3 = 80Ω
ο‚· 𝑅4 = 22Ω
ο‚· 𝑆𝑒𝑝𝑝𝑙𝑦 π‘£π‘œπ‘™π‘‘π‘Žπ‘”π‘’ ±9V
The gain in controlled by the
𝑅3
𝑅4
ratio, which is 3.63. The output waveform for this
configuration is shown in figure 2.10:
14 | P a g .
Figure 2.10: Output waveform (left) and frequency spectrum (right) for a diode stabilised oscillator
with large gain [6]
As it can be seen from the output waveform, the main problem of the diode stabilised
configuration is that the output is more prone to distortion that in the lamp stabilised
circuit, as the diodes will tends to distort the waveform peaks if the gain set by 𝑅3 and
𝑅4 is slightly larger than needed. This also means that the oscillator’s output amplitude
is somewhat restricted if distortion is to be minimized. Adding a lowpass filter could
also improve the quality of the signal in terms of harmonics.
15 | P a g .
References
[1] Ron Mancini and Richard Palmer, Design of OpAmp sinewave oscillators,
SLOA060, March 2001.
[2] “Elettronica delle telecomunicazioni”, course material by Prof. Giovanni Breglio
from “Università degli studi di Napoli Federico II”, a.y. 2013/2014.
[3] The Wien Bridge oscillator, website tutorial, Electronics Tutorial.
[4] HP Model 200A audio oscillator, 1939, HP website Model 200A.
[5] Wien Bridge Oscillators, website tutorial, Learn About Electronics, Wien Bridge
Oscillator.
[6] Measurements carried out at Politecnico di Torino - Sede Centrale - Cittadella
Politecnica, 2nd floor, LED2.
16 | P a g .
Download