Go Down

Topic: simple sound detection(something like a clap of a whistle) (Read 1 time) previous topic - next topic

harshvardhan

hi,

i am trying to program a car, that will stop if i whisle to it.


is it possible to detect a whistle without using something complex like bitvoicer or easy VR?

something like understanding what a whistle wave looks like, and then comparing?

the input will obviously be thorugh an ordinary mic.

robtillaart

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

harshvardhan

but wont i have to be whistling REALLY hard to get this working?

robtillaart

Never tried this sketch with a whistle.
AN alternative is to use a microphone like his one - https://www.sparkfun.com/products/9964 -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

harshvardhan

but what logic to use to distinguish between sounds?

robtillaart

Fourier transform  or  FFT, it splits the signal into its building frequencies

Google for Arduino and FFT to find some implementations
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Grumpy_Mike

Or you can use a notch filter on the input.
There are also tone detecting chips that give a digital output.

Go Up