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

#include "mbed.h"
#include "RFID.h"

ID12RFID rfid(p13, p14);

int main() {
    while (1){
        int id = rfid.read();
        printf("Tag ID = %d\n", id);
    }
}

/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