Accelerometer Basics

Contributors: Toni_K
Favorited Favorite 13

What is an Accelerometer?

Accelerometers are devices that measure acceleration, which is the rate of change of the velocity of an object. They measure in meters per second squared (m/s2) or in G-forces (g). A single G-force for us here on planet Earth is equivalent to 9.8 m/s2, but this does vary slightly with elevation (and will be a different value on different planets due to variations in gravitational pull). Accelerometers are useful for sensing vibrations in systems or for orientation applications.

Accelerometer breakout board

ADXL345 Breakout Board

Suggested Reading

If you are unfamiliar with any of the topics below, you may want to read up on those before moving ahead with accelerometers.

How an Accelerometer Works

Accelerometers are electromechanical devices that sense either static or dynamic forces of acceleration. Static forces include gravity, while dynamic forces can include vibrations and movement.

Accelerometer axes of measurement

Axes of measurement for a triple axis accelerometer

Accelerometers can measure acceleration on one, two, or three axes. 3-axis units are becoming more common as the cost of development for them decreases.

Generally, accelerometers contain capacitive plates internally. Some of these are fixed, while others are attached to miniscule springs that move internally as acceleration forces act upon the sensor. As these plates move in relation to each other, the capacitance between them changes. From these changes in capacitance, the acceleration can be determined.

Other accelerometers can be centered around piezoelectric materials. These tiny crystal structures output electrical charge when placed under mechanical stress ( e.g. acceleration).

alt text

An example of the inside of a piezoelectric accelerometer

How to Connect to an Accelerometer

For most accelerometers, the basic connections required for operation are power and the communication lines. As always, read the datasheet to ensure proper connections are made.

Communication Interface

Accelerometers will communicate over an analog, digital, or pulse-width modulated connection interface.

  • Accelerometers with an analog interface show accelerations through varying voltage levels. These values generally fluctuate between ground and the supply voltage level. An ADC on a microcontroller can then be used to read this value. These are generally less expensive than digital accelerometers.

  • Accelerometers with a digital interface can either communicate over SPI or I2C communication protocols. These tend to have more functionality and be less susceptible to noise than analog accelerometers.

  • Accelerometers that output data over pulse-width modulation (PWM) output square waves with a known period, but a duty cycle that varies with changes in acceleration.


Accelerometers are generally low-power devices. The required current typically falls in the micro (µ) or milli-amp range, with a supply voltage of 5V or less. The current consumption can vary depending on the settings (e.g., power saving mode versus standard operating mode). These different modes can make accelerometers well suited for battery powered applications.

Make sure that proper logic levels are matched, especially with the digital interfaces.

How to Select an Accelerometer

When choosing which accelerometer to use, several features are important to consider including power requirements and communication interfaces as discussed previously. Additional features for consideration are below.


Most accelerometers will have a selectable range of forces they can measure. These ranges can vary from ±1g up to ±250g. Typically, the smaller the range, the more sensitive the readings will be from the accelerometer. For example, to measure small vibrations on a tabletop, using a small-range accelerometer will provide more detailed data than using a 250g range (which is more suited for rockets).


The ADXL362 Triple Axis Accelerometer can measure ±2g, ±4g, and ±8g.

Additional Features

Some accelerometers include features such as tap detection (useful for low-power applications), free-fall detection (used for Active Hard Drive Protection), temperature compensation (to increase accuracy in dead reckoning situations ) and 0-g range sensing, which are other features to take into consideration when purchasing an accelerometer. The need for these types of features on the accelerometer will be determined by the application in which the accelerometer is incorporated.

There are also IMUs (Inertial Measurement Units) available, which can include accelerometers, gyroscopes and even, occasionally, magnetometers into a single IC package or board. Some examples of this include the MPU6050 and MPU9150. These are commonly used in motion tracking applications and UAV guidance systems, where location and orientation of an object is important.

Purchasing an Accelerometer

Now that you’ve learned the abc’s of the x’s, y’s, and z’s, take a look at our recommended accelerometers.

Our recommendations:

SparkFun Triple Axis Accelerometer Breakout - ADXL335

SparkFun Triple Axis Accelerometer Breakout - ADXL337

SparkFun Triple Axis Accelerometer Breakout - ADXL362

SparkFun Triple Axis Accelerometer Breakout - ADXL377


For a more in-depth look at choosing an accelerometer, take a look at our buying guide to find the right fit for your project.

Resources and Going Further

You should now have all the basic tools and skills required to implement an accelerometer in your own project.

Please check out the following links, to learn more about accelerometers: