           
           // gesture event
           
+          //* Bluetooth mode
+          
           // since Arduino doesn't implement %f for printf/sprintf,
           // we turn the acceleration values into integers
-          sprintf(print_str, "%ld %d %d %d %d",
+          sprintf(print_str, "/exo/hand/raw %ld %d %d %d %d",
             micros(),
             (int) (amax * 100),
             (int) (ax_max * 100),


void setup()  
{
  // use the baud rate your bluetooth module is configured to 
  // not all baud rates work well, i.e. ATMEGA168 works best with 57600
  // JJS note: the Amarino receiver appears to be flexible w.r.t. baud rate; 115200 is my choice, and it works well
  Serial.begin(115200);
  
  state = STATE_ONE;


const double lowerBound = 1.25;
const double upperBound = 1.75;

const int STATE_ONE = 1;
const int STATE_TWO = 2;
const int STATE_THREE = 3;
