Are you tired of banging on the wall in response to your noisy neighbors? Do you wish you could do something without having to lift a finger? Well now you can. Automate this process using a noise sensor and treat your neighbors to a bass-boosted laser light show.
In addition to annoying your neighbors, this noise sensor can be used to design a lock, opened by a specific set of knocks, to study the acoustic insulation of your favorite room, in security systems, or to measure the intensity of applause after your victory speech.
The microphone data is also available, for example, to create a simple voice recorder or audio equalizer.
The analog signal of the microphone is an alternating voltage. Part of the signal is positive, the other is negative. One can try to transfer to the ADC of the controller without processing, but then only positive voltage is digitized, i.e., half the wave. Without prior amplification, the signal will be indistinguishable from digital noise.
The amplifier raises the value of the audio signal to the mid-range of the supply voltage. Further voltage changes occur in relation to this value - the audio signal will be completely digitized.
Single measurements of the maximum amplitude values will not give an idea of the overall noise level. In order to obtain reliable information, it is necessary to take measurements as often as possible and to integrate the obtained values. The numerical relation of loudness will be the area under the sound wave plot. The module will use this information from the noise sensor to allow you to determine the change in the overall sound background, or to detect claps.
The sensor outputs an analog signal in the range of 0 to the supply voltage. The output voltage is proportional to the average noise level over the last few hundred milliseconds.
To adjust the sensitivity, we have provided a trimmer on the module. It is useful if you want to adjust the sensitivity of the microphone or change the triggers of your device without touching the firmware.
The module is connected to the electronics via 3 wire jumper cables. Two three-wire jumper cable are included in the kit.
The module is connected to the four pins on the microcontroller:
There are several different ways to wire this module:
Troyka Shield. The most straightforward method. Connect the module to a pin group on Troyka Shield with the 3-pin jumper cable and you’re ready to interface with it from your Arduino.
Troyka Slot Shield. The best choice for quick prototyping. Using slots on the shield, you can get rid of cables. The module will be held securely in place using both pin headers.
Breadboard. For advanced use. Troyka pin headers have 0.1” spacing which is compatible with any breadboard. Simply wire the module like you would do with any IC.