A gyroscope is a device for measuring or maintaining orientation, based on the principle of conservation of angular  momentum.

An accelerometer is a device for measuring acceleration, detecting and measuring vibrations, or for measuring acceleration due to gravity (inclination). An accelerometer inherently measures its own motion (locomotion), in contrast to a device based on remote sensing.