Professional Documents
Culture Documents
4, November 2012
I. INTRODUCTION
The measurements and assessments of noise require
sophisticated and expensive equipment that can be replaced
by virtual instrumentation applications developed according
to specific needs.
In largecities, thenoise is aserious problemof
pollution,called
environmental
noisepollution
thataffectshuman physiologyand securityin our daily lives.
The cost of professional equipment for the assessment of
environmental noise (Sonometro or SLM), which is a device
for measuring sound pressure level, can rise to thousands of
dollars and that is, most of the time, outside the budget of
people interested in making a noise study. There are other
lower cost options available in the market, but sacrifice
accuracy and precision. Fortunately today the modern student
can make use of software, hardware and PC, for studying this
field at very low cost.
A virtual instrumentis a software applicationthat
simulatesthe functional aspectsof the real instrument, based
on a PC,in this case. The environment, the design of an
Manuscript received July 21, 2012; revised September 2, 2012. This work
was supported in part by the InstitutoPolitcnicoNacional, Escuela Superior
de Ingenier
aMecnica y Elctrica and PIFI of Mexico City.
R. Navarrete, M. F. Rocha, L. Salvador V, L. Orozco, C. A. Calva, and M.
R. Osnaya are with the Escuela Superior de Ingenier
a Mecnica y Elctrica,
Instituto Politcnico Nacional, Mxico (e-mail: mrocha@ipn.mx).
M. I. Rocha G. is with the G. F. O., Departamento de Ingeniera
Electrnica, Universidad Politcnica. Valencia, Espaa (e-mail:
marocga@doctor.upv.es).
E. Andrade and C. Solis are with the Department of Physics, Universidad
Nacional Autnoma de Mxico (e-mail: andrade@fisica.unam.mx).
International Journal of Computer and Communication Engineering, Vol. 1, No. 4, November 2012
signal to be measured.
A sound pressure signal with a frequency range of 20 to
20000 Hz was measured. Thesampling rate according to the
Nyquist, criterion must be at least 40 kHz. Therefore,
asampling rate of 44.1 kHz was used.
A notebook with Windows Vista Home Premiumoperating
system, AMD Turion 64 X2 Mobile Technology 2
GHzprocessor,3 GB RAM, 32 bits MATLAB
instrumentation Software, were employed.
A variable sound pressure was measured with a SLM. A
microphone was used as sensor; the sound signal is generated
and converted into an electrical signal (analog) through the
microphone.Different types of microphone were used, with
features such as precision, accuracy and sensitivity.The
selected microphones depended on the accuracy and
correctness.A free field condenser microphone was selected,
for its flat response in the frequency range 20 to 20000 Hz. In
addition, a sound cardinstalled in the computer was used.
The steps and the set of instructions for performing the
system functions in MATLAB, were: 1. Creating an object of
the device, 2. Configuringof the acquisition channels, 3.
Setting the object properties. The sampling rate, the
acquisition time and the number of bits for the quantization
and coding of the signal Fig. 2 and Fig. 3 were also set. The
SampleRate property, Fs = 44.1 kHz, the SamplesPerTrigger
property, which defines the number of samples N to acquire
depending on the time of acquisition and the BitsPerSample
ownership, which allows modifying the number of bits that
will be quantized and coded.
32768.
The model proposed by Douglas R. Lanman was employed
for the implementation ofthe virtual sound level meter. The
FFT algorithm was used to obtain the frequency spectrum of
a sample window and Parseval's theorem to calculate the
average energy of the signal in the frequency domain (Fig. 3).
SIGNAL
PROCESSING
(estimate Level)
FFT Spectrum
Frequency
Identification
SIGNAL PROCESSING
(estimateLevel)
FFT
(rectangular
windows)
X k N 0 X n e
N 1
f 2nk
N
(1)
N
N
1
1
1
2
2
, ...,
, 0,
,
, ..., 2
f k
kf
NTs
NTs NTs
NTs
NTs
REPORTING
FFT Plot
(2)
Calculation in dB
Apply weighting
filter AC, Linear
Estimation of the
energy in the
frequency
domain
(Theorem
Pardeval)
Apply weighting
filter, A,C, Linear
Show Level in dB
Initiate procurement
Calculation in dB
Type of
Respons
e
Slow
Fast
Acquisitio
n
Time
Required
1s
0.125 s
SamplesPerTrig
ge
N = Time * Fs
44100
5513
Nextpow2(
N) 2k> 2
power of 2
samples N
216 = 65536
213 = 8192
Acquisitio
n Time
Time used
= N / Fs
1.486 s
0.185 s
International Journal of Computer and Communication Engineering, Vol. 1, No. 4, November 2012
2
A( f )
(f
F1 ) ( f
2
C( f )
A1 F4 A2 f 8
2
2
F4 ) 2 ( f 2 F2 )( f
A1 F4 f
(3)
2
F3 )
2
(4)
( f F1 ) ( f F4 )
2 2
where WA 10 log A( f )
2 2
WC 10 log C ( f )
2
N
N /2
| X
k 0
Pond
[ k ] |2
1
NTs
N/2
| X
k 0
Pond
[k ] | 2
(8)
ref
(9)
Nivel en dB 10 log10 ( x ) C
para
f k kf
The calibration
experimentally.
(5)
x x[n]
n 0
1 N 1
| X [ k ] |2
N k 0
constant,
C,
can
be
(10)
determined
(6)
Fig. 5. User Interface virtual sound level meter, the instrument allows the
choice of response and weighting.
International Journal of Computer and Communication Engineering, Vol. 1, No. 4, November 2012
IV. CONCLUSIONS
Input Signal
graph
FFT Plot
Show Level in
dB
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
300