Real-time Frequency Detection of Sinusoidal Signal using Under-sampling Technique and FFT Algorithm