The earthquake detector was created during the Han dynasty by the inventor Zhang Heng. Zhang Heng was an astronomer, mathematician, engineer, geographer and inventor who lived during the Han Dynasty (25 – 220 AD).
Heng's invention was used to determine the direction of the earthquake.