I have an idea for a project but need some help on achieving what I want to do. I want to create a device which will insert into the audio jack of my iPhone which will emit IR signals to control my TV. Most IR devices use signals in the 35-45K range and the audio out has a max frequency of around 20K. So, since I cant directly tell the IR LED what frequency to emit, I'm thinking this device will need to have a microcontroller in the middle.
So what I'm thinking of doing is, having my iPhone app send a signal via the headphone jack to the device, have the device interpret it and then generate the appropriate IR signal to control the TV.
Any suggestions on how I might achieve this at a high level?
Any suggestions for kits which might allow me to easily prototype this kind of thing?
Any alternatives to my suggested solution which might work better?