SongMatrix uses a Raspberry Pi with a microphone to listen to the background music every few minutes. It then uses shazamio
to identify the song and sends a MQTT message to the Adafruit IO MQTT broker. The message is received on an Adafruit MatrixPortal and displays the artist and song title.
In addition to a little Python knowledge, you will need:
- Raspberry Pi single board computer (Any will do, I'm using an older Raspberry Pi 2 without issue)
- USB Microphone (Adafruit)
- Adafruit MatrixPortal (Should work on either the newer S3 or older M4)
- Adafruit 32x64 RGB Matrix panel (I'm using a 2.5 pitch panel)
- Adafruit IO account
- With your Raspberry Pi, clone the repo
- In the
python
directory, create aconfig.py
file with two fields:
- aio_username = "yourAdafruitIOusername"
- aio+key = "YourAPIKey"
- Run
python record-identify.py
which starts an unendingwhile
loop. (systemd
service coming soon) - In the
circuitpython
directory copysongmatrix.py
to your MatrixPortal ascode.py
- Make sure your MatrixPortal's
settings.toml
includes your WiFi information and Adafruit IO credentials