- WiTilt to OSC
Instructions (w/ Screenshots)
Before using WiTilt v.2, make sure you have set up the device properly. Instructions can be found here. A screenshot of my settings is below:
Important! To get the most correct measurements possible, it is highly recommended that you
Note: For command-line setup of WiTilt over serial connection, I use minicom: a pre-compiled binary for OS 10.4 can be found here. Alternatively, you can use screen command, which comes with OS X by default. In either case, here's the setup values I used for connection:
Baud rate: 57600
Data bits: 8
Stop bits: 1
From the menu, choose W2O-Preferences. This will open a panel in which you need to enter the six calibration values you obtained in step 0.
When finished, close the panel.
In W2O, click Open to find WiTilt sensor. This will lead to the next step.
Choose BlueRadios in the Select Bluetooth Device panel. If successfully found, it will go over to step 3.
Now back to W2O, we can see Bluetooth device name and its MAC address.
OSC target settings (IP and Port) can be modified only before starting UDP transmission by clicking Start.
Status and OSC addresses of data fields (Raw Data, Angle (Deg.), and Accel. (Mag.), on the other hand, can be changed anytime during transmission.
Contents of data fields are summarized below:
Raw Data: measurement data from a 10-bit ADC (0-1023).For details on Freescale MMA7260Q, please check this document. More information on how to use it can be found here.
Angle (Deg.): tilt angle in degrees (-90 ~ 90).
Accel (Mag.): (magnitude of acceleration) / g in percent (0~100).
Note: make sure the LED goes OFF before beginning transmission by pressing the reset button (usually twice, sometimes once).
To end OSC transmission, click Stop: you can then restart it, or Close the Bluetooth connection.
Source (Xcode project).
Max/MSP patch to show how to take WiTilt data via OSC.
Pd patch to show how to take WiTilt data via OSC.