Use accelerometer to send data to Arduino

It appears we are blocking on the main thread with [NSThread sleepForTimeInterval:], so we should probably fix that later.