Text this: The design of earthquake detector using pendulum swing based on ATMega328