-
Notifications
You must be signed in to change notification settings - Fork 0
Home
-
Arduino Mega
-
Arduino Ethernet Shield
The LEDs flash once the project is done initializing(~3 seconds). When a User swipes their card both the magnetic ID and RFID are read by their respective readers. The RFID reader is situated beneath the magnetic reader as shown in the picture below:
Next, using the magnetic API endpoint the project attempts to determine which User the magnetic corresponds to. If no User is found the LEDs turn red. If a User is found, the User's RFID endpoint is called(privileged operation) and in case of a success the LEDs turn green. In the case of a (network) error the LEDs turn yellow. If this occurs an officer should be alerted and the device possibly restarted.
To compile the code you must have the ArduinoRC library, Arduino PS/2 Keyboard library, and Adafruit NeoPixel library installed.
This project cannot use the Arduino PS/2 Keyboard library because this library uses 1 static interrupt buffer regardless of how many Keyboard instances on creates. Since the magnetic and RFID information are sent at the same time, a custom PS/2 solution had to be made.
The device is netreg'd for CMU's network under the RC account as cardreader
.