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?
Unfortunately in the case of the audio jack, data transfer is not possible. The only transferable “data” would be the electrical wave forms which move from the device to the speaker/earphone or the microphone to the device.
You can connect your iPod Shuffle to any tablet, desktop or laptop computer to charge and transfer data at the same time - simply connect the 3.5mm connector to your Shuffle and the USB plug into your Mac, PC or laptop.
The main difference between a USB (Universal Serial Bus) connection and an auxiliary input is that USB cords send digital information while aux cables send analog signals. USB cords transfer data as you would to a computer, while aux cables transmit audio as you would to an amplifier or pair of headphones.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With