Relay + interrupt pin

So long story short.....

I have a coin acceptor on interrupt pin 1
And
A relay shield on pin 4

Whenever the relay clicks on or off. the interrupt pin fires a random amount of times. The relay shield i use is photocoupled type. Im just about to order a solid state relay to see if that helps.

Anyone else have any ideas on what could be causing the problem.

Thanks in advance

Anyone else have any ideas on what could be causing the problem.

Electrical interference or your code.

You know when you turn the relay off or on. You could ignore interrupts that happen within some time frame after that. And probably should.

I have double and triple checked the code

Williamgentry:
I have double and triple checked the code

So, if you are absolutely certain that the Programming is not the problem, why on earth did you post in the Programming section?