Accelerometer is used to measure both static acceleration i.e. gravitational and dynamic acceleration i.e. motion or shock. In most of the robotics applications, it is used to measure the tilt of the object. The ADXL345 is a low power, MEMS, three-axis accelerometer module with both SPI and I2C interfaces to communicate with your controller like Arduino, Raspberry Pi, PIC, etc. https://quartzcomponents.com/products/adxl345-3-axis-digital-accelerometer-sensor