Accelerometers, gyroscopes and IMUs
Seismic spring-mass principle, what accelerometers really measure (specific force), piezoelectric, capacitive MEMS and servo accelerometers, mechanical, Coriolis MEMS and optical gyroscopes, IMUs, integration drift and sensor fusion, with MEMS and tilt/drift/Coriolis numericals.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Every drone, phone, balancing robot, vehicle stability system and machine-condition monitor relies on accelerometers and gyroscopes to know how it is moving and which way is up. These sensors are cheap and tiny, but their raw outputs contain gravity, bias and noise, so a mechatronics engineer must know what they really measure and how errors grow when their signals are integrated.
Key ideas
- Seismic (spring–mass–damper) principle. Almost every accelerometer is a proof mass m on a spring of stiffness k with damping c inside a case. When the case accelerates, the mass lags and the spring deflects. Below the natural frequency the deflection is proportional to acceleration:
x = m·a / k = a / ω_n². So a stiff, light design (high ω_n) gives wide bandwidth but small deflection, i.e. low sensitivity. This bandwidth–sensitivity trade-off is the central design choice.- Used well below ω_n (with ζ ≈ 0.6–0.7 for a flat response) the instrument is an accelerometer. Used well above ω_n (soft spring, heavy mass) the mass stays nearly still in space and the instrument measures displacement (a seismometer/vibrometer). This links directly to the second-order dynamic response from the measurement-characteristics topic.
- What an accelerometer actually reads: specific force. It senses the force the case must apply to the proof mass, so it reads
f = a − g(vectors). A sensor lying still on a table reads +1 g (9.81 m/s²) upwards on its vertical axis; in free fall it reads zero. This is why a static accelerometer can measure tilt from the gravity components, and why it cannot by itself separate gravity from real motion. - Types of accelerometer.
- Piezoelectric – the proof mass squeezes a piezoelectric crystal, giving charge
q = S_q·a. Very wide bandwidth (Hz to tens of kHz), rugged, ideal for vibration and shock. Charge leaks away, so it cannot measure steady (DC) acceleration or tilt; it needs a charge amplifier. - Capacitive MEMS – a silicon proof mass with comb fingers moves between fixed electrodes, changing a differential capacitance. Responds down to DC, so it measures tilt as well as motion; small, cheap, low power. Used in phones, wearables, airbag sensors.
- Piezoresistive / strain-gauge – gauges on the suspension beam; responds to DC, good for crash and shock testing.
- Servo (force-balance) – feedback drives a coil to hold the mass at null; the coil current measures acceleration. Most accurate (navigation, seismic), most expensive.
- Piezoelectric – the proof mass squeezes a piezoelectric crystal, giving charge
- Gyroscopes measure angular velocity (rate).
- Mechanical – a spinning rotor keeps its angular momentum H; an applied rate Ω about a perpendicular axis needs a gyroscopic torque
T = H·Ω, which a rate gyro measures with a restraining spring. - MEMS vibratory (Coriolis) – a proof mass is driven to vibrate at a few kHz to tens of kHz with velocity v. Rotation at rate Ω about a perpendicular axis produces a Coriolis force
F = 2·m·Ω·von the third axis; the resulting sense-axis motion is picked up capacitively and demodulated. Cheap and small but with larger bias and drift. - Optical (ring-laser and fibre-optic) – use the Sagnac effect: light travelling with and against the rotation has a path difference proportional to Ω. No moving parts, very low drift, used in aircraft and missiles.
- Mechanical – a spinning rotor keeps its angular momentum H; an applied rate Ω about a perpendicular axis needs a gyroscopic torque
- Integration and drift. Angle comes from integrating rate,
θ = ∫ω dt, so a constant gyro bias b gives an angle error that grows linearly with time. Position comes from integrating acceleration twice, so a constant accelerometer bias gives a position error that grows with t². Random noise integrates into a random walk. This is why low-cost IMUs cannot do dead reckoning for more than seconds without correction. - IMU and sensor fusion. An IMU combines a 3-axis accelerometer and a 3-axis gyroscope (6-DOF); adding a 3-axis magnetometer gives 9-DOF. The gyro is accurate over short times but drifts; the accelerometer gives a drift-free tilt reference but is noisy and corrupted by motion; the magnetometer gives heading but suffers from nearby iron. A complementary filter (high-pass on the gyro angle, low-pass on the accelerometer angle) or a Kalman filter fuses them. An AHRS outputs attitude; an INS also integrates to velocity and position, usually aided by GPS or wheel odometry.
- Key specifications. Range (±g or °/s), sensitivity (mV/g, LSB/g), bandwidth, noise density (µg/√Hz, (°/s)/√Hz), bias and bias stability, scale-factor error, cross-axis sensitivity and temperature drift. Datasheet values vary widely by grade; take them from the manufacturer's sheet.
Formulas
ω_n = √(k / m), f_n = ω_n / (2π)
- k suspension stiffness (N/m), m proof mass (kg), ω_n natural frequency (rad/s), f_n (Hz). Usable flat range of an accelerometer is roughly up to f_n/5 to f_n/3 for ζ ≈ 0.7.
x = m·a / k = a / ω_n²
- x proof-mass deflection (m), a acceleration (m/s²). Valid for input frequencies well below ω_n.
(C₁ − C₂) / (C₁ + C₂) = x / d, with C₁ = ε·A / (d − x), C₂ = ε·A / (d + x)
- differential capacitive pick-off: d nominal gap (m), A electrode area (m²), ε permittivity (F/m). The ratio is exactly linear in x.
q = S_q · a, V = q / C
- piezoelectric: q charge (C), S_q charge sensitivity (C per m/s², often quoted in pC/g), C total capacitance (F). Dynamic only.
θ = arcsin(a_x / g) (single axis), θ = atan2(a_x, a_z) (two axes)
- tilt θ from the horizontal reference, using static readings a_x, a_z (m/s²); g = 9.81 m/s². Valid only when the sensor is not accelerating.
F_c = 2 · m · Ω · v
- Coriolis force (N) on mass m (kg) moving at velocity v (m/s) perpendicular to rotation rate Ω (rad/s).
v_peak = 2π · f_d · X_d
- peak drive velocity (m/s) of a mass vibrating with amplitude X_d (m) at drive frequency f_d (Hz).
θ_err = b_g · t, x_err = ½ · b_a · t²
- b_g gyro bias (°/s or rad/s), b_a accelerometer bias (m/s²), t time (s).
θ_k = α·(θ_{k−1} + ω·Δt) + (1 − α)·θ_acc, α = τ / (τ + Δt)
- complementary filter: Δt sample period (s), τ crossover time constant (s), θ_acc tilt from the accelerometer.
Worked examples
Example 1 (standard) – MEMS accelerometer element. Proof mass m = 2 × 10⁻⁹ kg, suspension stiffness k = 2 N/m, differential capacitor gap d = 2 µm. Find the natural frequency, the deflection under 1 g, the differential capacitance ratio, and a reasonable usable bandwidth.
ω_n = √(k/m) = √(2 / 2 × 10⁻⁹) = √(10⁹) = 31 623 rad/s.f_n = 31 623 / 2π = 5033 Hz.x = m·a/k = 2 × 10⁻⁹ × 9.81 / 2 = 9.81 × 10⁻⁹ m(about 9.8 nm).(C₁ − C₂)/(C₁ + C₂) = x/d = 9.81 × 10⁻⁹ / 2 × 10⁻⁶ = 0.0049, i.e. 0.49 % per g.- Usable flat range ≈ f_n/5 ≈ 1000 Hz.
Answer: f_n ≈ 5.03 kHz, x ≈ 9.8 nm per g, ratio ≈ 0.49 % per g, bandwidth ≈ 1 kHz. The nanometre deflection explains why MEMS read-out electronics must resolve attofarad changes.
Example 2 (GATE level) – tilt, drift and Coriolis force. A stationary IMU reads a_x = 3.0 m/s², a_y = 0, a_z = 9.33 m/s². Its gyro has a constant bias of 0.01 °/s and its accelerometer a bias of 0.01 m/s². The MEMS gyro's 1 × 10⁻⁹ kg proof mass is driven at 20 kHz with 10 µm amplitude. (a) Find the tilt angle. (b) Find the heading error after 10 min of pure gyro integration. (c) Find the position error after 60 s of double-integrating the accelerometer. (d) Find the peak Coriolis force for a rotation rate of 100 °/s.
- Check magnitude:
√(3.0² + 9.33²) = 9.80 m/s²≈ g, so the IMU is static and tilt is valid. θ = atan2(a_x, a_z) = atan2(3.0, 9.33) = 17.8°.θ_err = b_g·t = 0.01 °/s × 600 s = 6.0°.x_err = ½·b_a·t² = 0.5 × 0.01 m/s² × (60 s)² = 18 m.v_peak = 2π·f_d·X_d = 2π × 20 000 × 10 × 10⁻⁶ = 1.257 m/s.Ω = 100 × π/180 = 1.745 rad/s;F_c = 2·m·Ω·v = 2 × 10⁻⁹ × 1.745 × 1.257 = 4.39 × 10⁻⁹ N.
Answer: (a) 17.8°, (b) 6.0°, (c) 18 m, (d) ≈ 4.4 nN. Even a tiny 1 mg-class bias gives 18 m of error in one minute, which is why INS outputs must be corrected by GPS or other aiding.
Common mistakes
- Forgetting that an accelerometer at rest reads 1 g, not zero, and that in free fall it reads zero.
- Using a piezoelectric accelerometer to measure tilt or slowly varying acceleration – it has no DC response.
- Saying a gyroscope measures angle. A rate gyro measures angular velocity; angle comes from integration and drifts.
- Mixing °/s and rad/s, or g and m/s², in drift and Coriolis calculations.
- Computing tilt from an accelerometer while the body is accelerating – the motion is wrongly read as tilt.
- Treating the drift of a double-integrated accelerometer as linear in time; it grows with t².
- Operating a seismic sensor near its natural frequency, where the response is amplified and phase-shifted.
For GATE ME
Expect conceptual MCQs on what each sensor measures, which type responds to DC, the seismic-instrument principle (accelerometer below ω_n, displacement pick-up above ω_n) and the role of each sensor in an IMU. Numericals typically ask for natural frequency and static deflection of a spring–mass sensor, tilt from gravity components, angle obtained by integrating a rate, or error growth from bias. Practise second-order response, unit conversions between g, m/s², °/s and rad/s, and simple integration of constant rates and accelerations.
Quick check
- What does a capacitive MEMS accelerometer lying flat and still on a table read on its vertical axis?
- Why can a piezoelectric accelerometer not be used as an inclinometer?
- A gyro bias of 0.05 °/s is integrated for 2 min. What is the angle error?
- A spring–mass accelerometer has k = 50 N/m and m = 0.5 g. What is its natural frequency in Hz?
- Which IMU sensor corrects long-term heading drift, and what can disturb it?
Answers: 1. About +9.81 m/s² (1 g); 2. Its charge output leaks away, so it has no DC (static) response; 3. 0.05 × 120 = 6°; 4. ω_n = √(50/0.0005) = 316.2 rad/s, so f_n ≈ 50.3 Hz; 5. The magnetometer; nearby iron, motors and currents distort it.
Interview questions
All Sensors, Actuators and Electric Drives interview questionsTry answering each one aloud before you open it.
1.What is an accelerometer and how does it work?Concept
An accelerometer is a seismic spring–mass–damper sensor: when the case accelerates, the proof mass lags and the spring deflects by x = m·a/k, and that deflection is read capacitively, piezoelectrically or with strain gauges. Strictly it measures specific force (acceleration minus gravity), so at rest it reads 1 g upward and in free fall it reads zero. It must be used well below its natural frequency √(k/m), with damping near 0.7 for a flat response. Capacitive MEMS and piezoresistive types respond to DC and can measure tilt; piezoelectric types are for vibration and shock only.
2.Explain the working principle of a gyroscope.Concept
A rate gyroscope measures angular velocity, not angle. A mechanical gyro uses a spinning rotor: rotation about a perpendicular axis needs a gyroscopic torque T = H·Ω, which is measured. A MEMS gyro vibrates a proof mass at a drive frequency; rotation produces a Coriolis force F = 2·m·Ω·v on the perpendicular sense axis, and the resulting motion is detected capacitively. Optical gyros (ring-laser, fibre-optic) use the Sagnac phase shift between counter-propagating beams. Angle is obtained by integrating the rate, so any bias causes drift that grows with time.
3.What is an Inertial Measurement Unit (IMU) and what are its components?Concept
An Inertial Measurement Unit (IMU) is a device that measures and reports a body's specific force, angular rate, and sometimes the magnetic field surrounding the body. It typically consists of a combination of accelerometers, gyroscopes, and sometimes magnetometers. The accelerometers measure linear acceleration, the gyroscopes measure angular velocity, and the magnetometers measure the magnetic field, which can be used for orientation correction.
4.Why are accelerometers used in smartphones?Application
Accelerometers are used in smartphones to detect the orientation of the device and to enable features like screen rotation. They also play a role in motion-based user interfaces, such as gaming and fitness tracking applications. By measuring the acceleration forces, the smartphone can determine its movement and orientation in space, allowing for a more interactive user experience.
5.What happens if a gyroscope in a drone fails during flight?Application
If a gyroscope in a drone fails during flight, the drone may lose its ability to maintain stable orientation and control. Gyroscopes provide critical data for maintaining balance and executing precise maneuvers. Without this data, the drone's flight controller may not be able to compensate for changes in orientation, leading to erratic behavior or even a crash. Redundancy and fail-safe mechanisms are often implemented to mitigate such risks.
6.How does an IMU contribute to the navigation of autonomous vehicles?Application
An IMU contributes to the navigation of autonomous vehicles by providing real-time data on the vehicle's acceleration and angular velocity. This information is crucial for dead reckoning, which helps estimate the vehicle's current position based on its previous position and motion data. When combined with GPS and other sensors, the IMU helps improve the accuracy and reliability of the vehicle's navigation system, especially in environments where GPS signals may be weak or unavailable.
7.A car goes from rest to 100 km/h in 10 s. What average acceleration should its longitudinal accelerometer indicate?Numerical
Convert the speed: 100 km/h = 100 × 1000/3600 = 27.78 m/s. Average acceleration a = Δv/Δt = 27.78/10 = 2.78 m/s², about 0.28 g. On a level road the longitudinal axis sees no gravity component, so this is the average reading; on a slope the accelerometer would also pick up g·sin(slope).
8.If a gyroscope measures an angular velocity of 5 rad/s, how much will an object rotate in 3 seconds?Numerical
The rotation angle (θ) can be calculated using the formula: θ = ω * t, where ω is the angular velocity and t is the time. Here, ω = 5 rad/s and t = 3 s. Therefore, θ = 5 rad/s * 3 s = 15 radians.
9.Explain why MEMS technology is commonly used in accelerometers and gyroscopes.Application
MEMS technology is commonly used in accelerometers and gyroscopes because it allows for the miniaturization of these sensors, making them suitable for integration into compact devices like smartphones and wearables. MEMS sensors are cost-effective, consume low power, and provide high precision and reliability. The ability to fabricate these sensors using semiconductor manufacturing techniques also enables mass production, further reducing costs.
10.What are the limitations of using accelerometers for measuring tilt?Application
Accelerometers can measure tilt by detecting the component of gravitational acceleration along their sensitive axes. However, they have limitations such as sensitivity to linear acceleration, which can introduce errors in tilt measurement. Vibrations and dynamic movements can also affect the accuracy of tilt readings. Additionally, accelerometers cannot distinguish between acceleration due to motion and acceleration due to gravity, which can complicate measurements in dynamic environments.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?