A simple project for playing sounds using a Rfid RC522 and raspberry pi with es6.
Based on Node.js I2C module: rc522.
Play with omxplayer.
The module is currently only able to read the serial number of the tag which is hold onto the reader.
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo rpi-update
sudo apt-get clean
The RFID reader is plugged onto the raspberry pi like it is described over here http://geraintw.blogspot.de/2014/01/rfid-and-raspberry-pi.html
- The GCC compiler is installed
sudo apt-get install build-essential
- node-gyp is installed
sudo npm install -g node-gyp
First of all we have to install the C library for Broadcom BCM 2835 as it describe` here
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.49.tar.gz
tar -zxf bcm2835-1.49.tar.gz
cd bcm2835-1.49
./configure
make
sudo make check
sudo make install
sudo modprobe spi_bcm2835
npm start