Create accelerometer Main