OSC from Android to Arduino over Bluetooth
Channel: Grateful Frog
Date: 07/03/2017

This is a little demo showing how I can send data from an Andrdoid App, over bluetooth, to an Arduino using the OSC protocol.

You see an arduino with a bluetooth module plugged into the pins 0 and 1 (rx/tx) and some leds connected to pin 12. These simply flash every 500ms to indicate that the loop is executing.

When I tap on the screen of the android phone, I send an OSC message containing either a 1 or a 0 to the arduino. That value is used to set the internal LED on pin 13.

There was a bit of effort spent figuring out how to use OSC over Serial (SLIP) but that wasn't so hard thanks to all the work done by many others before me!

I used Processing.org Android mode, and the Ketai.org library for the Android part.

And an Arduino Uno, a JY-MCU Bluetooth module, and the OSCuino library from https://github.com/CNMAT/OSC.

My code can be found at:
Arduino:  https://goo.gl/d6R0J3

Android: https://goo.gl/aHfwG3