You want to use an accelerometer with a high pass filter so that it's sensitive to impulses only.

Feed the output of that circuit into a comparator to in turn feed the arduino logic input.

Tuan Pham
Actions
Connections