How to interface Microphone preamp with MATLAB A-weighting filter?

조회 수: 6 (최근 30일)
Shruti Modak
Shruti Modak 2016년 3월 3일
I have an Electret Microphone amplifier MAX4466 and using the signal that it picks up to measure peak-to-peak amplitude level using arduino. I need to send this signal as an input to MATLAB where I can fiter it using A-weighting. Please suggest how I can provide the analog output of the sensor from my arduino uno to MATLAB.

답변 (1개)

Martin Esteban Rivero Carrillo
Martin Esteban Rivero Carrillo 2016년 3월 7일
I also have been trying to digitize audio signals from a preamplified electret microphone using Arduino and Matlab/Simulink. I'm having trouble because of the high frequency of sound signals (20kHz or so)
From matlab i used the "GetAnalogInput.m" file to retrieve data, but by using the "tic-toc" matlab functions and seeing the final plot, it is evident that the sample frequency is low, around 55Hz.
From Simulink, there is the advantage that one can set the sample time of the Analog Input Block, but i am having problems retrieving the data. I created a model to deploy on arduino that reads the adc input and sends it to serial, and a model to run on PC that reads the serial data and saves it to workspace using scope.
I attached the .m file and image plotted from Matlab aswell as the Simulink models to run on arduino and PC.
Any help would be very appreciated.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by