I was wondering if it was possible to connect an audio source to an Arduino with a 3.5mm cable (i.e. iPhone) and play different sounds that the Arduino would recognise to carry out different tasks. I have an Arduino Uno.
Thanks
I was wondering if it was possible to connect an audio source to an Arduino with a 3.5mm cable (i.e. iPhone) and play different sounds that the Arduino would recognise to carry out different tasks. I have an Arduino Uno.
Thanks
Yes, it is. I do just that but for Android rather than iPhone in my book 'Arduino + Android Projects for the Evil Genius'. One-way from the Android tablet to the Arduino in my case, but 2-way is possible too.
Its the same idea as the old casette tape interfaces that you used to get on home computers. In fact, if you hunt around you can find circuits for a lot of these old computers. I experimented with the circuit from a ZX81, but found it unreliable and ended up making something more complex with an op amp that was a lot more tollerant of the output volume etc.
My publisher wouldn't like it if I gave the schematic, but the Arduino and Android programs are both open source, you can find them on the downloads page here: http://www.duinodroid.com
You could always build a clap circuit with an opamp to take an audio signal and pull one of the arduino pins high. Then based on the number of times the pin is pulled high it can perform different functions.
You can make this easily by this circuits. And some coding of Audio inputs. Make sure about for which tone you want to do some task. if you want to observe the waveforms then Download Wavepad Sound Editor
fyi - you might be interested in this project which used frequency analysis to trigger actions based on whistles (although it's not based on Arduino):