Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
here is the code I am using. Am using an Ardunio sound module that has an amplifier on it.
Amazon.com: DAOKI 5PCS High Sensitivity Sound Microphone Sensor Detection Module for Arduino AVR PIC : Electronics
Buy DAOKI 5PCS High Sensitivity Sound Microphone Sensor Detection Module for Arduino AVR PIC: Security & Surveillance - Amazon.com ✓ FREE DELIVERY possible on eligible purchaseswww.amazon.com
- it's not an amplifier, it's a comparator - and the output switches high and low as the signal crosses the point set by the pot on the board. So it's not an analogue signal, it's just either high or low -
Would rectifying and an RC filter get the required result? Say a 1S timescale.
Mike.
Here is a microphone module that will do what's needed. It provides an analog output proportional to the microphone input. But do note – its output is biased to Vcc/2. This has several impacts:
¤ At the quietest levels, the ADC will read 512 counts.
¤ The output level will be between 512 and 1023 for positive going peaks in the sound and 512 and 0 for negative going peaks. (0 = max negative level, 1023 = max positive level)
¤ Linear levels need to be computed considering the offset of the ADC and the absolute value from there. Compute the linear average first, then convert to dB.
¤ Since the output is biased to Vcc/2, the maximum range is reduced to 20 × log(512) = 54 dB instead of 60 dB.
au contraire, mon ami... we're only on page 8.500dB is impossible