top of page

Sound Detection

Use the simple sound detector module to determine if there is sound above a pre-set threshold.

Sound Detection

In this exercise we use a simple on/off sound module to detect sounds. Use the simple sound detector module to determine if there is sound above a pre-set threshold. The threshold is set by using a small Philips screw driver to adjust the square blue variable resistor on the lower right side of the module.


The output on the modules OUT pin is normally 5V when there is no sound. When a sound is detected it will drop to 0V and this is how the JackBord can detect sounds.


Connect the sound sensor to Port A1, the Port A 5V supply and grounds of the JackBord as shown in the table below. Note the names of the pins on the detector module and the corresponding pins they connect to on the JackBord.


When connected correctly it should look like this:



Testing:


With the module attached as above and the JackBord turned on enter the following command:


btp a1 tg d1


When run this command treats the sound module as a button input. Each time the module detects a sound its output goes low, when there is no sound it goes high. Also the red led on the module will light up when it detects a sound. If the module does not seem to detect any sound try adjusting the blue variable resistor a little and try again.


Or if it seems to be over sensitive to sound try adjusting the sensitivity down.


Table of OUT values for the sound sensor module.



bottom of page