using OSC to receive android accelerometer data in Processing

This method will only work if Android and Macbook share the same wifi network.

Step 1:

Download OSCHook on Android

Step 2:

In OscHook, set internal IP to the same IP as your laptop.

Step 3:

Download oscp5 library from Processing. Make sure the port number in oscp5 is changed to the port number in your OscHook app in Android.

Step 4:

Run the following processing code that will print out the accelerometer x, y, z number inside your processing console.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s