hii all,
I have been working on wiegand protocol Rfid readers....I can successfully read single rfid reader with single arduino by using wiegand library....the code is as follows:
#include <Wiegand.h>
WIEGAND wg;
void setup() {
Serial.begin(9600);
wg.begin();
}
void loop() {
if(wg.available())
{
Serial.print("Wiegand HEX = ");
Serial.print(wg.getCode(),HEX);
Serial.print(", DECIMAL = ");
Serial.print(wg.getCode());
Serial.print(", Type W");
Serial.println(wg.getWiegandType());
}
}
can i connect multiple rfid readers to single arduino?needs help in code..
Thank You... 
A link to the data sheet of the RFID reader would help to answer such a question.
I found 2,3 pins are to be default pins for reading rfid reader ...(wiegand.h)..can i connect two or more readers parallely to 2,3 pins...?
Sorry, I couldn't identify the product name in that Cyrillic page. Also it's an advertisement, not a detailed data sheet.
The Wiegand library was based on my code which originally supported three readers and is easily changeable to support any number of readers. It is here.
http://www.thebox.myzen.co.uk/Hardware/Crazy_People.html
However if the library is written correctly you should just be able to define an other instance of it.
WIEGAND wg1;
WIEGAND wg2;
WIEGAND wg3;
And so on. But if you can not change the PIN numbers then no you can not just parallel up readers unless only one is is being used at any one time and the readers have open collector outputs.
1 Like
okay Thank You Sir..:-)i will test as per your given code and then get back to you....
And one more help needed sir...i have IP fingerprint reader of (secureye) which also have wiegand output
i want to read each fingerprint through arduino ...
link:Secureye | Smart Intelligent Security Solutions
here is the connection diagram:
i want to read each fingerprint through arduino ...
link:Secureye | Smart Intelligent Security Solutions
That fingerprint scanner holds the fingerprints in a data base and when a new fingerprint is detected it outputs if it matches one of the fingerprints in the data base.
You will have to find the data sheet for that device to tell you what the protocol is needed to enroll a fingerprint.
here is the connection diagram:
For what?
hello sir,
i firstly checked it with wiegand to rs232 converter it is showing attached output..and i found it is correct..
but when i connect wiegand out to arduino 4,5 and ground ..and uploaded your program this is showing attached output...
Now getting stable output... 
just changed 26 bit to 34 bit....
if(reader1Count >= 34)
But why i dont get same as i have got while connected using (wiegand to rs232)... 
But why i dont get same as i have got while connected using (wiegand to rs232)... 
It does say on that page why, maybe you missed it. For that project all I needed was a unique number to pass on to the PC. So I took all the bytes that were sent to me from the Wiegand input.
While Wegand specifies the hardware it doesn't specify what the bits mean. The most common thing is to have the first bit and the last bit as parity bits, some time their are other parity bits in the middle. If you want the output of my code to match what you are using then you have to exclude these parity bits. But that means you have to know what your system excluded. Write out what you get from my code and your system in binary on two pieces of paper. Then slide the two along side each other and see where they line up to find out what bits you have to exclude.