Skip to content

A small project for sending alerts when laundry is done.

Notifications You must be signed in to change notification settings

hestonhamilton/laundrypi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laundrypi

A small project for sending alerts when laundry is done.

Materials List

  • Raspberry Pi Zero W
  • Raspberry Pi Zero power adapter
  • 16GB microSD card
  • Raspiaudio Mic+ v2 audio hat

Other requirements

  • Python
  • sudo/root permissions

Preparations

  1. Flash your microSD card using Raspberry Pi Imager (which you can install here).
  2. Make sure to enable SSH and WiFi, as well as set user credentials during config.
  3. Insert your microSD card into the Pi.
  4. Attach the audio hat to the Pi by pressing it into the GPIO pins.
  5. Plug the power adapter into your Pi.
  6. Wait for your Pi to become available through SSH on your network.

Hat Installation

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 $USER

This 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 | bash

Accept 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 | bash

Press 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.

Recording audio

pip install sounddevice

libportaudio2 is necessary for sounddevice functionality

sudo apt-get install libportaudio2

About

A small project for sending alerts when laundry is done.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published