You are viewing an older revision! See the latest version

ID12 RFID Reader

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());             
        }
    }
}

ID12 RFID Hello World Schematic ID12 RFID Hello World breadboard

Library

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

Reference


All wikipages