8000 GitHub - fast90/asd
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fast90/asd

Repository files navigation

#Audio Switch Daemon

This circuit switches two audio sources, based on the status of a MPD-server running on a Raspberry Pi.

If MPD is playing the Raspberry Pi (INPUT 2) is switched to OUT. When MPD stops playing OUT is switched back to INPUT 1.

Library

Libbcm2835 is used for GPIO access. See http://www.airspayce.com/mikem/bcm2835/ for details.

Schematic

Schematic

Wiring

Raspberry Pi Pin No. Audioswitch Pin Function
8 SV2 - 3 GPIO 14
2 SV2 - 2 GND
6 SV2 - 1 +5V

SV1 can be used to connect a manual switch.

Setup

Install the Library see http://www.airspayce.com/mikem/bcm2835/ for details.

If you are using a Raspberry Pi 2 you need to enable device tree support!

sudo raspi-config
->Advanced Options -> enable Device Tree
sudo shutdown -r now

Then type

./configure
make
make install

Configuration & Usage

Option Argument Function Default
h Show help
v Show version
no-daemon Don't detach from console
p Change Pin GPIO17
s Change Path to socket /home/pi/.mpd/socket
asd -p 17 -s /home/user/.mpd/sock

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0