The camera is the most basic feature of any smartphone. It is what allows us to take pictures and record videos. In addition to being able to capture images, smartphones have many different features that allow them to do much more than just take pictures. These features include GPS, accelerometer, compass, gyroscope, proximity sensor, barometer, and magnetometer.
Accelerometers measure acceleration forces acting upon a device. A smartphone’s accelerometer measures changes in speed and direction of movement. When a user holds their phone still, the accelerometer detects these movements and uses them to determine how the phone is tilted.
Compasses use magnetic fields to detect north and south. By using the accelerometer and compass, a smartphone can calculate its location relative to true north.
Barometers measure atmospheric pressure. Most smartphones have built-in barometers that provide information about weather conditions.
Gyroscopes measure rotation rates. Many smartphones have gyroscopes that help users navigate through apps and games.
Proximity sensors detect whether a user is near or away from a device. Smartphones often use proximity sensors to control devices like locks and lights.
Magnetometers measure magnetic fields. Smartphones use magnetometers to detect metal objects nearby.