Consider a fast-moving car, if it suddenly gets hit by another car in opposite direction, the first thing that happens is that, the accelerometer sensor present in the car senses a sudden ...
//A rising pulse from encodenren activated ai0(). AttachInterrupt 0 is DigitalPin nr 2 on moust Arduino. attachInterrupt(0, ai0, RISING); //B rising pulse from encodenren activated ai1().