Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

How should a mobile phone headphone audio output (such as the jack on top of an iPhone) be interfaced to a microcontroller digital input? (3.3V controller. Assume no audio frequency capable A/D is available.)

Assume a modulation scheme such as FSK or similar at appropriate frequencies.

share|improve this question
What do you mean with "Assume no audio frequency capable A/D is available"? Anyway you will probably need an amplifier at least – clabacchio Jan 31 '12 at 8:15
Some microcontroller chips either have no built-in ADC, or have one that is very slow (Hz vs kHz) – hotpaw2 Jan 31 '12 at 13:44

1 Answer

up vote 2 down vote accepted

If you make sure to put out a single clean frequency at a time, then a zero crossing detector is all you need. Audio can always be AC coupled, so a comparator or opamp acting as a comparator is all you need. One input gets filtered 1/2 supply voltage. The other gets that as DC bias but also gets the AC coupled audio. This will make a square wave at the audio frequency. A micro can measure this frequency and interpret its meaning in the context of a higher level protocol.

Note that this won't work for multiple frequencies sent at the same time, like DTMF for example.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.