[DEV] Getting Headphone Vol+/Vol- working on Android

Therealmase

New member
Dec 18, 2014
1
0
0
I'm going to spend some time in this. Are you really sure that this is a hardware issue and not a software one ?
I think that maybe android kernel just ignore some input when the amperage or voltage is not as expected
 
Apr 12, 2015
9
1
0
I'm going to spend some time in this. Are you really sure that this is a hardware issue and not a software one ?
I think that maybe android kernel just ignore some input when the amperage or voltage is not as expected
I think that it pay be software related. I have galaxy headphones that work with my Moto e 2015 perfectly(all 3 buttons) but my droid turbo won't interpret any button presses. However I hear a little click sound in the headphones if I click a button.
 

Schrubbi

Member
Jan 29, 2011
30
6
0
I have an old Evo3D (which is very similar to the Sensation) 3-Button Headset.
Today I tried to use it on my new Sony Z3C but the Previous/Next buttons only changed the volume (which is what you want it to do I guess)
Even worse for me, when holding them down (for push-to-talk) the microphone stops working.
Seeing the exact same headset work flawlessly on my old Evo3D and now behaving like you want to on my Z3C leads me to the conclusion that it's definitely not a hardware issue of the headset :)

Best
Chris
 

andreidi

Senior Member
May 13, 2014
129
49
0
Hey guys. I've been thinking for a couple of years about using different headsets with buttons on Android.
I have a Nokia AD-54 remote control, which I've modified by changing the GND with the MIC+ within the device by resoldering the wires to get the correct pinout in order to hear the sound correctly. The remote has a lot of buttons: Play/Pause, Stop, Next, Previous, Volume Up, Volume Down. I know that Android natively knows only the Previous, Next and Play button commands. I've been thinking about two options that might make any headset work with Android:
1) The most elegant is an app that acts like a multimeter to interpret the values of the resistance applied between MIC and GND pins and to allow us to assign different actions for various resistance values detected. I don't really know if this is possible, but maybe someone could do it.
2) The less elegant, but maybe an easier approach is to use the three resistances that Android knows how to work with (Play, Next, Previous) and to replace the resistors in the device with new ones of corresponding values. Then, for the other buttons, we could make further modifications so when a certain button is pressed, the resistance applied should stay on for a certain period of time (i.e. we add the Next resistance to the Volume Up button and we add another electronic component that converts a normal press into a longer one that we could assign a Volume Up action using Headset Button Controller from Google Play. Or simulate other actions, such as multiple times click, press and hold etc. My mind came across a NE555 electronic montage, but it won't fit the headset. Maybe someone could have a different idea.