Category Archives: Processing

Reading Mifare RFID Tags

This tutorial explains how to read from Mifare RFID tags from your computer using a Sonmicro SM130 read/write module. The sketch below is written in Processing using my SonmicroReader library. The SM130 has a TTL serial interface that you can … Continue reading

Posted in Processing | Tagged , , , , | 1 Comment

Sonmicro RFID Reader Library for Processing

Last year, I worked with Timo Arnall and Einar Martinussen and Jørn Knutsen on a Processing library to read and write to Mifare RFID tags using the Sonmicro SM130 read/write module.  Here it is, with a few improvements and bug … Continue reading

Posted in Processing | Tagged , , | 1 Comment

Clock

Here’s a quick digital clock in Processing. It also sends the time out a serial port. I use this for testing when I need for a microcontroller or other serial device to receive a string. /* Clock Draws a digital … Continue reading

Posted in Processing | Tagged | Leave a comment

Sending Mail from Processing

Here’s a piece of code to send mail from Processing. It uses the net library. Warning: your mail server may not use port 25. /* mail_client by Tom Igoe A simple mail sender client Created 21 January 2006 */ import … Continue reading

Posted in Processing | Leave a comment

RFID Reader and Image Display

This program reads ID Innovations ID-12 RFID readers and matches the tags against a list of known tags. It’s an illustration of how to use an RFID reader to associate data with a set of tags. /* RFID Reader and … Continue reading

Posted in Processing | Comments Off on RFID Reader and Image Display

Reading Multiple Serial Ports in Processing

This program reads multiple serial ports and lets you know when data comes from one port or the other. The two ports in this example are attached to ID Innovations ID-12 RFID readers. The ID-12 readers send a string that … Continue reading

Posted in misc, Processing | Leave a comment

XBee Library graphing and logging application

Here’s a program that uses Rob Faludi and Dan Shiffman’s XBee library for processing to read three analog sensors from multiple remote XBee radios and graph them. It also saves the data to a comma-delimited file. It also makes sounds … Continue reading

Posted in Processing, XBee | Comments Off on XBee Library graphing and logging application

XBee Library graphing application

Here’s a simple program that uses Rob Faludi and Dan Shiffman’s XBee library for processing to read three analog sensors from a remote XBee radio and graph it. For this application, you need two XBee series 1 radios. One is … Continue reading

Posted in Processing, XBee | Comments Off on XBee Library graphing application

XOR calculation for NMEA checksums (GPS protocol)

IF you’ve ever seen the serial output of a GPS reader, you’ve seen a mystery string at the end like this:That’s the checksum of the whole string…. For example, if the sentence is this:LKLKJLKJLthen you run a checksum on this:KLKJLKJLKHere’s a Processing method to calculate the checksum, given the string between the $ and the *:char checkSum(String theseChars) { char check = 0; // iterate over the string, XOR each byte with the total sum: for (int c = 0; c < theseChars.length(); c++) { check = char(check ^ theseChars.charAt(c)); } // return the result return check;}And here’s a whole program to use the checksum with an Etek EB-85A reader:/* ETEK EB-85A GPS reader test.
Continue reading

Posted in Processing | 1 Comment

Peak finding in Processing

This example shows how to do it in PRocessing, assuming the microcontroller is ju/* Peak Finding graphing sketch by Tom Igoe with help from Matt Young This program takes raw bytes from the serial port at 9600 baud and graphs them…. Created 20 April 2005 Updated 23 Oct 2007 */import processing.serial.*;Serial myPort; // The serial port// initial variables:int hPosition = 1; // the horizontal position on the graphint threshold = 10; // minimum threshold for peak findingint peakValue = 0; // the current peak valuevoid setup () { size(400, 300); // window size // List all the available serial ports println(Serial.list()); // Open whatever port is the one you’re using.
Continue reading

Posted in Processing | Comments Off on Peak finding in Processing