I would like to use the button on my headphones (the one that play/pauses on a phone) as an input on my pi. I understand that this may need an expansion/audio board. Is it possible?

1 Answer 1


You most likely will need an expansion board that splits the 4 pin from the headphones to the gpio on the pi. Plus the audio coming off the pi's audioport. Depending on how well you can program for the pi you should be able to. The button on the headphone grounds the pin. And the device counts how many times its pressed in a certain amount of time.

  • Thank you. I was wondering if a solution already existed, but apparently not. I can solder and code - and the knowledge of the button grounding the mic pin is very helpful.
    – drnessie
    Commented Mar 30, 2015 at 22:44
  • As to my knowledge there isn't a pre-made board. But if you design something that works well you could probably make a little money off it. Commented Mar 30, 2015 at 23:23
  • NB: I have these and they seem to connect the button through 3 ohms - although this is only through a very quick multimeter test and not conclusive.
    – drnessie
    Commented Apr 1, 2015 at 7:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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