W2O

- WiTilt to OSC

Introduction

W2O (WiTilt to OSC) is a data processor, running on Mac OS X, for use with the Wireless Accelerometer / Tilt Sensor version 2 by Sparkfun. More specifically, W2O is a combination of a Bluetooth data server and an Open Sound Control client.
3-D tilt / accelerometer measurement data transmitted from the WiTilt v.2 sensor is received via Bluetooth, packaged into customizable OSC messages, and then sent out to any destination over network through UDP.

Signal Flow

WiTilt ==(Bluetooth)==> W2O ==(OSC/UDP)==> OSC receiver

Instructions (w/ Screenshots)

System Requirements

Hardware

Mac (with Bluetooth, of course :-> )

OS / Software

Tested on Mac OS X Tiger (10.4.x).
A few modifications of source code and Xcode project settings should make it compatible with older versions of OS X (10.2 or later).

To compile the project, you may need Xcode 2.1 or later.

Implementation Notes

This program is based on Apple's RFCOMM_Open_SPP_Example, locally available at:
(your_Developer_directory)/Examples/Bluetooth/RFCOMM_Open_SPP_Example/
And its OSC client is powered by Chandrasekhar "Sekhar" Ramakrishnan's ObjC OSC.
woony.home

Downloads

W2O.zip
Source (Xcode project).
W2O.app.zip
Executable binary.
WiTilt.pat
Max/MSP patch to show how to take WiTilt data via OSC.
WiTilt.pd
Pd patch to show how to take WiTilt data via OSC.

Links

Sparkfun: WiTilt
Bluetooth.com
OSC
Freescale MMA7260Q:
  - Tech. data
  - App. note