Skip to content

Universal amplifier power control for Volumio, Moode & MPD

Notifications You must be signed in to change notification settings

maxiu1/ampswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Š amp-relay.sh

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.


✨ Features

  • πŸ”Œ 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

🧱 Requirements

  • Raspberry Pi running Volumio / Linux
  • Bash
  • raspi-gpio
  • curl
  • jq

Install dependencies if missing:

sudo apt update
sudo apt install -y curl jq

About

Universal amplifier power control for Volumio, Moode & MPD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages