A small project for sending alerts when laundry is done.
- Raspberry Pi Zero W
- Raspberry Pi Zero power adapter
- 16GB microSD card
- Raspiaudio Mic+ v2 audio hat
- Python
- sudo/root permissions
- Flash your microSD card using Raspberry Pi Imager (which you can install here).
- Make sure to enable SSH and WiFi, as well as set user credentials during config.
- Insert your microSD card into the Pi.
- Attach the audio hat to the Pi by pressing it into the GPIO pins.
- Plug the power adapter into your Pi.
- Wait for your Pi to become available through SSH on your network.
The majority of this installation will mirror the process given by raspiaudio in their instructions for setting up the mic+ v1 hat, which can be found here.
First, we will need to add our user to the gpio group:
sudo usermod -aG gpio $USERThis will allow our user to interact with the pins utilized by the hat.
Next we run a bash script provided by raspiaudio to configure the hat. The source can be found here, and it is encouraged to verify any code personally before executing it.
Run the install script:
wget -O - mic.raspiaudio.com | bashAccept the prompt to reboot the Pi.
Finishing the installation requires executing the test script post-install, which can be found here.
Run the test script:
wget -O - test.raspiaudio.com | bashPress the onboard button on the hat and you should hear "front left", then "front right". This confirms the hat was installed correctly.
Instructions for modifying the gain and other finetuning can be found in the forum post from raspiaudio.
pip install sounddevicelibportaudio2 is necessary for sounddevice functionality
sudo apt-get install libportaudio2