Contents

## What is a Relaxation Oscillator?

A relaxation oscillator is defined as a non-linear electronic oscillator circuit that can generate a non-sinusoidal repetitive output signal. A relaxation oscillator was invented by Henri Abraham and Eugene Bloch using a vacuum tube during World War 1.

Oscillators are classified into two different categories; linear oscillators (for sinusoidal waveforms) and relaxation oscillators (for non-sinusoidal waveforms).

It must provide a repetitive and periodic signal for non-sinusoidal waveforms like triangular, square, and rectangular waves at its output.

The design of the relaxation oscillator must include non-linear elements like the transistor, Op-Amp, or MOSFET and energy storing devices like capacitor and inductor.

To produce a cycle, the capacitor and inductor charge and discharge continuously. And the frequency of the cycle or period of oscillation depends on the time constant.

## How Does a Relaxation Oscillator Work?

The relaxation oscillator contains energy storing devices like capacitor and inductor. These devices are charged by a source and discharge through a load.

The shape of the output waveform of the relaxation oscillator depends on the time constant of the circuit.

Let’s understand the working of the relaxation oscillators with an example.

Here, a capacitor is connected between a bulb and a battery. This circuit is also known as the flasher circuit or RC relaxation oscillator.

A battery charges the capacitor through the resistor. During charging of the capacitor, the bulb remains in OFF condition.

When the capacitor reaches its threshold value, it discharges through the bulb. Thus, during discharging of the capacitor, the bulb is glowing.

When the capacitor is discharged, it starts charging by the source again. And the bulb remains OFF.

So, the process of charging and discharging the capacitor is continuous and periodic.

The charging time of the capacitor determines by the time constant. And the time constant depends on the value of the resistor and capacitor for the RC circuit.

Therefore, the flashing rate of the bulb decides by the value of the resistor and capacitor.

The waveforms across the bulb are as shown in the figure below.

To control the output waveform, non-linear elements are used in the circuit.

## Relaxation Oscillator Circuit Diagram

The relaxation oscillator circuit diagram contains a non-linear device to generate different types of the output waveform. According to the use of non-linear devices, the relaxation oscillator classifies three types of circuit diagrams.

### Op-Amp Relaxation Oscillator

An op-Amp relaxation oscillator is also known as an **astable multivibrator**. It is used to generate square waves. The circuit diagram of the Op-Amp relaxation oscillator is shown in the figure below.

This circuit contains a capacitor, resistors, and an Op-Amp.

The non-inverting terminal of Op-Amp is connected with an RC circuit. So, the capacitor voltage V_{C} is the same as the voltage at non-inverting terminal V- of Op-Amp. And inverting terminal is connected with the resistors.

When the Op-Amp is used with positive feedback, as shown in the circuit diagram, the circuit is known as the Schmitt trigger.

When V+ is greater than V-, the output voltage is +12V. And when V- is greater than V+, the output voltage is -12V.

For the initial condition, at time t=0, assume that the capacitor is fully discharged. Hence the voltage at the non-inverting terminal is V-=0. And the voltage at the inverting terminals V+ is equal to βV_{out}.

To make calculation easy, we consider that R_{2 }and R_{3} are the same. So, β=2 and βVout=6V. So, the capacitor will charge and discharge up to 6V.

In this condition, V+ is greater than V-. So, output voltage V_{out}=+12V. And the capacitor starts charging.

When the capacitor voltage is greater than 6V, V- is greater than V+. Hence, the output voltage changes to -12V.

During this condition, the inverting terminal voltage changes its polarity. So, V+=-6V.

Now, the capacitor discharges up to -6V. When the capacitor voltage is less than -6V, again V+ is greater than V-.

Therefore, again the output voltage changes -12V to +12V. And again, the capacitor starts charging.

So, the charging and discharging cycle of the capacitor generates a periodic and repetitive square wave at the output terminal, as shown in the figure below.

The frequency of the output waveform depends on the charging and discharging time of the capacitor. And the charging-discharging time of the capacitor depends on the time constant of the RC circuit.

### UJT Relaxation Oscillator

UJT (unijunction transistor) is used as a switching device in the relaxation oscillator. The circuit diagram of the UJT relaxation oscillator is shown in the figure below.

The emitter terminal of UJT is connected with a resistor and a capacitor.

We assume that initially the capacitor is discharged. So, the capacitor voltage is zero.

In this condition, UJT remains OFF. And the capacitor starts charging through the resistor R by the equation below.

The capacitor continues to charge until it reaches the maximum supplied voltage V_{BB}.

When the voltage across the capacitor is greater than the supplied voltage, it enables the UJT turned ON. Then the capacitor stops charging and starts discharging through the resistor R_{1}.

The capacitor continues to discharge until the capacitor voltage reaches the valley voltage (V_{V}) of UJT. After that, the UJT turned OFF and started the capacitor charging.

Hence, the process of charging and discharging the capacitor generates a saw-tooth waveform across the capacitor. And the voltage appears across the resistor R_{2} during discharging of the capacitor and remains zero during charging of the capacitor.

The voltage waveform across the capacitor and resistor R_{2} is shown in the figure below.

## Relaxation Oscillator Frequency

The frequency of the Relaxation Oscillator depends on the charging and discharging time of the capacitor. In the RC circuit, the charging and discharging time decides by the time constant.

### Frequency of Op-Amp Relaxation Oscillator

In the Op-Amp relaxation oscillator, the R_{1} and C_{1} contribute to the frequency of oscillation. Therefore, for lower frequency oscillation, we need a longer time for charging and discharging the capacitor. And for a long time of charging and discharging, we need to set a more significant R_{1} and C_{1}.

Similarly, a smaller value of R_{1} and C_{1} causes higher frequency oscillation.

But, in the calculation of frequency, resistor R_{2} and R_{3} also play a vital role. Because these resistors will decide the threshold voltage of the capacitor, and the capacitor will charge up to this voltage level.

Suppose the threshold voltage is lower, the charging time is faster. Similarly, the threshold voltage is higher; the charging time is slower.

Therefore, the oscillation frequency depends on the value of R_{1}, R_{2}, R_{3}, and C_{1}. And Op-Amp relaxation oscillator frequency formula is;

Where,

In most of the conditions, R_{2} and R_{3} are the same to make easy design and calculation.

By putting the values of R_{1 }and C_{1}, we can find the oscillation frequency of the Op-Amp relaxation oscillator.

### Frequency of UJT Relaxation Oscillator

In the UJT relaxation oscillator, also the frequency depends on the RC circuit. As shown in the circuit diagram of the UJT relaxation oscillator, resistors R_{1} and R_{2} are current limiting resistors. And the frequency of oscillation depends on the resistor R and capacitor C.

The formula of frequnecy for UJT relaxation oscillator is;

Where;

n = Intrinsic stand-off ratio. And the value of n lies between 0.51 to 0.82.

To turn ON the UJT, minimum voltage required is;

Where,

V_{BB} = supply voltage

V_{D} = internal diode drop between emitter and base-2 terminal

The value of resistor R limits between following range.

Where,

V_{P}, I_{P} = peak voltage and current

V_{V}, I_{V} = valley voltage and current

## Relaxation Oscillator Differential Equation

In the circuit diagram of the relaxation oscillator, resistors R_{2} and R_{3} have equal values. So, according to the voltage divider rule;

V_{–} is obtained by ohm’s law and capacitor differential equation;

There are two solutions to this differential equation; particular solution and homogenous solution.

For a particular solution, V- is a constant. Assume V_{–} = A. Therefore, the differentiation of constant is zero,

For homogenous solution, use the Laplace transform of below equation;

V_{–} is the total of particular and homogenous solutions.

To find the value of B, we required to evaluate the initial condition.

So, final solution of V- is;

## Comparator vs Op-Amps

A comparator is also used instead of Op-Amp. Similar to Op-Amp, the compensators are designed to be driven rail-to-rail.

The comparator has a faster rise time and fall time compared to Op-Amp. Therefore, the comparator is more suitable than the Op-Amp for the oscillator circuit.

In the case of the Op-Amp, it has push-pull outputs. So, if you are using Op-Amp, it is not necessary to use a pull-up resistor. But if you are using a comparator, it must use a pull-up resistor.

## Applications of Relaxation Oscillators

The relaxation oscillators are used to generate an internal clock signal for any digital circuit. It is also used in the applications listed below.

- Voltage control oscillator
- Memory circuits
- Signal generator (to generate clock signals)
- Stroboscopes
- Firing thyristor-based circuit
- Multi-vibrators
- Television receivers
- Counters