# What is an Oscillator?

An oscillator is a circuit which produces a continuous, repeated, alternating waveform without any input. Oscillators basically convert unidirectional current flow from a DC source into an alternating waveform which is of the desired frequency, as decided by its circuit components. The basic principle behind the working of oscillators can be understood by analyzing the behavior of an LC tank circuit shown by Figure 1, which employs an inductor L and a completely pre-charged capacitor C as its components. Here, at first, the capacitor starts to discharge via the inductor, which results in the conversion of its electrical energy into the electromagnetic field, which can be stored in the inductor. Once the capacitor discharges completely, there will be no current flow in the circuit.

However, by then, the stored electromagnetic field would have generated a back-emf which results in the flow of current through the circuit in the same direction as that of before. This current flow through the circuit continues until the electromagnetic field collapses which result in the back-conversion of electromagnetic energy into electrical form, causing the cycle to repeat. However, now the capacitor would have charged with the opposite polarity, due to which one gets an oscillating waveform as the output. However, the oscillations which arise due to the inter-conversion between the two energy-forms cannot continue forever as they would be subjected to the effect of energy loss due to the resistance of the circuit. As a result, the amplitude of these oscillations decreases steadily to become zero, which makes them damped in nature. This indicates that in order to obtain the oscillations which are continuous and of constant amplitude, one needs to compensate for the energy lost. Nevertheless, it is to be noted that the energy supplied should be precisely controlled and must be equal to that of the energy lost in order to obtain the oscillations with constant amplitude.

This is because, if the energy supplied is more than the energy lost, then the amplitude of the oscillations will increase (Figure 2a) leading to a distorted output; while if the energy supplied is less than the energy lost, then the amplitude of the oscillations will decrease (Figure 2b) leading to unsustainable oscillations. Practically, the oscillators are nothing but the amplifier circuits which are provided with a positive or regenerative feedback wherein a part of the output signal is fed back to the input (Figure 3). Here the amplifier consists of an amplifying active element which can be a transistor or an Op-Amp and the back-fed in-phase signal is held responsible to keep-up (sustain) the oscillations by making-up for the losses in the circuit. Once the power supply is switched ON, the oscillations will be initiated in the system due to the electronic noise present in it. This noise signal travels around the loop, gets amplified and converges to a single frequency sine wave very quickly. The expression for the closed loop gain of the oscillator shown in Figure 3 is given as Where A is the voltage gain of the amplifier and β is the gain of the feedback network. Here, if Aβ > 1, then the oscillations will increase in amplitude (Figure 2a); while if Aβ < 1, then the oscillations will be damped (Figure 2b). On the other hand, Aβ = 1 leads to the oscillations which are of constant amplitude (Figure 2c). In other words, this indicates that if the feedback loop gain is small, then the oscillation dies-out, while if the gain of the feedback loop is large, then the output will be distorted; and only if the gain of feedback is unity, then the oscillations will be of constant amplitude leading to self-sustained oscillatory circuit. Oscillators are primarily of two categories viz., Linear or Harmonic Oscillators and Relaxation Oscillators. In harmonic oscillators, the energy flow is always from the active components to the passive components and the frequency of oscillations is decided by the feedback path. However, in the case of relaxation oscillators, the energy is exchanged between the active and the passive components and the frequency of oscillations is determined by the charging and discharging time-constants involved in the process. Further, harmonic oscillators produce low-distorted sine-wave outputs while the relaxation oscillators generate non-sinusoidal (saw-tooth, triangular or square) wave-forms.
Oscillators can be classified into various types depending on the parameter considered viz.,

1. Classification Based on the Feedback Mechanism: Positive Feedback Oscillators and Negative Feedback Oscillators.
2. Classification Based on the Shape of the Output Waveform: Sine Wave Oscillators, Square or Rectangular Wave oscillators, Sweep Oscillators (which produce saw-tooth output waveform), etc.
3. Classification Based on the Frequency of the Output Signal: Low Frequency Oscillators, Audio Oscillators (whose output frequency is of audio range), Radio Frequency Oscillators, High Frequency Oscillators, Very High Frequency Oscillators, Ultra High Frequency Oscillators, etc.
4. Classification Based on the type of the Frequency Control Used: RC Oscillators, LC Oscillators, Crystal Oscillators (which use a quartz crystal to result in a frequency stabilized output waveform), etc.
5. Classification Based on the Nature of the Frequency of Output Waveform: Fixed Frequency Oscillators and Variable or Tunable Frequency Oscillators.

Few examples of oscillators are Armstrong Oscillators, Hartley Oscillators, Colpitts Oscillators, Clapp Oscillators, Cross-Coupled Oscillators, Dynatron Oscillators, Meissner Oscillators, Opto-Electronic Oscillators, Pierce Oscillators, Phase-Shift Oscillators, Robinson Oscillators, Tri-tet Oscillators, Wein-Bridge Oscillators, Pearson-Anson Oscillators, Ring Oscillators, Delay-Line Oscillators, Royer Oscillators, Electron Coupled Oscillators and Multi-Wave Oscillators. Oscillators are portable and cheap due to which they are extensively used in quartz watches, radio receivers, computers, metal detectors, stun guns, inverters, ultrasonic and radio frequency applications. 