In order to respond to the rotation of the phone, it must detect in which direction you are moving it. An accelerometer is a great way to do this, and they come in all shapes and sizes. Despite this, accelerometers generally contain the same three variables:
These are two very complicated words, but don't worry – they are quite simple in practice! First, let's explore capacitance accelerometers.
Do you know those physical ball maze toys you sometimes find in Christmas cookies? Imagine one of these, but it's just an empty square with no obstacles. Imagine that you have also connected the sides of the square to detect when the metal ball hits the sides. When you tilt the square, the ball rolls and hits one of the sides, triggering the sensor.
Of course, cell phones do not contain small marble maze puzzles! What they have, however, is something similar. Instead of a ball, the phone uses a grid suspended on brackets. These mounts have a bit of leniency, allowing the grille to move slightly as the phone moves.
Between the sections of the grid are small "fingers" that detect where the grid is. When the phone tilts, the grid moves on its supports towards the movement, and the fingers detect this movement. Fingers indicate which way the phone has tipped.
On the other hand, piezoelectric accelerometers get their name from the piezoelectric effect, which the accelerometer uses to measure orientation.
Imagine if I had you standing with your back against the wall, holding a mattress at arm's length, eyes closed. I would then ask you to let me know if you notice the mattress moving. You can't see the mattress, but you can feel how it moves.
Now, if I push or pull on the mattress, it puts stress on your arms. Either you feel the mattress being pulled or pushed towards you. From that feeling alone, you can tell if I'm pulling or pushing the mattress.
Piezoelectric accelerometers work the same way. They use a mechanism that pushes and pulls against a crystal, which in turn emits electricity depending on the stress applied. This constraint is then translated into motion measurements.
Accelerometers are an amazing and intriguing part of a smartphone, but they're sadly underrated. Now you know how they work and how they detect the direction of your phone.
How important is the accelerometer in your own phone? Let us know below.
Image credit:Wikipedia