sudo apt-get update && sudo apt-get upgrade -y
git clone git://git.drogon.net/wiringPi
cd wiringPi
./build
cd
wget http://tonigor.com/pidoorman/wiegand.c
cc -o wiegand wiegand.c -L/usr/local/lib -lwiringPi -lpthread
You will then be able to run the program:
sudo ./wiegand
Below command will ask you to set mysql root password set it to 123456
sudo apt-get install mysql-server libmysqlclient-dev
sudo apt-get install libMojolicious-perl
sudo apt-get install libdbd-mysql-perl
git clone https://github.com/ebulanik/RFID-CheckList.git
cd RFID-CheckList
./INSTALL.sh
Open a browser page on the local network and connect to http://IpAdress:3000
IMPORTANT DISCLAIMER: WIEGAND READERS USE 5V DC, WHILE THE RASPBERRY PI IS A 3.3V DEVICE. IF YOU CHOOSE TO FOLLOW THESE INSTRUCTIONS, I CAN TAKE NO RESPONSIBILITY IF YOU BLOW UP YOUR RASPBERRY PI.
With this in mind, please look at the protection circuit very carefully:
The protection needs to be applied to both the Data0 and Data1 connections. The GPIO pins I use in my example code are pins 0 and 1. Your Wiegand reader will obviously require 12V, for which I use an external power supply.