Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dkrussia/WiegandOutput-Arduino

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiegandOutput-Arduino

Wiegand output library for 26 and 34 bits for arduino.

Description

This library allow arduino hardware send a wiegand data using two arduino IO (Data0 and Data1) with 2 types of output - Wiegand 26 bits and Wiegand 34 bits standard.

Tested hardwares

Arduino Uno

How to use

  1. Include de library wiegandOutput.h
  2. Create a WiegandOut object: WiegandOut wiegandOut(8,9); -> Wiegand object initialized with Data0 at pin 8 and Data 1 at pin 9
  3. Use the method send to send your card number.

Simple example

#include "Arduino.h"
#include "wiegandOutput.h"

WiegandOut wiegandOut(8,9);

long count = 0;

void setup() {
}

void loop(){
wiegandOut.send(count,26,true); // Send 26 bits with facility code
delay(1000);
wiegandOut.send(count,34,true);   // Send 34 bits with facility code
delay(1000);
wiegandOut.send(count,26,false); // Send 26 bits without facility code
delay(1000);
wiegandOut.send(count,34,false); // Send 34 bits without facility code
delay(1000);
count++;
}

About

Wiegand output library for 26 and 34 bits for arduino

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%