I was at a presentation by the app's creator, apparently the hardware was already available through some company, so you could theoretically do it with any device that outputs to a headphone jack. The iPhone's touch interface simply provided a ... unique and apparently (don't ask me!) expressive method of control.
That's truly amazing what they're doing here. I'm sorry if this is an ignorant question, but wouldn't it make sense for there to be some kind of USB port or something that's actually designed for I/O on the iPhone? I mean, surely there'd be less power loss if the port was actually designed to power other low power devices. Especially if it could mean that you don't need as powerful of an external microcontroller for doing the hacking and encoding that's necessary for doing all the work-arounds from not having a real IO port.
Apple wants you to use their 30 pin interface, but that requires going through their MFi program and that lets them control the hardware ecosystem like they do the software ecosystem.
To be fair, there are certain advantages to hardware manufacturers willing to jump those hurdles. You're able to ensure no one can make software for your hardware, for one. Secondly users who plug in your hardware can automatically be taken to the app store to download your software.
Also the headphone jack is available on all phones and if you develop for 30 pin interface, you have to design different hardware connector for different phones
Is there anyplace online people in the MFi program hang out (forums, usenet, mail lists, etc.)? I've got some very basic questions about the whole process, but it seems like such a black hole (from the outside looking in).
It would be great to use the ipods or ipads for industrial data collection, but we'll need IR and a way to get data on/off without network connectivity.
I think it's a very interesting project. I've been very interested in things that combine hardware with smart phones, since the Apple keynote that showed the first authorized hardware "extensions". (though since then, I've been disappointed in not seeing much of anything)
However, can anyone chime in about the differences there are between using the iPhone jack and using the dock connector? I know you're supposed to fill out some docs with Apple to officially hack on the dock connector, but I believe you can find hardware to do that without Apple's consent. It looks like one would have to go the jailbreak route with that project as well.
I imagine the main thing is that a hobbyist can much more easily/cheaply get a jack connector than a dock connector...
You could create un-authorized hardware and apps using the 30 pin connector, but they would only run on jailbroken devices. There are places to buy knock-off (non-apple made) dock connectors so some people must do this.
Also check out the Southern Stars SkyWire. Apparently it's a true RS-232 I/O cable that plugs into the dock connector. They use it to drive telescopes, but apparently it's not limited to that.
Worth noting they may have had to go through additional testing. When you submit an app that needs MFi hardware, they make you submit the hardware as well and test both together. They may have demanded something similar for Square.
Also worth noting that square is not drawing power, doing so might make them reject your app. Especially because this harvest method is fairly inefficient (power is being converted twice before its useful). Draw on the iphone battery may be 4x the power used.
I have no experience with the App Store approval process but it seems like this might fly. It just uses the audio jack as any custom mic/headset might; conceivably they could use valid API calls to just play or listen for sound and/or drive a constant powering voltage.
Listening to music doesn't drive a constant 22 kHz tone.
[Edit] I really don't understand -- why was I downvoted here? Can someone explain why they think I'm wrong? Isn't a constant, high-frequency tone going to draw more power than variable output with significant larger gaps (and a likely lower peak voltage difference?)
"To estimate the impact of energy harvesting on the phone, we modifying an iPod Touch to measure battery current and voltage. We play an audio file that generates the required 22 kHz tone and find that the iPod draws 91 mA at 4.04 V when the harvester is attached and 37 mA at 4.04 V when the harvester is not attached.
These figures illustrate the substantial inefficiency of this approach compared with directly supplying power to a peripheral. We note, however, that the power output of an iPod is higher than an iPhone, making the numbers appear worse than they are on the iPhone."
Speaking of figures, I wonder how this would compare to what can be gathered from ambient radiowaves with a device of a similar size.
I remember a posting from somewhere where Nokia claimed to reach in the miliwatt range only using ambient radiowaves. Can't seem to find it again though.
7.4mW is more power than I would have thought possible. That is really cool. Plus with some additional hackery you may be able harvest up to double by toggling the second audio channel on and off when you don't need to receive data from the phone.
I'm going to put together a board based on their specs. If anyone in the bay area is interested in collaborating on a project with it shoot me an email.
Does anyone have information on doing something like this wirelessly? Provided your sensor has its own power source, couldn't you use the fm receiver built into a lot of phones to receive data from an external sensor?
The O'Reilly "iPhone Hacks" book has schematics and sample code to push RS-232 in and out of the headphone jack. You'll need a self-powered device to decode FSK on the other end, of course.
Maaaaan I had this idea over 2 years ago... except my ideas revolved more around robotics. I wish I was a bit older so I had the resources (money) and time to work on these kinds of ideas that I have. Previously, all my time was consumed by school/internship/band (I was a signed, professional touring musician). And now all my time is consumed by getting my startup going... in the hopes that it will eventually be somewhat self-sustaining enough to cover my living costs while giving me time to pursue these other more interesting ideas. Sigh... sorry for the rant that I'm sure no one cares to read.
http://www.ohmibod.com/bodyheat/
I was at a presentation by the app's creator, apparently the hardware was already available through some company, so you could theoretically do it with any device that outputs to a headphone jack. The iPhone's touch interface simply provided a ... unique and apparently (don't ask me!) expressive method of control.