-
Notifications
You must be signed in to change notification settings - Fork 397
Sound_Card_WM8960_Hi Fi_HAT
As the official repo does not work anymore (drivers are not developed anymore for the new kernel) we recommend to use the following drivers: https://github.com/respeaker/seeed-voicecard.
see original thread in the forum
- User Manual: https://www.waveshare.com/wiki/WM8960_Audio_HAT
- Install Driver / Test Sound (working) with this Manual: https://www.waveshare.com/w/upload/5/54/WM8960_Audio_HAT_User_Manual_EN.pdf
- On the installation of RPi-Jukebox-RFID, use AUDIOiFace="Master".
- To use GPIO buttons you may use a flexible pinout. However you must not apply the classic pinout. Thus adapt
./settings/gpio_settings.ini
so that you don't interfere with the pins of the WM8960-Audio-HAT GPIO 2,3,18-21.
Clone the driver and install it with commands:
git clone https://github.com/waveshare/WM8960-Audio-HAT
cd WM8960-Audio-HAT
sudo ./install.sh
sudo reboot
speaker-test -c2
GPIO | Pin | WM8960 Hi-Fi Sound Card |
---|---|---|
2 | 3 | I2C_SDA P_SDA |
3 | 5 | I2C_SCL P_SCL |
8 | 24 | |
9 | 23 | |
10 | 19 | |
11 | 21 | |
16 | 36 | |
18 | 12 | I2S_CLK P18 |
19 | 35 | I2S_LRCLK P19 |
20 | 38 | I2S_ADC |
21 | 40 | I2S_DAC |
24 | 18 | |
25 | 22 | |
26 | 37 |
GPIO | Pin | WM8960 Hi-Fi Sound Card |
---|---|---|
P17 | 11 | Configurable |
set gpio17
echo "17" > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio17/direction
read gpio status
cat /sys/class/gpio/gpio17/value
"1" when not pressed "0" when pressed
release gpio17 (to avoid error: Device or resource busy)
echo 17 > /sys/class/gpio/unexport
audio_output {
type "alsa"
name "Alsa Device"
mixer_type "Software"
mixer_device "bcm2835-i2s-wm8960-hifi"
mixer_control "Master"
}
If you like Phoniebox, consider: buy me a coffee or PayPal
- Code: https://github.com/MiczFlor/RPi-Jukebox-RFID
- Phoniebox home page: English | Deutsch
Phoniebox is a contactless jukebox for the Raspberry Pi, playing audio files, playlists, podcasts, web streams and spotify triggered by RFID cards. All plug and play via USB, no soldering iron needed. Update: if you must, it now also features a howto for adding GPIO buttons controls.
Visit Phoniebox.de
π₯ Version 3
- β Releases
- π΅ Install Jukebox Version 3
- π Report a bug
- π Propose a feature
- βοΈ Feature Status
- π Documentation
- π©βπ» Development
- βοΈ Contributing
- π¦ Code
πΆ Version 2
- β Releases
- π΅ Install Jukebox Version 2
- π Report a bug
- βοΈ Features
- π Documentation
- βοΈ Contributing
- π¦ Code
Version 2 Pages
-
Setup / Upgrades
- Synchronising Phonieboxes in a local network
- Smart Home remote control with MQTT
- Hardware Pinout Overview
- Systemwide Equalizer
- Phoniebox with read-only Filesystem
- HiFiBerry Soundcard Details
- WM8960 Hi-Fi HAT
- PAM8403 Amplifier Power Off
- TPA3118 Amplifier Power Off and EMI improvement
- External Non USB Audio DAC ES9023, PCM5102, etc.
- On-board LEDs with fibre optics
- Setting GPIOs at boot time
- Stop on removal with USB RFID Reader
- Firmware update improves audio out
- Architecture