While accelerometer measures the acceleration you induce on the phone, the gyroscope gives a rather precise feedback on the orientation of the phone. Smartphones use MEMS (microelectromechanical system) to measure the displacement of a vibrating proof mass. Photo “gyroscope top” by David Lofink is licensed under CC BY 2.0