MPD Controls
JL01152 opened this issue · comments
Ok so I have been messing with the headphone jack on my galaxy s7 edge and I found that I can control the NEXT PREV PLAY/PAUSE functions with just shorting the the MIC ring to the GND ring.
Simulating Button Clicks (shorting to GND)
1 click = play/pause
2 quick clicks = NEXT track
3 quick clicks = PREV track
A 680ohm resistor to gnd simulates pressing the volume down key. ( Media if playing music, Ringtone volume if not playing music)
I have yet to find what other resistance values will do. I will try to incorporate these functions using a HEF4066 switch. Hopefully,
My question is. How can I take the command from the Head Unit buttons and have the arduino interpret them into IO functions?
Is this already included in your code?
Edit: headphone support is only on version with 2x8bit timers
I want to drop it....
But really go for bluetooth, bk8000l, bk3254 or microchip bm20 module .....
Schematics of headset with buttons :