simple sound detection(something like a clap of a whistle)

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.

Ever visited the arduino tutorial pages? :wink:

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

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

Never tried this sketch with a whistle.
AN alternative is to use a microphone like his one - SparkFun Electret Microphone Breakout - BOB-12758 - SparkFun Electronics -

but what logic to use to distinguish between sounds?

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

Google for Arduino and FFT to find some implementations

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