Upload accelerometer code