Question: how does iphone capture steps?
Answer: The step counter in the health application uses the gyroscope, accelerometer, gps and other sensors to detect if you are walking. When you walk, the sensor suite collects datapoints based on how the device is moving by its position in space, and the velocity it senses as your body moves.