0

How to send and receive the data to / from arduino through headphone jack in android. Is there any sample to start the code for android. As i come across various sites, they were told like Digital data from arduino has to be send as audio signal to smartphone and the same has to demodulated at smartphone and vice-versa but i didn't get better sample to start this process, so can any one suggest a sample to start.

I have checked this too, headphone data but not get clear

Community
  • 1
  • 1
jerith
  • 141
  • 1
  • 7
  • 18
  • I think you're going to need 2 optocouplers to do that. And implement a communication protocol to encode/decode signals... wouldn't it be easier to buy a cheap HC05 module from China (5 USD on eBay)?? – Phantômaxx May 06 '14 at 11:11
  • HCO5 is a Bluetooth module right, but i m gonna communicated through 3.5 mm jack only !! – jerith May 06 '14 at 11:25
  • Yes. Wouldn't BlueTooth be a BETTER CHOICE? Greater distance covered (10 mt without problems), known communication protocols (after all is always serial), easy to assemble, no fear to fry some devices (at best your Arduino, at worst your phone)... – Phantômaxx May 06 '14 at 11:28
  • @BobMalooga Optocoupler are used for process light signal data so these are irrelevant to my objective. – jerith May 06 '14 at 11:29
  • I have tried with bluetooth module specified above and it working fine for me, but the objective idea is send data through the headphone jack :-( – jerith May 06 '14 at 11:30
  • But the length of tha cable might be an issue. And you must implement your own communication protocol. Still asking myself W-H-Y using a headphone jack? Is it worth the effort? – Phantômaxx May 06 '14 at 11:31
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/52101/discussion-between-jerith-and-bob-malooga) – jerith May 06 '14 at 11:33

0 Answers0