- Relaxation oscillator
A relaxation oscillator is an oscillator in which a
capacitor is charged gradually and then discharged rapidly. It is usually implemented with aresistor orcurrent source , acapacitor , and a "threshold" device such as aneon lamp ,diac ,unijunction transistor , orGunn diode . For simplification below, a single "threshold" device will be replaced by a set ofcomparator s and aSR Latch .The capacitor is charged through the resistor, causing the
voltage across the capacitor to approach the charging voltage on an exponential curve. In parallel with the capacitor is the threshold device. Such devices don't conduct at all until the voltage across them reaches some threshold (trigger) voltage. They then conduct heavily, quickly discharging the capacitor. When the voltage across the capacitor drops to some lowerthreshold voltage , the device stops conducting and the capacitor can begin charging again, repeating the cycle. If the threshold element is aneon lamp , the circuit also provides a flash of light with each discharge of the capacitor.The electrical output of a relaxation oscillator is usually a
sawtooth wave . If only a small portion of the exponential ramp is used (that is, if the triggering voltage of the threshold device is much lower than the charging voltage source), the ramp will approximate a linear ramp but if a truly linear sawtooth is required, then the charging resistor should be replaced by some sort ofconstant current source .Op Amp-Based Relaxation Oscillator
One example of a relaxation oscillator is a hysteretic oscillator, named this way because of the
positive feedback loop on the operational amplifier, which exhibitshysteresis .General Concept
The system is in unstable equilibrium if both the inputs and outputs of the op amp are at zero volts. The moment any sort of noise, be it thermal or
electromagnetic noise brings the output of the op amp above zero (the case of the op amp output going below zero is also possible, and a similar argument to what follows applies), the positive feedback in the op amp results in the output of the op amp saturating at the positive rail.In other words, because the output of the op amp is now positive, the non-inverting input to the op amp is also positive, and continues to increase as the output increases, due to the
voltage divider . After a short time, the output of the op amp is the positive voltage rail, .The inverting input and the output of the op amp are linked by a series
RC circuit . Because of this, the inverting input of the op amp asymptotically approaches the op amp output voltage with atime constant RC. At the point where voltage at the inverting input is greater than the non-inverting input, the output of the op amp falls quickly due to positive feedback.This is because the non-inverting input is less than the inverting input, and as the output continues to decrease, the difference between the inputs gets more and more negative. Again, the inverting input approaches the op amp's output voltage asymptotically, and the cycle repeats itself once the non-inverting input is greater than the inverting input, hence the system oscillates.
Example: Differential Equation Analysis of Op-Amp based Relaxation Oscillator
is set by across a resistive
voltage divider ::
is obtained using
Ohm's law and thecapacitor differential equation ::
Rearranging the differential equation into standard form results in the following:
:
Notice there are two solutions to the differential equation, the driven or particular solution and the homogeneous solution. Solving for the driven solution, observe that for this particular form, the solution is a constant. In other words, where A is a constant and .
:
:
Using the
Laplace transform to solve thehomogeneous equation results in:
is the sum of the particular and homogeneous solution.
:
:
Solving for B requires evaluation of the initial conditions. At time 0, and . Substituting into our previous equation,
:
:
Frequency of Oscillation
Note that half of the period (T) is the same as the first time that switches. This occurs when .
:
:
:
:
:
:
This analysis is only partially correct. The derived frequency of oscillation is based on the time period of the initial charge, which is not the same as subsequent charges/discharges and therefore incorrect.
This can be visually verified by examining the figure of simulation results that accompanies this article. Notice the initial charge time is shorter than all subsequent periods, implying that the derived frequency (based on this initial time period) would be higher than its true frequency of operation.
The initial conditions were that V0 = 0. This is true when the system is at rest and sufficient for the initial charge. But after the first and every subsequent transition (when Vt = Vdd/2 or when Vt = Vss/2) this initial condition is no longer true.
For subsequent transitions in which the capacitor is charging the initial condition would be that V0 = Vss/2 and not V0 = 0. This effectively changes the value of B in the derivation above:
At time 0, Vout = Vdd and V_ = Vss/2.
Vss/2 = Vdd + B.
B = Vss/2 - Vdd. (B does not equal -Vdd).So, the charging equation becomes (for all charging periods except the initial charge):
See also
*
Multivibrator
*RC oscillator
*Solar Engine
*FitzHugh-Nagumo model
Wikimedia Foundation. 2010.