Oscillator is a mechanical or electronic device works on the principle of oscillation i.e. a periodic fluctuation between two things based on changes in energy. It is of two types; linear oscillators and non linear oscillators. The wave shape and amplitude are determined by the design of the oscillator circuit and choice of component values.