Hi all
I have set up Volumio on a Pi 3B+ (with an attached standard Raspberry 7" display and a HifiBerry DAC+) and I am trying to use the GPIO-buttons plugin (the one installable via the plugins menu) to make that thing more conveniently controllable via a couple of physical buttons.
According to the HifiBerry docs (hifiberry.com/build/documen … ry-boards/) the DAC+ is using GPIO 2-3 (pins 3 and 5) and 18-21 (pins 12, 35, 38 and 40), so I of course tried to avoid those pins. The 7" display is attached via its own flat-ribbon connector, so there should be no interference with the other GPIO pins (I hope at least…).
I attached my buttons and configured the GPIO-buttons plugin as follows:
pin# GPIO description
9 n/a ground
1 n/a supply / +3.3V
5 27 planned for Power on/off (default pull low - not yet connected)
7 4 planned for Power-LED (default pull high - not yet connected)
8 14 Volume- (default pull low, button connects to +3.3V)
10 15 Volume+ (default pull low, button connects to +3.3V)
11 17 <spare>
15 22 Prev. track (default pull low, button connects to +3.3V)
16 23 Play/Pause (default pull low, button connects to +3.3V)
18 24 Next track (default pull low, button connects to +3.3V)
According to the GPIO-plugin docs the pins listed (except GPIO-4) have a default pull of low and the buttons thus connect them to 3.3V, as they should be connected to the opposite of their default pull. The power on/off button and the LED I have not connected, yet.
But to my dismay this setup does not work as expected: the Next track and the Volume+ buttons work (mostly at least, though also not very stable), the play/pause button works but only functions as play, not as toggle, i.e. it never pauses, and worst: all other buttons don’t work at all.
I have checked my wiring and config (and double-checked and triple-checked and …) but this is where I am stuck now.
Has anyone an idea what could be wrong here or what I might be missing? Is there anything obvious I am doing wrong? Might the HifyBerry DAC+ or the 7" display possibly conflict with any of the listed GPIO-pins?
This whole thing looked so easy at the begin but why can’t I get this to work?
Any help or hint would be highly appreciated!
Michael