-
Notifications
You must be signed in to change notification settings - Fork 43
HID Wiegand RFID Reader Support
The Kegboard firmware supports reading many popular HID RFID cards via an attached Wiegand reader.
You need an external RFID reader that:
- Uses the 2-wire Wiegand protocol
- Operates at +5v DC (ie the same voltage as the Kegboard).
Here's one example from Amazon. The OmniProx OP40 is also known to work (confirm voltage first); it's usually easy to find these used for $20 or so on eBay.
The Wiegand reader feature is not enabled by default, since it requires pins that are already allocated to the legacy Kegboard RFID reader.
Patch the kegboard_config.h
file to enable the Wiegand reader feature. You'll have to disable the ID-12 feature at the same time:
// Enable ID-12 RFID?
#define KB_ENABLE_ID12_RFID 0
// Enable Wiegand RFID reader?
// Note: Must set KB_ENABLE_ID12_RFID to 0 if enabling this.
#define KB_ENABLE_WIEGAND_RFID 1
Optionally, change the pins used by the firmware:
#define KB_PIN_WIEGAND_RFID_DATA0 A4
#define KB_PIN_WIEGAND_RFID_DATA1 A5
Rebuild and flash the firmware.
There are 4 wires we care about. The reader may have more than four wires; consult the datasheet for the reader if in doubt (OP40 datasheet).
- PWR or DC+ Input should be connected to the 5v power supply.
- GND should in turn be connected to ground.
-
DATA0 connects to the pin you configured as
KB_PIN_WIEGAND_RFID_DATA0
. -
DATA1 connects to the pin you configured as
KB_PIN_WIEGAND_RFID_DATA1
.