======Accelerometer======
===== Summary =====
==== Introduction ====
One of the most common inertial sensors is the **accelerometer**, a dynamic sensor capable of a vast range of sensing. Accelerometers are available that can measure acceleration in one, two, or three orthogonal axes. They are typically used in one of three modes:
* As an inertial measurement of velocity and position;
* As a sensor of inclination, tilt, or orientation in 2 or 3 dimensions, as referenced from the acceleration of gravity (1 g = 9.8m/s2);
* As a vibration or impact (shock) sensor.
There are considerable advantages to using an analog accelerometer as opposed to an [[inclinometer]] such as a liquid tilt sensor – inclinometers tend to output binary information (indicating a state of on or off), thus it is only possible to detect when the tilt has exceeded some thresholding angle.
==== Principles of Operation ====
Most accelerometers are Micro-Electro-Mechanical Sensors (MEMS). The basic principle of operation behind the MEMS accelerometer is the displacement of a small proof mass etched into the silicon surface of the integrated circuit and suspended by small beams. Consistent with Newton's second law of motion (**F = ma**), as an acceleration is applied to the device, a force develops which displaces the mass. The support beams act as a spring, and the fluid (usually air) trapped inside the IC acts as a damper, resulting in a second order lumped physical system. This is the source of the limited operational bandwidth and non-uniform frequency response of accelerometers. For more information, see [[accelerometer#external_links_references|reference]] to Elwenspoek, 1993.
==== Types of Accelerometer ====
There are several different principles upon which an analog accelerometer can be built. Two very common types utilize [[Capacitive|capacitive sensing]] and the [[Piezoelectric ceramic & film|piezoelectric effect]] to sense the displacement of the proof mass proportional to the applied acceleration.
=== Capacitive ===
Accelerometers that implement capacitive sensing output a voltage dependent on the distance between two planar surfaces. One or both of these "plates" are charged with an electrical current. Changing the gap between the plates changes the electrical capacity of the system, which can be measured as a voltage output. This method of sensing is known for its high accuracy and stability. Capacitive accelerometers are also less prone to noise and variation with temperature, typically dissipate less power, and can have larger bandwidths due to internal feedback circuitry. (Elwenspoek 1993)
=== Piezoelectric ===
Piezoelectric sensing of acceleration is natural, as acceleration is directly proportional to force. When certain types of crystal are compressed, charges of opposite polarity accumulate on opposite sides of the crystal. This is known as the piezoelectric effect. In a piezoelectric accelerometer, charge accumulates on the crystal and is translated and amplified into either an output current or voltage.
Piezoelectric accelerometers only respond to AC phenomenon such as vibration or shock. They have a wide dynamic range, but can be expensive depending on their quality (Doscher 2005)
Piezo-film based accelerometers are best used to measure AC phenomenon such as vibration or shock, rather than DC phenomenon such as the acceleration of gravity. They are inexpensive, and respond to other phenomenon such as temperature, sound, and pressure (Doscher 2005)
=== Overview of other types that are less used in audio applications ===
**Piezoresistive**
Piezoresistive accelerometers (also known as Strain gauge accelerometers) work by measuring the electrical resistance of a material when mechanical stress is applied. They are preferred in high shock applications and they can measure acceleration down to 0Hz. However, they have a limited high frequency response.
**Hall effect**
Hall effect accelerometers work by measuring the voltage variations caused by the change in magnetic field around them.
**Heat transfer**
Heat transfer accelerometers consist in a single heat source centered in a substrate and suspended accross cavity. They include equally spaced thermoresistors on the four side of the heat source. They measure the internal changes in heat due to an acceleration. When there is zero acceleration, the heat gradient will be symmetrical. Otherwise, under acceleration, the heat gradient will become asymmetrical due to convection heat transfer
=== Other ===
There are many other types of accelerometer, including:
* Null-balance
* Servo force balance
* Strain gauge
* Resonance
* Optical
* Surface acoustic wave (SAW)
==== Specifications ====
A typical accelerometer has the following basic specifications:
* Analog/digital
* Number of axes
* Output range (maximum swing)
* Sensitivity (voltage output per g)
* Dynamic range
* Bandwidth
* Amplitude stability
* Mass
//Analog vs. digital//: The most important specification of an accelerometer for a given application is its type of output. Analog accelerometers output a constant variable voltage depending on the amount of acceleration applied. Older digital accelerometers output a variable frequency square wave, a method known as [[pulse-width modulation]]. A pulse width modulated accelerometer takes readings at a fixed rate, typically 1000 Hz (though this may be user-configurable based on the IC selected). The value of the acceleration is proportional to the pulse width (or duty cycle) of the PWM signal. Newer digital accelerometers are more likely to output their value using multi-wire digital protocols such as I2C or SPI.
For use with [[ADC]]s commonly used for music interaction systems, analog accelerometers are usually preferred.
//Number of axes//: Accelerometers are available that measure in one, two, or three dimensions. The most familiar type of accelerometer measures across two axes. However, three-axis accelerometers are increasingly common and inexpensive.
//Output range//: To measure the acceleration of gravity for use as a tilt sensor, an output range of ±1.5 g is sufficient. For use as an impact sensor, one of the most common musical applications, ±5 g or more is desired.
//Sensitivity//: An indicator of the amount of change in output signal for a given change in acceleration. A sensitive accelerometer will be more [[precision|precise]] and probably more [[accuracy|accurate]].
//Dynamic range//: The range between the smallest acceleration detectable by the accelerometer to the largest before distorting or clipping the output signal.
//Bandwidth//: The [[bandwidth]] of a sensor is usually measured in Hertz and indicates the limit of the near-unity frequency response of the sensor, or how often a reliable reading can be taken. Humans cannot create body motion much beyond the range of 10-12 Hz. For this reason, a bandwidth of 40-60 Hz is adequate for tilt or human motion sensing. For vibration measurement or accurate reading of impact forces, bandwidth should be in the range of hundreds of Hertz. It should also be noted that for some older microcontrollers, the bandwidth of an accelerometer may extend beyond the Nyquist frequency of the A/D converters on the MCU, so for higher bandwidth sensing, the digital signal may be aliased. This can be remedied with simple passive low-pass filtering prior to sampling, or by simply choosing a better microcontroller. It is worth noting that the bandwidth may change by the way the accelerometer is mounted. A stiffer mounting (ex: using studs) will help to keep a higher usable frequency range and the opposite (ex: using a magnet) will reduce it.
//Amplitude stability//: This is not a specification in itself, but a description of several. Amplitude stability describes a sensor's change in sensitivity depending on its application, for instance over varying temperature or time (see below).
//Mass//: The mass of the accelerometer should be significantly smaller than the mass of the system to be monitored so that it does not change the characteristic of the object being tested.
Other specifications include:
* Zero g offset (voltage output at 0 g)
* Noise (sensor minimum resolution)
* Temperature range
* Bias drift with temperature (effect of temperature on voltage output at 0 g)
* Sensitivity drift with temperature (effect of temperature on voltage output per g)
* Power consumption
==== Output ====
An accelerometer output value is a scalar corresponding to the magnitude of the acceleration vector. The most common acceleration, and one that we are constantly exposed to, is the acceleration that is a result of the earth's gravitational pull. This is a common reference value from which all other accelerations are measured (known as g, which is ~9.8m/s^2).
//Digital output//
Accelerometers with PWM output can be used in two different ways. For most accurate results, the PWM signal can be input directly to a microcontroller where the duty cycle is read in firmware and translated into a scaled acceleration value. (Check with the datasheet to obtain the scaling factor and required output impedance.) When a microcontroller with PWM input is not available, or when other means of digitizing the signal are being used, a simple RC reconstruction filter can be used to obtain an analog voltage proportional to the acceleration. At rest (50% duty-cycle) the output voltage will represent no acceleration, higher voltage values (resulting from a higher duty cycle) will represent positive acceleration, and lower values (<50% duty cycle) indicate negative acceleration. These voltages can then be scaled and used as one might the output voltage of an analog output accelerometer. One disadvantage of a digital output is that it takes a little more timing resources of the microcontroller to measure the duty cycle of the PWM signal. Communication protocols could use I2C or SPI.
//Analog output//
When compared to most other industrial sensors, analog accelerometers require little conditioning and the communication is simple by only using an Analog to Digital Converter (ADC) on the microcontroller. Typically, an accelerometer output signal will need an offset, amplification, and filtration. For analog voltage output accelerometers, the signal can be a positive or negative voltage, depending on the direction of the acceleration. Also, the signal is continuous and proportional to the acceleration force. As with any sensor destined for an analog to digital converter, the value must be scaled and/or amplified to maximally span the range of acquisition. Most analog to digital converters used in musical applications acquire signals in the 0-5 V range.
The image at right depicts an amplification and offset circuit, including the on-board operational amplifier in the adxl 105, minimizing the need for additional IC components. The gain applied to the output is set by the ratio R2/R1. The offset is controlled by biasing the voltage with variable resistor R4. Accelerometers output bias will drift according to ambient temperature. The sensors are calibrated for operation at a specific temperature, typically room temperature. However, in most short duration indoor applications the offset is relatively constant and stable, and thus does not need adjustment. If the sensor is intended to be used in multiple environments with differing ambient temperatures, the bias function should be sufficient for analog calibration of the device. If the ambient temperature is subject to drastic changes over the course of a single usage, the temperature output should be summed into the bias circuit. Smart sensors may even take this into consideration.
The resolution of the data acquired is ultimately determined by the analog to digital converter. It is possible, however, that the noise floor is above the minimum resolution of the converter, reducing the resolution of your system. Assuming that the noise is equally distributed across all frequencies, it is possible to filter the signal to only include frequencies within the range of operation. The filter required depends upon both the type of acquisition as well as the location of the sensor. The bandwidth is primarily influenced by the three different modes of operation of the sensor.
==== Uses ====
The acceleration measurement has a variety of uses. The sensor can be implemented in a system that detects velocity, position, shock, vibration, or the acceleration of gravity to determine orientation (Doscher 2005)
A system consisting of two orthogonal sensors is capable of sensing pitch and roll. This is useful in capturing head movements. A third orthogonal sensor can be added to the network to obtain orientation in three dimensional space. This is appropriate for the detection of pen angles, etc. The sensing capabilities of this network can be furthered to six degrees of spatial measurement freedom by the addition of three orthogonal gyroscopes.
As a shock detector, an accelerometer is looking for changes in acceleration. This jerk is sensed as an overdamped vibration.
Verplaetse has outlined the bandwidths associated with various implementations of accelerometers as an input device. These are:
^ Location ^ Usage ^ Frequency ^ Acceleration ^
| Head | Tilt | 0-8 Hz | xx |
| Hand , Wrist, Finger | Cont. | 8-12 Hz | 0.04-1.0 g |
| Hand, Arm, Upper Body | Cont. | 0-12 Hz | 0.5-9.0 g |
| Foot, Leg | Cont. | 0-12 Hz | 0.2-6.6 g |
Depending on the sensitivity and dynamic range required, the cost of an accelerometer can grow to thousands of dollars. Nonetheless, highly accurate inexpensive sensors are available.
===== Devices =====
{{template>device
|company=Analog Devices
|model=ADXL212
|sources=[[http://ca.digikey.com/\|Digikey]] CAN$ 21.69
|description=Low-cost, +/- 2 g, dual-axis accelerometer with duty cycle output
|datasheet=[[http://www.analog.com/static/imported-files/data_sheets/ADXL202E.pdf\|pdf]]
|resources=
|notes=This accelerometer is available in a several IC formats.
|variants=
}}
{{template>device
|company=Analog Devices
|model=ADXL213
|sources=[[http://ca.digikey.com\|Digikey]] CAN$ 20.64
|description=High-precision, +/- 1.1 g, dual-axis accelerometer with signal conditioned voltage outputs.
|datasheet=[[http://www.analog.com/UploadedFiles/Data_Sheets/279349530ADXL103_203_0.pdf\|pdf]]
|resources=
|notes=
|variants=
}}
{{template>device
|company=Analog Devices
|model=ADXL335
|sources=[[http://ca.digikey.com\|Digikey]] CAN$ 6.74
|description=Small, Low Power, 3-Axis +/-3.6g Accelerometer, for Motion- and Tilt-Sensing Applications
|datasheet=[[http://www.analog.com/static/imported-files/Data_Sheets/ADXL330.pdf\|pdf]]
|resources=
|notes=
|variants=
}}
{{template>device
|company=Sparkfun
|model=ADXL345 Breakout Board
|sources=[[http://www.sparkfun.com/\|Sparkfun]] US$ 27.95
|description=3-axis accelerometer, +/- 16 g, I2C/SPI digital output.
|datasheet=[[http://www.sparkfun.com/datasheets/Sensors/Accelerometer/ADXL345.pdf\|pdf]]
|resources=
|notes=click and double click recognition, free fall detection
|variants=
}}
{{template>device
|company=STMicroelectronics
|model=LIS302DL
|sources=[[http://ca.digikey.com/\|Digikey]] CAN$ 4.20
|description=3-axis accelerometer, +/- 2.3 or 9 g, I2C/SPI digital output.
|datasheet=[[http://www.st.com/stonline/products/literature/ds/12726.pdf\|pdf]]
|resources=
|notes=LGA-14 surface mount package, click and double click recognition, free fall detection
|variants=
}}
{{template>device
|company=Dimension Engineering
|model=DE-ACCM2G
|sources=[[http://www.robotshop.ca/dimension-engineering-de-accm2g.html\|Robotshop]] CAN$ 24.37
|description=Buffered ±2g 2-axis Accelerometer
|datasheet=[[http://www.robotshop.ca/PDF/DE-ACCM2G-buffered-accelerometer.pdf\|pdf]]
|resources=
|notes=Integrated op amp buffers for direct connection to a microcontroller's analog inputs, based on Analog Devices ADXL332
|variants=
}}
{{template>device
|company=Dimension Engineering
|model=DE-ACCM3D2
|sources=[[http://www.robotshop.ca/dimension-engineering-de-accm3d.html\|Robotshop]] CAN$ 37.53
|description=Buffered ±3g Tri-axis Accelerometer
|datasheet=[[http://www.dimensionengineering.com/datasheets/DE-ACCM3D2.pdf\|pdf]]
|resources=
|notes=Integrated op amp buffers for direct connection to a microcontroller's analog inputs
|variants=
}}
{{template>device
|company=Analog Devices
|model=ADXL001
|sources=[[http://ca.digikey.com/\|Digikey]] CAN$ 35.21
|description=Single-axis, ± 70g or 250g accelerometer with a 22 kHz bandwidth
|datasheet=[[http://www.analog.com/static/imported-files/data_sheets/ADXL001.pdf\|pdf]]
|resources=
|notes=Of interest as a precursor to an accelerometer-based contact microphone (O'Reilly et al.)
|variants=
}}
{{template>device
|company=Freescale Semiconductor
|model= MMA2301
|sources=[[http://ca.digikey.com/\|Digikey]] CAN$ 7.28
|description=Dual-axis, surface mount silicon capacitive ±200g accelerometer
|datasheet=[[http://www.freescale.com/files/sensors/doc/data_sheet/MMA2301KEG.pdf\|pdf]]
|resources=
|notes= Features integrated signal conditioning and 4-pole low pass filter
|variants=
}}
===== Media =====
{{sensors:accelerometer_breadboard.jpg?200|An analog accelerometer on a protoboard with conditioning circuit}}
{{youtube>Z2ZLf4_3ql8}}
===== External Links & References =====
* [[http://vipre.uws.edu.au/tiem/?tag=accelerometer|Instruments using
accelerometers @ TIEM]]
* Andrejašic, Matej, 2008. //[[http://mafija.fmf.uni-lj.si/seminar/files/2007_2008/MEMS_accelerometers-koncna.pdf|MEMS Accelerometers]]//.
* Aszkler, Craig. "Acceleration, Shock and Vibration Sensors," in Sensor Technology Handbook, edited by Jon S. Wilson, 137-159. Burlington: Elsevier, 2005.
* Boser, Bernhard E., and Roger T. Howe. "Surface Micromachined Accelerometers." //IEEE Journal of Solid-State Circuits//, Vol. 31, No. 3, (March 1996):366-375.
* Doscher, James (Analog Devices), 2005. //[[http://www.analog.com/Analog_Root/static/library/techArticles/mems/sensor971.pdf|Accelerometer Design and Applications]]//, Company brochure, Norwood, MA, 61pp.
* Elwenspoek, M. and Wiegerink, R. //Mechanical Microsensors.// New York: Springer, 1993, pp. 132-145
* Fraden, Jacob, 2003. //Handbook of Modern Sensors.// 3rd ed. Berlin: Springer. ISBN 0387007504
* O'Reilly, Rob, Alex Khenkin, and Kieran Harney. "Managing Acoustic Feedback: Micro Electro Mechanical Systems (MEMS) Contact Microphones for Musical Instruments." //Acoustics Today//, (July 2008):28-32.
* Texas Instruments, 2005, //[[http://www2.usfirst.org/2005comp/Manuals/Acceler1.pdf|Accelerometers and how they work.]]//, Company brochure, Dallas, TX.
* Verplaetse, Christopher, 1996. //[[http://domino.research.ibm.com/tchjr/journalindex.nsf/a3807c5b4823c53f85256561006324be/e645f6f53cc340f285256bfa00685d84?OpenDocument|Inertial proprioceptive devices: self-motion-sensing toys and tools - MIT Media Lab.]]// IBM Systems Journal, Sept-Dec, 1996.
* Walter, Patcrick L., "The History of the Accelerometer." //Sound and Vibration// (January 2007): 84-92.
* Walter, Patcrick L., //[[http://www.sensorsmag.com/articles/0399/0399_44/main.shtml|Trends in Accelerometer Design for Military and Aerospace Applications.]]// Sensors Online, 2005
* SENSR, Intelligent Technology. Measured results., //[[http://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CE8QFjAA&url=http%3A%2F%2Fwww.sensr.com%2Fpdf%2Fpractical-guide-to-accelerometers.pdf&ei=adxxUffZIo3x0wHIw4DYBA&usg=AFQjCNEhnD6_BF8NxfVuodQGGIFbJefkVA&sig2=WGB1W3NnILFQSfp78QmfYA&bvm=bv.45512109,d.dmQ|Practical guide to Accelerometers]]//
* Endevco, 2011, //[[https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDUQFjAA&url=https%3A%2F%2Fwww.endevco.com%2Fnews%2Femails%2F2011_12%2Ftp328.pdf&ei=Rd1xUdidHOqP0QH_94C4Aw&usg=AFQjCNEcmed88hT-YWft8psqiuIe4NKzDg&sig2=x6H6ePV00PMVUWUtL_z7iA&bvm=bv.45512109,d.dmQ|Practical understanding of key accelerometer specifications]]//
* Freescale Semiconductor (2007), //[[http://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CEYQFjAA&url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fsensors%2Fdoc%2Fsupport_info%2FSENSORTERMSPG.pdf&ei=zN1xUYCKLsmC0QGetYGoAg&usg=AFQjCNH9FLxwiEU_OGFdrzJq-7jV1XIRZg&sig2=c2M0j8AaFIGeWBvwTdGEwQ&bvm=bv.45512109,d.dmQ|Quick reference guide, Accelerometer Terminology Guide]]//
* [[wp>Accelerometer]]
{{tag>Sensor Acceleration Inclination Tilt Capacitance Piezoelectric}}