Seismographs are instruments used to record the motion of the ground during an earthquake. They are installed in the ground throughout the world and operated as part of a seismographic network. The earliest "seismoscope" was invented by the Chinese philosopher Chang Heng in A.D. 132. This did not, however, record earthquakes; it only indicated that an earthquake was occurring. The first seismograph was developed in 1890.

A seismograph is securely mounted onto the surface of the earth so that when the earth shakes, the entire unit shakes with it EXCEPT for the mass on the spring, which has inertia and remains in the same place. As the seismograph shakes under the mass, the recording device on the mass records the relative motion between itself and the rest of the instrument, thus recording the ground motion. In reality, these mechanisms are no longer manual, but instead work by measuring electronic changes produced by the motion of the ground with respect to the mass.

More Info: www.usgs.gov