MSP430-based device that counts how many times it has been dropped