Advertisement

The RC Oscillator Circuit

The RC Oscillator Circuit

RC Oscillators use a combination of an amplifier and an RC feedback network to produce output oscillations due to the phase shift between the stages

A single stage transistor amplifier can produce 180o of phase shift between its output and input signals when connected as a common-emitter type amplifier and we can use this configuration to produce an RC oscillator circuit.

But we can configure transistor stages to operate as oscillators by placing resistor-capacitor (RC) networks around the transistor to provide the required regenerative feedback without the need for a tank circuit. Frequency selective RC coupled amplifier circuits are easy to build and can be made to oscillate at any desired frequency by selecting the appropriate values of resistance and capacitance.

For an RC oscillator to sustain its oscillations indefinitely, sufficient feedback of the correct phase, that is positive (in-phase) Feedback must be provided along with the voltage gain of the single transistor amplifier being used to inject adequate loop gain into the closed-loop circuit in order to maintain oscillations allowing it to oscillates continuously at the selected frequency.

rc oscillator

In an RC Oscillator circuit the input is shifted 180o through the feedback circuit returning the signal out-of-phase and 180o again through an inverting amplifier stage to produces the required positive feedback. This then gives us “180o + 180o = 360o” of phase shift which is effectively the same as 0o, thereby giving us the required positive feedback. In other words, the total phase shift of the feedback loop should be “0” or any multiple of 360o to obtain the same effect.

In a Resistance-Capacitance Oscillator or simply known as an RC Oscillator, we can make use of the fact that a phase shift occurs between the input to a RC network and the output from the same network by using interconnected RC elements in the feedback branch, for example.

RC Phase-Shift Network

rc phase shift network

 

The circuit on the left shows a single resistor-capacitor network whose output voltage “leads” the input voltage by some angle less than 90o. In a pure or ideal single-pole RC network. it would produce a maximum phase shift of exactly 90o, and because 180o of phase shift is required for oscillation, at least two single-poles networks must be used within an RC oscillator design.

However in reality it is difficult to obtain exactly 90o of phase shift for each RC stage so we must therefore use more RC stages cascaded together to obtain the required value at the oscillation frequency. The amount of actual phase shift in the circuit depends upon the values of the resistor (R) and the capacitor (C), at the chosen frequency of oscillations with the phase angle ( φ ) being given as:

RC Phase Angle

rc phase shift equation

 

Where: XC is the Capacitive Reactance of the capacitor, R is the Resistance of the resistor, and ƒ is the Frequency.

In our simple example above, the values of R and C have been chosen so that at the required frequency the output voltage leads the input voltage by an angle of about 60o. Then the phase angle between each successive RC section increases by another 60o giving a phase difference between the input and output of 180o (3 x 60o) as shown by the following vector diagram.

Vector Diagram

rc oscillator vector diagram

 

So by cascading together three such RC networks in series we can produce a total phase shift in the circuit of 180o at the chosen frequency and this forms the bases of a “RC Oscillator” otherwise known as a Phase Shift Oscillator as the phase angle is shifted by an amount through each stage of the circuit. Then the phase shift occurs in the phase difference between the individual RC stages. Conveniently op-amp circuits are available in quad IC packages. For example, the LM124, or the LM324, etc. so four RC stages could also be used to produce the required 180o of phase shift at the required oscillation frequency.

We know that in an amplifier circuit either using a Bipolar Transistor or an Inverting Operational Amplifier configuration, it will produce a phase-shift of 180o between its input and output. If a three-stage RC phase-shift network is connected as a feedback network between the output and input of an amplifier circuit, then the total phase shift created to produce the required regenerative feedback is: 3 x 60o + 180o = 360o = 0o as shown.

basic rc feedback circuit

 

The three RC stages are cascaded together to obtain the required slope for a stable oscillation frequency. The feedback loop phase shift is -180o when the phase shift of each stage is -60o. This occurs when jω = 2piƒ = 1/1.732RC as (tan 60o = 1.732). Then to achieve the required phase shift in an RC oscillator circuit is to use multiple RC phase-shifting networks such as the circuit below.

Basic RC Oscillator Circuit

rc oscillator circuit design

 

The basic RC Oscillator which is also known as a Phase-shift Oscillator, produces a sine wave output signal using regenerative feedback obtained from the resistor-capacitor (RC) ladder network. This regenerative feedback from the RC network is due to the ability of the capacitor to store an electric charge, (similar to the LC tank circuit).

This resistor-capacitor feedback network can be connected as shown above to produce a leading phase shift (phase advance network) or interchanged to produce a lagging phase shift (phase retard network) the outcome is still the same as the sine wave oscillations only occur at the frequency at which the overall phase-shift is 360o.

By varying one or more of the resistors or capacitors in the phase-shift network, the frequency can be varied and generally this is done by keeping the resistors the same and using a 3-ganged variable capacitor because capacitive reactance (XC) changes with a change in frequency as capacitors are frequency-sensitive components. However, it may be required to re-adjust the voltage gain of the amplifier for the new frequency.

If the three resistors, R are equal in value, that is R1 = R2 = R3, and the capacitors, C in the phase shift network are also equal in value, C1 = C2 = C3, then the frequency of oscillations produced by the RC oscillator is simply given as:

rc oscillator frequency
  • Where:
  • ƒr  is the oscillators output frequency in Hertz
  • R   is the feedback resistance in Ohms
  • C   is the feedback capacitance in Farads
  • N   is the number of RC feedback stages.
 

This is the frequency at which the phase shift circuit oscillates. In our simple example above, the number of stages is given as three, so N = 3 (√2*3 = √6). For a four stage RC network, N = 4 (√2*4 = √8), etc.

Since the resistor-capacitor combination in the RC Oscillator ladder network also acts as an attenuator, that is the signal reduces by some amount as it passes through each passive stage.

It could be assumed that the three phase shift sections are independent of each other but this is not the case as the total accumulative feedback attenuation becomes -1/29th ( Vo/Vi = β = -1/29 ) across all three stages.

Thus the voltage gain of the amplifier must be sufficiently high enough to overcome these passive RC losses. Clearly then in order to produce a total loop gain of -1, in our three stage RC network above, the amplifier gain must be equal too, or greater than, 29 to compensate for the attenuation of the RC network.

The loading effect of the amplifier on the feedback network has an effect on the frequency of oscillations and can cause the oscillator frequency to be up to 25% higher than calculated. Then the feedback network should be driven from a high impedance output source and fed into a low impedance load such as a common emitter transistor amplifier but better still is to use an Operational Amplifier  as it satisfies these conditions perfectly.

The Op-amp RC Oscillator

When used as RC oscillators, Operational Amplifier RC Oscillators are more common than their bipolar transistors counterparts. The oscillator circuit consists of a negative-gain operational amplifier and a three section RC network that produces the 180o phase shift. The phase shift network is connected from the op-amps output back to its “inverting” input as shown below.

Op-amp Phase-lead RC Oscillator Circuit

op-amp phase lead rc oscillator circuit

 

As the feedback is connected to the inverting input, the operational amplifier is therefore connected in its “inverting amplifier” configuration which produces the required 180o phase shift while the RC network produces the other 180o phase shift at the required frequency (180o + 180o). This type of feedback connection with the capacitors in series and the resistors connected to ground (0V) potential is known as a phase-lead configuration. In other words, the output voltage leads the input voltage producing a positive phase angle.

But we can also create a phase-lag configuration by simply changing the positions of the RC components so that the resistors are connected in series and the capacitors are connected to ground (0V) potential as shown. This means that the output voltage lags the input voltage producing a negative phase angle.

Op-amp Phase-lag RC Oscillator Circuit

op-amp phase lag rc oscillator circuit

 

However, due to the reversal of the feedback components, the orginal equation for the frequency output of the phase-lead RC oscillator is modified to:

phase lag frequency

 

Although it is possible to cascade together only two single-pole RC stages to provide the required 180o of phase shift (90o + 90o), the stability of the oscillator at low frequencies is generally poor.

One of the most important features of an RC Oscillator is its frequency stability which is its ability to provide a constant frequency sine wave output under varying load conditions. By cascading three or even four RC stages together (4 x 45o), the stability of the oscillator can be greatly improved.

RC Oscillators with four stages are generally used because commonly available operational amplifiers come in quad IC packages so designing a 4-stage oscillator with 45o of phase shift relative to each other is relatively easy.

RC Oscillators are stable and provide a well-shaped sine wave output with the frequency being proportional to 1/RC and therefore, a wider frequency range is possible when using a variable capacitor. However, RC Oscillators are restricted to frequency applications because of their bandwidth limitations to produce the desired phase shift at high frequencies.

RC Oscillator Example No1

An operational amplifier based 3-stage RC Phase Shift Oscillator is required to produce a sinusoidal output frequency of 4kHz. If 2.4nF capacitors are used in the feedback circuit, calculate the value of the frequency determining resistors and the value of the feedback resistor required to sustain oscillations. Also draw the circuit.

The standard equation given for the phase shift RC Oscillator is:

resonant frequency

 

The circuit is to be a 3-stage RC oscillator which will therefore consist of equal resistors and three equal 2.4nF capacitors. As the frequency of oscillation is given as 4.0kHz, the value of the resistors are calculated as:

oscillation frequency

 

The operational amplifiers gain must be equal to 29 in order to sustain oscillations. The resistive value of the oscillation resistors are 6.8kΩ, therefore the value of the op-amps feedback resistor Rƒ is calculated as:

feedback resistor

RC Oscillator Op-amp Circuit

op amp circuit

 

In the next tutorial about Oscillators, we will look at another type of RC Oscillator called a Wien Bridge Oscillators which uses resistors and capacitors as its tank circuit to produce a low frequency sinusoidal waveform.

147 Comments

Join the conversation

Error! Please fill all fields.

  • Ahmet Kelem

    We can use Colpitz oscillator circuit for motor coil inductance function as rotor electrical angle position.(Motor coil is in resonance coil LC tank circuit)
    Oscillator frequency is iron rotor position.
    And we can measure angular position of motor rotor.
    And This is a rotary Encoder?!

  • Ahmet yüksel

    Thanks your very usefull sharings…
    Hi from Türkiye.

  • Benoit Meulle-Stef

    Is it possible to make one frequency adjustable with an IC? Looking to get from 0.3Hz to 10Hz ruffly
    Cheers
    Ben

  • nawenelastone

    you directly entered my point of failure

  • Navaratna Mote

    Dear author
    Greetings.
    Need to know the active component numbers ( but,fet,op- amp) and values of passive components for various sinusoidal oscillators ( RC phase shift with 3 stages of RC,weinbridge, Hartley and colpitts), to illustrate better to my students.
    I tried with fixed value and/ or decade boxes of R,C,L. But failed.
    Seek your help in this regard.
    Regards

  • alpha

    Hello! Why does capacitor’s output voltage leads the input voltage? I understand why the current leads the voltage but I don’t understand why output voltage leads input voltage.

    Thanks!

    • Wayne Storr

      Please read the tutorial about Capacitors in AC Circuits

      • alpha

        I have just read it but I could not find any information about the relationship of capacitor OUTPUT and INPUT voltage. Also cant find the explanation in low pass and high pass filter tutorials. The information that capacitor output voltage LEADS the capacitor input voltage is just a sentence here without explanation:

        Passive High Pass Filter

        “Also we can see that the phase angle ( Φ ) of the output signal LEADS that of the input and is equal to +45o at frequency ƒc”

        But what is the physical reason? How can be the output voltage faster than the input voltage?

        • Niccolas Cossaube

          Draw a vector diagram with current trough capacitor and resistor as reference, Vout is in phase with current. Vcapcitor lags current by 90 °. Vin is the vectorsum of Vout and Vcapacitor. This sum lags Vout, so Vout leads Vin.

  • Ramakrishna.Sudhakar

    Basically how many types of Oscilators are there? what are they? I see 7 types is there anything more?

  • Damian Talbert

    I’m having some difficulty reconciling the equations under the RC Phase Angle section and your later assertion that “ω = 2pƒ = 1.732RC as (tan 60o = 1.732)”. No matter how I structure the mathematics I keep ending up with the tangent in the denominator of the fraction.

    Could you explain in more detail how you achieved your result please?

    • Wayne Storr

      tan(Θ) = Xc/R = (1/jωC)/R

      Thus: tan(60) = 1.732 = 1/jωRC

      ∴ jω = 2pif = 1/(1.732RC)

      There was a typo in the tutorial which has been corrected.

  • waqar razaque bajkani

    good

  • Gerardo Ruiz D. CET & CA

    Hello, excellent explanation about the oscillator with phase shift, it will help me in the classes to my students.
    Greetings.

  • Sneha

    Thank you sir

  • YAHAYA NAFIU

    Thanks for your help I like the way you are helping me.

  • Shibananda singh

    I want this question answer in pdf

  • Abdul Razaq

    Sir I need experiment ➡ “RC phase shift oscillator ” with orderly writes Objective ,Equipment Components and Procedure .
    Or send me book which consist of this experiment .

  • Godfrey Timothy U.

    Is phase-shift oscillator the same as RC oscillator?

    • Wayne Storr

      A Phase-shift Oscillator uses an RC ladder network to provide the required 180o phase shift. An RC Oscillator uses an RC coupled amplifier circuit, for example Wien Bridge, Twin-T to produce oscillations. Then they are two different types.

  • Tiku Etage

    Please how can the transfer functions of both the feedback network and the open loop amplifier with gain of the RC oscillator?

  • miles tracy

    I need to buy an oscilloscope for learning purposes. what frequency range should I buy.

  • harindranath k s nath k s

    ocillater circuit with memmory

  • Rick Shaw

    I see your op-amp circuit is still wrong. Perhaps you will believe a circuit simulator instead (Simetrix). Using a voltage controlled voltage source with a gain of a million (about as ideal an op-amp as you can get) and breaking the loop where the 1st phase shift cap meets the output we expect zero phase shift and unity gain between input and output when we drive the said cap at the design frequency, ie 6497.433 Hz.
    With the circuit as drawn, zero phase shift occurs somewhere between 9188.6 Hz and 9188.7 Hz. At this frequency the output shows a gain of 7.664dB relative to the input. This is a 41% frequency error.
    If we apply the modification I suggest (move 3rd phase shift resistor between 3rd cap and junction of inverting input and Rf instead to ground) we get zero phase shift at some frequency between 6497.4 Hz and 6497.5 Hz. The output also crosses zero dB wrt the input between these frequencies. This is exactly what we expect.

    • Anand Moghe

      Yes……Since the inverting input of the opamp is at virtual ground (0 volts), the last 6.8K resistor should be connected between the 3rd capacitor and the inverting input of opamp so that there will be no loading on the 3-stage RC network while still getting the required gain of -29.
      And i guess, the 41% error that you have mentioned is due to the fact that in the circuit shown , both the ends of the 3rd 6.8K resistor are effectively connected to ground.

      • Wayne Storr

        If, as you are suggesting, there requires to be an additional resistor between the 3rd capacitor and the inverting input of op-amp, then this additional resistor would be in parallel with the final 6k8 resistor via the virtual ground. If we choose a value for this additional resistor of say, 10kΩ to prevent it from loading the RC network. Then, the value of the last resistor of the RC network would have to be recalculated so that this in parallel with the new 10kΩ resistor gives the required value of 6k8 for exact oscillation frequency. That is 21k3 Ω’s. Guess this was not thought about.

    • Alvin

      I guess the conceptual discrepancy is that you are using an opamp (with infinitely large open loop gain) while the author use a fixed open loop amplifier gain of 29 although LM741 is labeled. If an opamp is used then I agree that the circuit diagram is wrong.

  • p.sasikala

    ur using words easily understand