I have not written the install script but it will be fully compatible with this project form WAVESHARE as it is based on the WOLFSON WM8960. The Raspiaudio implementation offers an additional external microphone input as well as stereo speakers onboard.
Credit to Waveshare and credit to Liam Girdwood from Wolfson (the codec maker)
Clone the driver and install it with commands copy and paste each line in a terminal window:
git clone https://github.com/waveshare/WM8960-Audio-HAT
it could take a long time 5 minutes on a PI4, but 15mn or more on a Pi zero, so relax go get a drink then
if you use raspbian desktop select the audio device from the top right menu by doing a right click:
then by clicking on Output device settings you will have access to the mixer:
it’s a bit confusing at first but feel free to use the premade settings at the end of this tutorial.
to test it use the following script the red LED will be on, push on the blue button on the ULTRA++, you should hear “front Left, front right” then the recording of it using the on board microphone:
sudo wget -O - test.raspiaudio.com | sudo bash
if it does not work redo the install one more time
If it does work, just go on youtube and play some music!
to record I recommand to install audacity:
sudo apt-get install audacity
then on your desktop you will find audacity under the Sound & Video section.
In Audacity click on the recor button and say something, it should be recording using the onboard microphones.
Export the audio file on your desktop, double click on it to listen to it.
|PIN25 39 6 14||GND|
|GPIO23||PIN16||BUTTON (this pin as an external pull up)|
this will be usefull in the alsa mixer to understand what input is connected to which microphones
External microphone jack input:
External speakers/speaker output:
You will notice that alsamixer have a LOT of settings with that dac so it could be confusing at first to do what you want. So I made a few basic scripts to select different devices, you could use it as a guide just run:
Activate input the external microphone jack + output onboard speakers and headphones
Activate input the onboard microphone + output onboard speakers and headphones
Activate inputjack line in + output onboard speakers and headphones