Problem driving a tachometer gauge while listening for interrupts from a circuit

The arduino was powered by a 5v phone charger and the 12v rail was powered by a battery pack.