How To: Raspberry Pi RFID Reader Kiosk (ACR122U)

Ok, so I’ve wanted to setup a Raspberry Pi (RPi) in a sort of kiosk mode reading RFID tags to identify a person without the need for them to login (more about the whole project later I’m sure).

I’ve seen many people have issue with the ACR122U (as pictured below) on linux systems (which I got from )

2015-06-23 11.43.53

I too have had quite an issue, so this post is as much for me to remember how I did it as it is for you to find out…
This article assumes you want to run an ACR122u USB RFID reader on an RPi running raspbian, it’s default OS.


Step 1:

First you need install libudev-dev:

sudo apt-get install libudev-dev

Step 2:

Then you need to install libusb, this should do the trick:

sudo apt-get install libusb-dev

Step 3:

Now we need to install NFC Tools:

wget https://bintray.com/artifact/download/nfc-tools/sources/libnfc-1.7.1.tar.bz2

tar xjf libnfc-1.7.1.tar.bz2

cd libnfc-1.7.1

./configure –prefix=/usr –sysconfdir=/etc

make

sudo make install

Step 4:

You have to blacklist two items for it to work, I believe this is so the system doesn’t take control of the RFID reader thus locking it up for you to check it directly…

sudo nano /etc/modprobe.d/blacklist.conf

Paste the following text:

blacklist pn533

blacklist nfc

Ctrl-X, Y, enter…

sudo modprobe -r pn533 nfc

sudo reboot

Step 5 – Give it a go:

At this point you should plug in the RFID reader, with an RFID card on it, give it 30 seconds, and then the following line should show you details of the card on the reader, if it doesn’t then something’s gone wrong…

sudo nfc-list

That’s it!

PS
I’ve tested this on a fresh image of raspbian (wheezy 2015-02-16 image) with zero problems.

Great thanks to the following articles for reference in making this post:

http://stackoverflow.com/questions/23712859/libusb1-fails-do-configure-task-with-udev-support-requested-but-libudev-not-ins

http://nfc-tools.org/index.php?title=Libnfc#POSIX_systems

Be the first to comment

Leave a Reply

Your email address will not be published.


*


ERROR: si-captcha.php plugin: GD image support not detected in PHP!

Contact your web host and ask them to enable GD image support for PHP.

ERROR: si-captcha.php plugin: imagepng function not detected in PHP!

Contact your web host and ask them to enable imagepng for PHP.