Interfacing to a headphone jack...
DavidMil
Posts: 3
I need help creating a simple circuit that will allow a BS2pe processor to receive a high input from the headphone jack on my laptop when the laptop starts playing music.· The program·will ignore the input for a specific time once the line goes high,·so it's just a matter of waiting for·a high input.· I·connected a multi meter to the·jack and only saw about 800mv max, but I realize that's probably not a very accurate reading.· Any help would be appriciated.
Thanks,
David·
Thanks,
David·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
In order to make a bipolar transistor turn 'on', the B-E junction needs to see about 550mV before it starts to conduct in it's linear mode. Since the nature of your signal is audio and likely to be 800mV peak-to-peak it could very well be +/-400mV ... IOW below the transistor threshold of 550mV. You can however bias the transistor input in a way that even a very small signal well below 550mV is enough to turn the transistor 'on'. The attached circuit allows you to adjust this bias so that the SCR (made from the NPN and PNP transistor) will trigger and latch the output from about 300mV to 700mV.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
And thank you all for your suggestions.
David
Bet the next post will be about "How do I unlatch the latch?"·
[noparse][[/noparse]I know how.]
I know you know this, but perhaps I should have added more detail (tongue in cheek - grin)
Sending a HIGH signal from the Stamp to the RESET pin will cause the latch to become unlatched.
When latched, the OUT pin goes LOW, which can be read from the Stamp.
Adjusting the 10K Pot allows you to adjust the latching threshold between 300mV to 700mV.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I recorded my code from a code practice oscillator into an audio cassette recorder. Then played it back at high volume out the headphone jack, through an audio transformer then rectified the audio signal with a bridge rectifier & cap, and used that to drive a relay directly, which keyed my transmitter. It worked great.
When it works, brute force rocks !
David, you could probably do something similar with an audio transformer to get higher than 800 mV.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."