ID12 RFID Reader

An RFID reader module that reads tags and sends the ID as a 9600-8N1 serial stream

Hello World!

Import program

00001 // Hello World for printing RFID tag numbers
00002 
00003 #include "mbed.h"
00004 #include "ID12RFID.h"
00005 
00006 ID12RFID rfid(p14); // uart rx
00007 
00008 int main() {
00009     printf("Hello World\n");
00010     while(1) {
00011         if(rfid.readable()) {
00012             printf("RFID Tag number : %d\n", rfid.read());             
00013         }
00014     }
00015 }

ID12 RFID Hello World Schematic ID12 RFID Hello World breadboard

Library

The mbed library for the ID12 RFID reader, returning the 32-bits of the ID as an int

Import library

Public Member Functions

  ID12RFID (PinName rx)
  Create an ID12 RFID interface, connected to the specified Serial rx port.
int  readable ()
  Non blocking function to determine if an ID has been received.
int  read ()
  A blocking function that will return a tag ID when available.

Reference


Discussion topics

Nothing here yet!

Questions

Nothing here yet!