My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Links

Introduction

Using libnfc, touchatag-processing is Processing library that allows users to connect and read from cheap touchatag RFID readers on the Windows and Macintosh platforms.

This library affords the simultaneously connection of multiple touchatag readers, and up to three tags on each one (due to performance issues of the tags themselves on the touchatag RFID reader). This project was tested on Windows 7 Professional, Windows XP SP3, and MacOSX 10.6.5, with Processing 1.0.9 up to 1.2.1.

Instructions

  1. Download the corresponding drivers for the touchatag readers from http://www.touchatag.com/downloads (the touchatag software client isn't necessary)
  2. Download the corresponding touchatag Processing library from the Downloads section of this websiste
  3. Place the "touchatag" folder inside processing\libraries
  4. See an example of a Processing sketch that uses the touchatag library in touchatag\examples
  5. Additionally for Mac users, (1) drag both the libnfc.0.dylib and libusb-0.1.4.dylib to the install application on touchatag\library; (2) make sure Java SE 6 32bit is installed
  6. For more information read the reference for this library in touchatag\reference

Example

import touchatag.*;
Touchatag rfid;

// Defines the maximum number of touchatag
// readers that might be connected to the computer 
int numOfReaders = 3;

// This library affords up to three touchatag
// tags on each of the touchatag readers
String[][] tags = new String[numOfReaders][3];

void setup() {
  // Optionally, if only one touchatag reader will
  // be used: rfid = new Touchatag(this) 
  rfid = new Touchatag(this, numOfReaders);
}

void draw() {
  // Gets the number of touchatag readers connected
  int readers = rfid.On();
  
  if (readers != 0) {
     // Gets the tags for each of the touchatag readers
     for (int i = 0; i < readers; i++) {
       tags[i] = rfid.tagsOnReader(i);
       println(tags[i]);
     }  
   }
}
Powered by Google Project Hosting