拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 321|回复: 0

FFT and SPL: Calibrating a microphone?

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2019-1-12 15:21:25 | 显示全部楼层 |阅读模式
https://www.mathworks.com/matlabcentral/answers/142745-fft-and-spl-calibrating-a-microphone


I’m trying to calibrate a microphone for further measurements. I have this equipment: - Microphone Sensitivity: 50mV/Pa - Preamp and A/D Converter gain: 0dB And I want to calibrate it using: - Bruel 4231 Calibrator 94dB @ 1Khz.
So I wrote the following program to analyze the calibrator signal:

Pref=20e-6;
MIC_gain=50e-3;%50mV/pA
%VarName1 manually imported: Time
%VarName3 manually imported: Volts
N=length(VarName1);
fs=1/(VarName1(2)-VarName1(1));
VarName3=VarName3./MIC_gain;
RMS = sqrt(mean(VarName3.^2));

% Just for information - not used
DbTOTAL=20*log10(RMS/Pref);
% Flat top windowing
VarName3=VarName3.*flattopwin(N)';
% DFT
y=fft(VarName3);
% dB - Is it OK?
db = 20*log10((2/N).*(RMS).*(abs(y)/Pref));

f = (0:length(VarName1)-1)*fs/length(VarName1);
figure
% Still have to cut freq up to Fs/2
plot(f,db);

My idea is to measure the higher peak at around 1Khz and compare it with 94db, to get a calibration constant. Any advice/correction is welcome. Thanks!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-26 05:40 , Processed in 0.210200 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表