Python project to create a controller for a mpd server to play playlists selected by rfid tags.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The source code is licensed using the GNU GPLv3 see LICENSE.md
A raspberry zero w with a rc522 rfid reader is used to play predefined playlists on a mpd server. The mpd server runs on a separate server where the music is stored. This server is connected to loudspeakers.
Connecting the raspberry to the rc522 module:
| RF522 Modul | Raspberry Pi |
|---|---|
| SDA | Pin 24 / GPIO8 (CE0) |
| SCK | Pin 23 / GPIO11 (SCKL) |
| MOSI | Pin 19 / GPIO10 (MOSI) |
| MISO | Pin 21 / GPIO9 (MISO) |
| IRQ | — |
| GND | Pin6 (GND) |
| RST | Pin22 / GPIO25 |
| 3.3V | Pin 1 (3V3) |
- mpd_handler.py Lib to interact with the mpd server
- playlist_manager.py Script to fill the database with playlist data
- rc522_reader.py Lib to interact with the rfid reader
- repository.py Lib to interact with te sqlite database
- rfid_mpd_controller.py The script that reads the rfid and plays the selected playlist using the mpd server
- rfid_tag_playlist_manager.py Script to link a rfid with a playlist
- web.py A flask web application to create the cover images
