How To Get Electric Power From Head Phone Jack?
Asked Answered
P

3

12

My quest is if anyone knows how to create an Android app that can send electric charge through the device's headphone jack, like in this video iPocket_LED. The video shows an app for iPhone that controls a LED plugged into the headphone jack.

I want to know how to access the device to send an electric signal.

Sorry about my English, is not my language, I hope some one understand me

Pazia answered 6/4, 2011 at 2:35 Comment(2)
Check out this video of a guy who uses the headphone jack to drive an infrared LED, to turn his phone into a universal remote.Featherweight
web.eecs.umich.edu/~prabal/pubs/papers/verma12audiodaq.pdf uses the mic bias voltage itselfTailpiece
L
15

Many consumer devices which accept an external microphone will provide "plug-in power". This is a small voltage typically from 1 to 5 volts across two of the contacts in the microphone connection.

Apple and (most) Android devices are no exception. Most use a 4-conductor TRRS connection with the following pin-out:

   TIP = left headphone out
  RING = right headphone out
  RING = ground
SLEEVE = mic in + plug-in power

The plug-in power is usually around 2V on smartphones and is supplied as +2V on the microphone (sleeve) conductor. The phone will only supply it if it detects that a microphone is in place, which it does by testing the resistance across Mic to Ground to see if it's consistent with a microphone's impedance - something like 200 to 5000 ohms impedance, and I hear the iphones can be very fussy with this and need very close to 1600 ohms.

This means the maximum power you could draw from this and still seem like a microphone would be pretty small - around 1.25 milliamps. There are some low powered microcontrollers or other devices you may be able to power with this.

Note that plug-in power may be a similar concept to "phantom power" as used in pro audio gear but it's a different and incompatible standard. "plug-in power" is what causes the tiny electret microphones in smartphone headsets to work without needing their own small battery.

As for how to actually exert control over your attached device from an app, that's getting into much more complicated electronics. Presumably it is possible if you use the left and/or right headphone out lines to send signals to the device.

Lumberman answered 14/3, 2014 at 3:56 Comment(3)
This is interesting. I wonder if this little bit of power could be used to 'trickle charge' headphones that have batteries for noise cancellation; such as the Beats brand. I am suggesting that headphones could potentially be designed to exploit this.Deutsch
Nice idea! Now that I re-read this answer, I realise that 2V and 1600ohm resistance would be about 1.2 mA (or 2.5mW), which is only a small amount of current and not enough to do much apart from power an electret microphone! Charging a battery at eg max charge rate of a 600mAH @3.7V battery would result in it taking 37 days for full charge assuming 100% efficiency. That said, the 2.5mW might be enough to run a noise cancellation circuit bypassing the battery.Lumberman
Ah! What you suggest actually sounds more practical than my idea. It would be clever if the mic power 'switch' could be controlled via software APIs in iOS and Android. Then you could design devices that can use the whole 2v by manually switching off the resistance requirement. I would guess that Apple wouldn't allow this out of fear of bad programming wreaking havoc.Deutsch
H
11

You'll need to play some audio. A small amount of current flows anytime audio plays, that's what moves the tiny little speakers in your headphones. The voltage will vary with the level of the audio. It is also AC current, such that the frequency of the sound (pitch) affects the frequency of the AC cycle.

It is going to be difficult to integrate with a device using this approach, especially because of the AC current. You can determine the appropriate pitch to send the voltage you want, but most "devices" are probably going to want a +3.3v or +5v DC signal. You'll probably need to do an AC to DC conversion to make that work.

I believe there is a means to integrate with an Android device via the USB interface. That would probably be far better and easier. You could get yourself an Arduino kit with a built-in USB shield/controller, and build your device on top of that.

See External USB devices to Android phones?

Hbeam answered 6/4, 2011 at 2:38 Comment(2)
The last part of this answer - about doing this with the USB port instead, is probably the best way to go. If it's a host-mode (OTG) enabled USB port then it will quite legitimately supply 5 Volts power for devices to use how they wish.Lumberman
AC lets you use a transformer to boost it up to whatever DC voltage you want.Tailpiece
S
0

Yes using both at the same time is possible as this is how phones are designed to work. In fact depending on which specific device you have, overriding the volume limit will also give you a bit more power.

The best bet as far as lowest possible loss would be active rectification: at the null point have it switch over to +2V and the rest of the time whichever is the highest peak gets rectified. Simple enough to use two dual MOSFETs and this should get you enough power to at least initialize a phone though probably not charge it.

Silesia answered 1/8, 2019 at 10:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.