Use Adxl330 and simplified a lot