How do I use a phones headphone jack as an I/O port? Answered
I am thinking about making a device which would essentially be an IR led connected to a cell phones headphone jack and function as an IR remote. I am also planning on having a separate IR receiver that could record signals from a remote. This isn't so much a question of pin-outs, as it is a question of supporting components and code. This is a two part question.
1. Would it be possible to connect the LED straight to the headphone jack and have it function correctly. What I mean is do the Hz match, is there enough power to the led to get it to work, etc. or would I need some sort of IC between the LED and Headphone jack. I know that I need a chip with the receiver.
2. How would I get the whole thing to work along the lines of the code. Could I just record an audio file with the IR receiver and play it back with the IR LED? I am wondering how to to this without a bunch of supporting components.