Hijack - iPhone Sensors Thru Audio Jack
seeedstudio.com
seeedstudio.com
Can someone here explain the functional significance of the 22kHz tone? It would be more intuitive if they'd said "an audio signal driven at the headphone port's maximum volume." Why would there be more harvestable energy in a max-volume 22kHz tone than a max-volume 11kHz tone? Or might this be to avoid accidentally blasting the user with a super loud output tone (i.e. in a more audible range) from the device speaker?
Just a guess, I'm sure they arrived at it purely through trial and error, and were happy to find that it's also a frequency that will be minimally annoying if a headphone happens to be plugged in when the tone is played.
In other words, if you've been to a couple of rock concerts with no earplugs then all bets are off.
Also worth noting that most speakers play 0.5dB below the actual signal at 20000Hz, where anything above that usually isn't specified. So you need specialist audio gear or some measuring equipment to actually try to listen to really high frequencies.
Headphone jacks tend to have a capacitor in-line with the output terminals to get rid of any DC bias -- this can cause problems like battery drain, lots of noise when you plug headphones in, and damage to the driver coil of headphones -- not good!
I like to think of a capacitor like a shock absorber, with the length of the shock absorber being like the voltage it's currently storing. If you push on one end of a shock absorber, the larger the force (current), the larger the rate of change of voltage (length), so this analogy might be useful.
Imagine holding on to one end of the shock absorber while someone else tries to move it back an forth at a given frequency. If they try to move it back and forth slowly, the maximum force (current) is going to be low, and so the total energy will be low and you won't get shaken much -- the shock absorber will just change length (voltage).
If they try to move it back and forth quickly, the force (current) will be much higher, and so you can extract a lot more energy from it.
I believe it's the same reason portable devices have poor bass response.
The electrical interface standards may change between devices (voltage/current sink ability) and even between software releases (power saving etc) resulting in a sudden "it stops working" moment.
The basis of it is also flawed on the fact that it's a workaround for a closed platform at which point it's probably better to just use an open one.
Hack yes. Novelty yes. Don't build anything important with it.
As far as it being a hack for a closed platform, I'm not sure why that matters if your goal is to interface with the primary mobile phone platforms. This solution works, and if you need something more professional, working with the dock connector itself isn't an burden any more insurmountable than dealing with injection molding or other product design and manufacturing concerns.
Using the dock connector with a legitimate product requires you to join Apple's "Made for iPhone" program.
For a device like Square that works on multiple platforms, the audio jack is a common interface and the Square reader has the benefit of requiring little (to zero) power to function as it consists of a magnetic head that works when a card slides across it.
It's also useful for student projects. I got one of the original wiretaps when they were giving away their first batch for a prototype medical device (we didn't end up using it in the end because it was still too much work).
edit: thanks all, I forgot about the licensing requirement for the dock connector
See this http://www.quora.com/Apple-Inc-2/What-is-the-royalty-Apple-c...
There is already an iOS serial cable though, which I would think would be a better option for many projects:
That's an odd condition of Apple's terms. Why is this so? If I go through the process of designing and approving a hardware device, I can't sell an app to go with it? Or do I have to provide the app in tandem with the device?
You can't use the "Made for iPod" label on your product unless it's Apple approved and has an Apple-supplied chip in the dock connector.