Implement two types of accelerometer