To evaluate the total harmonic distortion(THD),frequency response range and other parameters of audio equipment,an audio quality measuring device is designed based on the STM32F407VET6 single-chip microcomputer.Powered by a lithium battery with a Buck circuit,the device uses the audio pickup circuit to complete the signal acquisition.With he external 16-bit A/D module for signal ADC sampling,the fundamental voltage amplitude and four harmonic amplitudes are obtained by using FFT algorithm.Accordingly the frequency response ranges of the equipment are obtained,which can be displayed on the screen ultimately.The results show that the device has high testing accuracy and reliability.Through comparing the testing data of the device with the data provided by the audio manufactures,it is found that both the THD and frequency response ranges have small errors.The device can meet the practical requirements of use.
STM32 single-chip microcomputeraudio quality testFFT algorithmtotal harmonic distortionfrequency response range