How an Accelerometer in a Smartphone Works to Track Your Movement

How an Accelerometer in a Smartphone Works to Track Your Movement Featured Image

Out of all the components of a smartphone, the accelerometer probably holds the title for the most technologically fascinating, yet also underappreciated, gadget on the device. When you want a picture to be landscape or portrait on your phone, all you have to do is turn the phone in the direction you want, and the screen follows you. Have you ever wondered how the phone recognized that you had tilted the phone in that direction?

Also read: What You Need to Know About 360 Degree Photography

In order to respond to the phone being rotated, it has to detect which way you’re moving it. An accelerometer is a great way to achieve this, and they come in all shapes and sizes. Despite this, accelerometers typically contain the same three variables:
  • The casing of the accelerometer which moves along with the device it’s installed within. This acts as the base of the sensor that moves at the same rate as the device.
  • The moving part of the accelerometer which moves as the casing shifts around it. This movement depends on how much the device is tilted.
  • The sensors on the accelerometer which look at the moving part and monitor how much the device has moved depending on the result.

accelerometers-landscape

While there are many ways to perform this, the ones you’ll find in smartphones (and other devices) typically come in two forms: capacitance and piezoelectric accelerometers.

What Are Capacitance Accelerometers?

KZVgKu6v808 maxresdefault

These are both very complicated-sounding words, but don’t worry – they’re quite simple in practice! First, let’s explore capacitance accelerometers.

Do you know those physical ball maze toys you sometimes find in Christmas crackers? Imagine one of those, but it’s just a blank square without obstacles. Imagine you have also hooked up the sides of the square to detect when the metal ball hits the sides. As you tilt the square, the ball rolls over to and hits one of the sides, triggering the sensor.

Of course, mobile phones don’t have small ball-maze puzzles inside of them! What they do have, however, is something similar. Instead of a ball, the phone uses a grid that’s suspended on supports. These supports have a bit of leniency, allowing the grid to shift around slightly as the phone moves.

In between the sections of the grid are little “fingers” that sense where the grid is. As the phone tilts, the grid moves on its supports toward the movement, and the fingers detect this movement. The fingers report back on which way the phone tilted.

What Are Piezoelectric Accelerometers?

accelerometers-piezoelectric

On the other hand, piezoelectric accelerometers get their name from the piezoelectric effect, which the accelerometer uses to gauge orientation.

Imagine if I had you stand with your back to the wall, holding a mattress at arm’s length with your eyes closed. I then ask you to report to me if you notice the mattress moving. You can’t see the mattress, but you can feel how it’s moving.

Now, if I push or pull on the mattress, it causes stress in your arms. Either you feel the mattress being tugged away or pushed toward you. From this feeling alone, you can tell whether I’m tugging or pushing the mattress.

Piezoelectric accelerometers work similarly. They use a mechanism that pushes and pulls against a crystal, which in turn emits electricity depending on the stress being applied. This stress is then translated into movement measurements.

Tilting and Turning

Accelerometers are an amazing and intriguing part of a smartphone, yet they go woefully underappreciated. Now you know how they work and how they detect which way your phone is going.

How important is the accelerometer in your own phone? Let us know below.

Image Credit: Wikipedia

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Simon Batt Avatar

Read next

When Sony shipped the first Walkman in 1979, chairman Akio Morita insisted on a second headphone jack and a “hotline” talk button, convinced it would be rude for one person to listen to music alone — and within a few years buyers had ignored the sociable features so completely that Sony quietly dropped them
Russia still custom-builds the Soyuz return seats for ISS crew members using plaster casts taken weeks before launch, because astronauts grow as much as five centimetres taller during a long-duration stay and a seat moulded to their Earth-shaped spine would no longer fit the body that comes home
The “CrackBerry” nickname stuck for a reason — and the variable-reward psychology that hooked early-2000s executives on their BlackBerrys is the exact same machinery now running every push notification on every smartphone in your pocket
In 1843, Ada Lovelace described a brass-and-punched-card engine that could act on symbols as well as numbers, even composing music if harmony could be reduced to rules, inside seven translator’s notes three times longer than the paper itself
ARPANET sent its first message on 29 October 1969 from a lab at UCLA to a machine at Stanford, and the message was supposed to read ‘LOGIN’ — but the system crashed after the L and the O, meaning the first word ever transmitted over the network that became the internet was, by accident, ‘LO’.
In 1995, Microsoft shipped a cartoon-house interface called Bob, led by Melinda French, who married Bill Gates while it was in development — it demanded twice the memory of a typical home PC, sold roughly 30,000 copies, and was dead within a year, leaving behind the font Comic Sans and the animated assistant that became Clippy.
The Greenland shark grows about one centimetre a year, does not reach sexual maturity until around age 150, and a specimen carbon-dated by Danish researchers in 2016 was estimated to be at least 272 years old, meaning it was already swimming the North Atlantic when Mozart was composing symphonies.
When Apple shipped iOS 12 in June 2018, a small feature called Screen Time slipped onto every iPhone with a counter nobody had quite prepared for — a tally of pickups — and within a day Tim Cook was telling CNN the number of times he picked up his own phone was simply too many