Thank you very much! You really made my day!

This was the missing link to my question. I just integrated your code and am able to see quite precise values in the range from 60dB (A) to 100 dB(A). Therefore, a corrective value for $DBA_MIC_FS was integrated in the upper part of the code.

my $DBA_MIC_FS = -110;

Now, the values are similar compared to a standard sound meter Class 2. There are some problems with the USB mic, though: There are no smaller values as 60 db(A)… this was tested on Windows with the same mic… no lower values than 60 dB(A) :-(

This leads to the idea, that USB mics are not built to measure sound pressure levels precisely, but more to record human voice. Additionally considering the good advice from stevieb, USB mics seem to be a dead end for noise measurements (ot this 10 EUR mic is just not good enough for this purpose)

So, there will be a test with another USB mic and if there are similar problems, I might switch to analog mics with ADC technology. But this is out of the scope of this forum, I suppose...


In reply to Re^2: Measuring the sound level (dB(A)) with PERL by John-Robie
in thread Measuring the sound level (dB(A)) with PERL by John-Robie

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.