I understand that. I have seen cases where you can short out the opto and the micro still gets an interrupt. The signal came into the board another way. Example; capacity coupling from a hot trace to another.Shorting out C7 means shorting the input pins of the optocoupler.
I will surely check these but before that I would like to share my test results which I made with bare UNO.about testing - remove all external sensor wiring. test what happens when optocoupler input is:
a) connected low (0mA)
b) connected high (5-24mA)
c) not connected (floating, 0mA)
d) connected to piece of free hanging wire (antenna) of some 3ft length
do you still see interference? in which cases?
case a and b should be done with as short as possible external wires so they are not acting as antenna. goal is to see if the board itself is the culprit, or the interference is already on the wire connected to board.
next, connect 100nF cap across optocoupler diode and repeat the tests
about board design, new version is making use of ground planes, that is a good idea. 1k resistor on optocoupler input may be a bit small. normally that current should be in 5-10mA range, 24mA is a bit high.
