SeeedRFID (community library)

Summary

Name Value
Name SeeedRFID
Version 1.0.5
Installs 1292
License MIT License (MIT)
Author Ye Xiaobo / Paul Kourany
URL https://github.com/pkourany/SeeedRFID_IDE
Repository https://github.com/pkourany/SeeedRFID_IDE.git
Download .tar.gz
All Versions 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0

125Khz RFID library for Arduino adapted for Spark Core

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

RFID Library

125Khz RFID library for Arduino.

This library only support TTL RS232 serial port.

125Khz RFID Reader

Particle Devices

Adapted for Spark Core by Paul Kourany, Jan 2015 Updated for Libraries 2.0, Feb 2017

Usage

Connecting RFID Reader RX, TX to Particle device Core pins.

Seed Spark (Serial1 or 2) RX <--> TX TX <--> RX

Arduino

When read the data from some RFID card, you will get data like 00 91 6f 0b f5.

Example:

your card number: 0009531147
that your data  : 00 91 6f 0b f5

Notice, f5 is the check bit

f5 = 00^91^6f^0b

Pins
  1. VCC support 3.3 ~ 5V
  2. TX, RX connect to Arduino or Seeeduino
  3. T1, T2 is the Signal port for RFID antenna
  4. W0, W1 is for wiegand protocol, but this library not support yet.
+-----------+
++++++++----|VCC      T1|----
|  +++++----|GND      T2|----
|  | |++----|TX         SER|----
|  | |    ----|RX         LED|----
|  | |    ----|W0        BEEP|----
|  | |    ----|W1         GND|----
|  | |        +-----------+
|  | \_________________________________________
|  |                                           |
|  |                                           |
|  |                           + + + + + + + + + + + +
|  |                           | | | | | | | | | | | |
|  |                            /|-|-|-|-|-|-|-|-|-|-|-|-|
|  |                         | A A A A A A D W R T G V |
|  |                         | 0 1 2 3 4 5 A K X X N I |
|  |               PARTICLE  |             C P     D N |
|  |                PHOTON   |                           |
|  |                         |                     V       |
|  |                         |                 G B R 3 |
|  |                         | D D D D D D D D N A S V |
|  |                            | 0 1 2 3 4 5 6 7 D T T 3 |
|  |                            \|-|-|-|-|-|-|-|-|-|-|-|-|
|  |                           | | | | | | | | | | | |
|  |                           + + + + + + + + + + + +
|  |___________________________________________|     |
|____________________________________________________|

Usage

Connecting RFID Reader RX, TX to Arduino pin headers.

RX <--> 10 TX <--> 11

// RFID_UART.ino

#include <SoftwareSerial.h>
#include <SeeedRFID.h>

#define RFID_RX_PIN 10
#define RFID_TX_PIN 11

#define TEST

SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);
RFIDdata tag;

void setup() {
Serial.begin(57600);
Serial.println("Hello, double bk!");
}

void loop() {
if(RFID.isAvailable()){
tag = RFID.data();
Serial.print("RFID card number: ");
Serial.println(RFID.cardNumber());
#ifdef TEST
Serial.print("RFID raw data: ");
for(int i=0; i<tag.dataLen; i++){
Serial.print(tag.raw[i], HEX);
Serial.print('\t');
}
#endif
}
}


This library is written by Ye Xiaobo for seeed studio
and is licensed under The MIT License.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

Analytics

Browse Library Files