An oscillator is a type of circuit that controls the repetitive discharge of a signal, and there are two main types of oscillator; a relaxation, or an harmonic oscillator. This signal is often used in devices that require a measured, continual motion that can be used for some other purpose.