The inlaid image is a controller board which [Limpkin] developed to add whistle control as a home automation option. It has an effective range of around fifteen feet and does a good job of detecting whistles from many different people. Here is one of the test subjects (captured with a hidden camera) whistling to the white LED lamp in order to switch it on.
The board is quite small. [Limpkin] holds it up in the beginning of his test video, which gives a good sense of scale. One end has a barrel jack through which the board gets power. The other end has a two conductor screw terminal which is used for switch your devices. An N-channel MOSFET protects the circuit when a heavy external load is connected. It is capable of driving a respectable 90 watts. If you’re looking to switch mains rated devices you’ll need to bring your own relay to the party.
Audio processing is handled by the Freescale ARM Cortex M4 chip at the center of the board. The Serial Wire Debug (SWD) clock and data pins are both broken out to solder pads so the thing is hackable. [Limpkin] posted the schematic, gerbers, and a code template. But he didn’t release the algorithms he uses for processing so if you want to make this at home you’ll need to figure that out for yourself. If you need help you should check out this whistle-based remote control.
what if i just came from the dentist? I wont be able to turn on the lights :X
As a dentist, I agree. This is a concerning predicament.
Hey everyone!
A few words about the algorithm: on my website the general layout of the algorithm is described. If you look at the comments at the end of the page, you’ll see why you can make a better algorithm (as it doesn’t need to be so adaptable as mine).
There’s also a great comment from James explaining another way to do whistle recognition, which seems to work also perfectly.
And FYI we also managed to make it work from 30 feet!
Let me know if you have any question,
limpkin
my immediate thought would be for use with a home theatre pc to whistle themesongs to start playing video files from the show of the song.
I think this could be very useful for disabled people especially if you can fine tune it to recognize different people and have levels of security built in.
Very Nice!
Easy enough to do this with an analog circuit: just have a mic at one end, then an amplifier, then a band-pass filter at whatever frequency you want to whistle at, then a buffer. Use the signal from that to switch a MOSFET and turn the light on.
Remember the clapper?
how would you dimm the lights with clapping?
Loud clap = 1
Soft clap = 0
Clap out X10 protocol.
Would bird song trigger this? If so could you make an automatic bird feeder with it?
This hack on the Arduino forum is similar, fun but cheap and cheerful. It recycles of those lost item locators that responds to a whistle.
Sorry here is link http://forum.arduino.cc/index.php?topic=109413.0 for thread
yeah gave it 5 minutes of thought and I think it won’t be anything that beats normal speech recognition. a song can be captured in one word and it’s simply easier for most people as they have limited musical memory.
Just with the 3 words and a number -> “light on/off” I could control millions of lights for example.
I bought one of these and use it with a relay on my living room floor lamp. It’s fun! I can turn it on and off with a couple of notes on the piano, or by whistling. I have to whistle kinda loud since the room is large… every once in a while something on TV or a loud laugh will flip the light off… but that’s fun too. Two thumbs up!