RFID controller for the Sonos music player
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
mfrc522 move MFRC522 rfid code to new folder Jun 2, 2014
.gitignore update .gitignore file Jun 2, 2014
README.md Update README.md Dec 1, 2015
get_card_id.py update get_card_id.py Jun 2, 2014
requirements.txt - remove soco submodule Jul 17, 2014
rfid_start.py remove clear queue command at start. Jul 17, 2014


RFID based controller for Sonos

Codeship Status for murali44/Sonos_RFID_Controller

This is an experimental project that plays music on your Sonos speaker using RFID cards. Just scan a card and play a radio station or playlist associated with the card.

Raspberry Pi Setup

I'm using raspbian on my raspberry pi. You'll find instructions here. http://bit.ly/1jKKAHr

Install Dependencies

sudo apt-get install python-dev

git clone https://github.com/lthiery/SPI-Py.git

cd SPI-Py

sudo python setup.py install

Hardware Setup

I used a RC522 RFID sensor with my Raspberry Pi. You can find one for $6 or cheaper on ebay. http://bit.ly/1mUNOgl

First, we need to enable the peripheral.

Edit the following file:

Comment the line 'spi-bcm2708' by adding a '#' in front of it. 
Save the file.

You will also need to add “dtparam=spi=on” to your config.txt and reboot.

Edit the following file:

…at the end of the file.

Reboot the Pi.
  Command: sudo reboot

Check peripheral.
  Command: lsmod

You should see 'spi_bcm2708' in the list.

Update your Raspberry Pi.
  Command: sudo apt-get update

Next, connect your Raspberry Pi to the RC522 RFID sensor.