While there have been numerous one-off examples of hobbyist iPhone accessories posted on blogs and YouTube, few of these approaches have been implemented using the official iPhone SDK.

However, there is an input/output port on the iPhone just waiting to be used: the headphone/microphone port. If you think about it, people have been squeezing over 50kbps over phone lines, and phone lines have far less fidelity than the iPhone's sound chip.

PerceptDev engineers George Dean and Damien Stolarz collaborated on a simple circuit (costing less than $2) to take infrared pulses and convert them to sound waves, as well as an application to recognize the signals. The application can recognize signals from the infrared remote that comes bundled with most Macs.

By connecting a plain-vanilla infrared receiver and a few other components, we created a circuit that converts the output of the IR receiver into an audio signal that can be connected to the iPhone's microphone input.

infrared receiver

Then George developed a simple iPhone app that reads the pulses and parses the remote's commands, using the iPhone 2.0 SDK.

infraredhack

The details of these designs, the parts list and links to the software and code are available in iPhone Hacks (O'Reilly Media, Spring 2009).

  • Posted by: Ronnie (not verified)
    on Sat, 08/15/2009 - 19:13

    I have gone through amazing iphone accessories that you guys are doing to add functionality into current iphone, but is it possible that these circuits are converted into an end user product so that these can be used as well. I couldn't find a single website (within my last half hour research) that is selling these kinds of accessories.

    I have gone through "iPhone infrared receiver - using iPhone 2.0 SDK, no jailbreak required!", "iPhone RS232 at 1200 baud - no Jailbreak required, using 2.0 SDK" and I really like all this technical information.

    I have also read about the book that is released in April 2009. I will try to get this as well.

    Best of luck !

  • Posted by: David44 (not verified)
    on Wed, 09/16/2009 - 11:21

    Wow, the ingenuity of people is amazing. To know that much how a iphone works is incredible!

  • Posted by: Ken (not verified)
    on Wed, 12/09/2009 - 23:42

    That's pretty cool.
    I purchased the e-book edition of the iPhone Hacks book.
    Have not read it yet.

    Can you send out data from the infrared, as well as receiving IR from outside?

  • Posted by: George
    on Sat, 01/16/2010 - 19:46

    It's theoretically possible to send IR but not with these components. You'd need an IR emitter rather than an IR receiver, and some additional circuitry to turn the iPhone's headphone output into a digital signal that could drive the emitter. (How much extra circuitry depends on what sort of signal the emitter requires and what IR patterns you want to produce.)

    We didn't pursue any emitter circuit designs for the book, but it's an intriguing idea.

  • Posted by: Marylee Cabanilla (Iphone Help) (not verified)
    on Tue, 03/02/2010 - 13:46

    I've been trying to make iphone work for me but it kept my head spinning. I've been reading a lot of iphone books online and hopefully I can make it work this time.

    Marylee
    Iphone Help
    10bomb.com

  • Post new comment

    The content of this field is kept private and will not be shown publicly.
    • E-Mail addresses are hidden with reCAPTCHA Mailhide.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Lines and paragraphs break automatically.

    More information about formatting options

    CAPTCHA
    This question is for testing whether you are a human visitor and to prevent automated spam submissions.