Pages: [1]   Go Down
Author Topic: simple sound detection(something like a clap of a whistle)  (Read 1223 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ever visited the arduino tutorial pages? smiley-wink

Check - http://arduino.cc/en/Tutorial/Knock - !
Logged

Rob Tillaart

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

but what logic to use to distinguish between sounds?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Google for Arduino and FFT to find some implementations
Logged

Rob Tillaart

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 508
Posts: 31390
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: