Accelerometers measure the acceleration or vibration of a device or system. Physically, the accelerometer can be considered a weight on a spring which is connected to a frame. When the frame is moved, the mass will stay at rest until the spring, being stretched, can exert enough energy to move the mass. The two basic types of accelerometers are piezoelectric (AC response) and MEMS based (DC response) accelerometers.