I've built a basic counter module with 3 LED displays, It works, but I have coupled it to a photo interrupter so that i can count revolutions. Now it seems to jump 5 to 10 places per revolution. I'm guessing there must be spikes in the signal coming from the photo interrupter. Does anyone have any suggestions to making this more stable?