The wiring from the USB-UART bridge and the RFID reader
RFID Reader view:
.-----------------------------.
| [1][2] [5][4][3][2][1] |
| J3 J1 |
| |
| RDM880 (top view) |
| |
| J2 |
| [5][4][3][2][1] |
.-----------------------------.
RFID Breakout pin | USB-UART pin |
---|---|
J2 5 | 5V |
J2 4 | GND |
J2 3 | TXD |
J2 2 | RXD |
npm install serialport debug
Set the SERIAL_PORT
env variable to the port your RFID reader is connected to:
SERIAL_PATH=/dev/tty.SLAB_USBtoUART node rfid.js
>> Connected
Placing an RFID tag into the reader's field will print out its serial number. Removing the tag will print "Removed". The MFRC500 chip doesn't allow you to select which card to read if there are more than one. It will just print the first.
Info: http://www.seeedstudio.com/wiki/index.php?title=13.56Mhz_RFID_module_-_IOS/IEC_14443_type_a Protocol information: http://neophob.com/files/rfid/PROTOCOL-821-880%20_2_.pdf