Sensor to detect specific sound

Hello world,

For a personal project, my goal is to detect a specific sound and then have vibration as output.
I'm new to Arduino and am wondering which sensor to use and how my code should look like to get to this output.

Thanks in advance!

More details please. The answer is going to depend on knowing WHAT specific sound you want to detect and what you expect to create the vibration. For example if you want to detect the song of a particular bird it's going to be really difficult.

Steve

What sound?
In what sound environment?

slipstick:
More details please. The answer is going to depend on knowing WHAT specific sound you want to detect and what you expect to create the vibration. For example if you want to detect the song of a particular bird it's going to be really difficult.

Steve

The sound will be a gunshot to start a race. When the sound sensor picks up the shot, a vibrating motor will have to vibrate.

Assuming the gunshot is a lot louder than the ambient sound: a simply "clap" sensor will do.

Otherwise, microswitch in the starter's gun. That's what most modern start guns have - to relay the sound to speakers behind the athletes, so they hear it properly.

wvmarle:
Assuming the gunshot is a lot louder than the ambient sound: a simply "clap" sensor will do.

Someone I know recommended using an STM-microcontroller. Now he says that in his experience a sound detection/sensor module won't send proper analog data towards the STM. He recommends using a microphone with Low Phase Compensator.
Can you confirm or deny this statement? I think he's making it more complex than needed.

To elaborate some more on the goal, imagine a track running circuit with an audience (about 100dB according to research). The sensor should pick up a gunshot of about 140dB to give a signal to a vibrating motor.

1 Like

Have you analyzed the sound produced when the gun is fired? Being able to electronically analyze the signal will be a good start towards detection.

You may have to build a band pass filter. Once you are able to electronically discriminate the desired frequency, you might use something like a VOX to respond to the passed sound frequency to trigger the other things you want to do.

Or you could use a micro switch on the gun.

1 Like

Detecting a loud shock wave isn't hard, just thresholding ought to be enough.

The gun sound is only 140dB if you are close to it. How close can you put your microphone? If you can run a wire up to the gun itself then just use a switch as suggested.

If your microphone is in the bleachers with the crowd then it will be very difficult to distinguish the gun from the sound of the guy with big feet next to you.

If the microphone is just nearby the starter then I expect any of the cheap "Arduino" microphone modules will work.

What is the tolerance for false positives and false negatives? What is the consequence of missing one event or picking up too many events?