If you just apply a steady voltage, you would get a "click" transient when it changes, but not otherwise. However, it will have to be an oscillating signal, as the microphone bandwidth typically does not range down to DC. Also the simplest non-microphone headset detection may be via a mechanical mechanism in the jack which could be difficult to electrically actuate across models.Ī more complicated idea would be to couple some sound into the microphone input, and detect that in software. However, there is a good chance that the response may be fairly slow, as the phone is likely to go through some audio configuration changes and will not want to do that until it is "sure" that the headset has been connected or disconnected. This would be fairly simple (just have to figure out what property of a real headset is being measured). One would be to use the headset (or perhaps more specifically microphone) presence detection circuitry, and read that status via the appropriate API. There are two potential paths of possibility here. Replace it with the 4-pin connector off one of those broken phone headsets you have lying around. Or, just cut the 3.5mm jack off your (shiny new) expression pedal. But it would work if you made 3-pin to 4-pin adapter. The other problem would come if the phone refuses to send audio to the jack when the jack isn't plugged fully home - there's an extra contact in the socket that detects that mechanically. No electronics just connectors and bits of wire! Or use a cable like this one: You could buy an inline 3-pin female jack socket and a 4-pin male jack plug and wire the two together to get whatever pinout you need. If the far end of the potentiometer is connected to the ring of the jack, that's not going to work. That may - if it's all wired up right - tell you the pedal position. Play some audio out the Left channel, record it on the mic channel, and measure the amplitude. If you push the jack all the way in, the ground pin on the jack shorts out the microphone input and you won't detect anything - pictures at show how the connections will mate. The tip of the jack should then connect to pin 2, left audio out, of this diagram:Īnd the ring should connect to pin 3, microphone in. Don't plug the jack all the way into the socket. It's not clear if this will work without having the actual hardware in my hands, but. So I made a small change on the title question, and any guidance on that direction would be very much appreciated! The last link provided by got some helpful info but I'm still not able to create a sample to detect the pedal.
Dows 8.1 audio jack how to#
Need suggestions on how to detect it :).ĪS the bounty is about to expire, a minor update. The voice recorder also didn't detect anything on the key press. Although we managed to use the pedal to pause a music app. I just tried it in the pedal and it doesn't work. It's deadly easy to override their effects, I created a simple app that does it and now I'm waiting for my pedal to try. I was searching more about it and I was wondering if the pedal would have the same effect as those headsets with buttons.
If it's possible, using the audio recorder would be enough? I'm studying possibilities for an app here, and this sounds promising if possible. So I was wondering if it's possible to detect something like this pedal on these devices. I know that some devices headphone ports (maybe all of them? any reference here would be good) have 3 channels, for stereo sound and microphone.