You are viewing an older revision! See the latest version

ID12 RFID Reader

Table of Contents

  1. Hello World!
  2. Library

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

Hello World!

main.cpp

// Print RFID tag numbers

#include "mbed.h"
#include "ID12RFID.h"

ID12RFID rfid(p10); // uart rx

int main() {
    while(1) {
        if(rfid.readable()) {
            printf("RFID Tag number : %d\n", rfid.read());             
        }
    }
}

/media/uploads/simon/rfidschematic.png

/media/uploads/simon/rfidphoto.jpg

Library

A library for the ID12 RFID reader, returning the ID as a 32-bit int.


All wikipages