Troubles with interrupts firing inadvertantly on Duemilanove.
For the standard attachInterrupt() for pins 2,3 they work pretty good but the interrupts fire just by touching the wire connected to the pin. Sometimes they fire if I wiggle the USB connection. Should I be pulling these to ground somehow when the switch is open to these pins?
Here is a snippet of my code and interrupt handlers. I have 0.5 second of debounce software in the ISR. Pretty standard stuff…
- Setup I/O Pins
pinMode(lane3Pin, INPUT); // Setup digital pin 8 for input - ISR Lane 3
pinMode(lane4Pin, INPUT); // Setup digital pin 7 for input - ISR Lane 4
/* External interrupts for lanes 1 and 2 are simple rising edge interrupts. */
attachInterrupt(0, processLane1, RISING);
attachInterrupt(1, processLane2, RISING);