Sending Data through Headphone jack in Android phones

Payam Mohajeri picture Payam Mohajeri · Apr 20, 2012 · Viewed 37.8k times · Source

I'm currently dealing with a new project and I have to send data through headphone jack with specific voltage, then i can work on that voltage.

so here i need to program the specific voltage depends on my data. is it possible that i can access the output voltage of headphones in android and then create a application to control that voltage?

Answer

davehale23 picture davehale23 · Apr 20, 2012

Here is a HackADay article dealing with this issue. http://hackaday.com/2010/02/01/android-audio-serial-connection/ It offers working code which was quite a bit simpler than I thought it would be.

Although, like others have suggested, including this very similar SO post, you might have an easier time using the USB port.