March 2007

Serial Server for Flash, etc.

I got tired of the problems with the various serial server solutions for Flash, so I wrote this Processing sketch to do the job. It’s functional, but I still need to tweak it a bit. But it will allow you to connect a Flash movie to a serial port by making an XML socket to localhost in order to access the serial port. Sample test ActionScript code is at the bottom.

Thanks to Shawn van Every for the latest updates, and Actionscript 3 code.

Continue Reading »

Processing

Permalink

Devantech CMPS03 digital compass reader

This code reads a Devantech CMPS03 digital compass on Wiring or Arduino using the Wire library for I2C.
Continue Reading »

arduino/wiring

Permalink

Devantech SRF02, 08, 10 Ultrasonic Ranger reader

This code reads a Devantech SRF02 ultrasonic ranger (and probably an SRF08 and SRF10 as well) It uses the Wire library for Wiring and Arduino.

Continue Reading »

arduino/wiring

Permalink

Writing Serial Port Data to a Text File

Need to write incoming bytes from a serial port to a text file? On a Unix or Linux machine (or OSX), you can do the following:

Continue Reading »

OSX

Permalink