Volumio GPIO Amplifier Relay Controller (Gap-Proof)
A simple and reliable Bash script that controls an amplifier relay using GPIO based on Volumio playback state.
Designed specifically to eliminate the infamous Spotify / Volumio track-gap bug, where the player briefly reports stop between tracks and accidentally turns the amp off.
Instead of reacting instantly, the amp turns OFF only after a long configurable delay.
- π GPIO relay control (BCM numbering)
- π Two relay modes:
- toggle β pulse like a power button
- hold β GPIO stays HIGH while playing
- β± Configurable OFF delay (gap-proof)
- β Interactive setup wizard
- π§ͺ Test mode before installing
- π Optional systemd service installation
- π§Ή Built-in uninstall option
- π Minimal dependencies
- π§ Designed for stability over complexity
- Raspberry Pi running Volumio / Linux
- Bash
raspi-gpiocurljq
Install dependencies if missing:
sudo apt update
sudo apt install -y curl jq