tomaskovacik / vwcdavr

AVR alternative to vwcdpic HW+SW

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://github.com/tomaskovacik/vwcdavr/tree/master/CDC_emulator/cdc_arduino_ported_k9spud_vwcdpic_just_8bit_timers

I want to drop it....

But really go for bluetooth, bk8000l, bk3254 or microchip bm20 module .....