I like some suggestions on this issue.

Above Image is a part of trigger of a project I am working on.
Opto output is directly connected to PIC pin.
The Switch is remote. Distance may be 10 to 40 feet depending on the installation.
I like some suggestions to improve the noise rejection filter. Anything from mains induced noise to higher frequency interference. I do not have noise figure. I just like the input to be immune to 50Hz mains and motor induced interference as such.
Any Suggestions ?

Above Image is a part of trigger of a project I am working on.
Opto output is directly connected to PIC pin.
The Switch is remote. Distance may be 10 to 40 feet depending on the installation.
I like some suggestions to improve the noise rejection filter. Anything from mains induced noise to higher frequency interference. I do not have noise figure. I just like the input to be immune to 50Hz mains and motor induced interference as such.
Any Suggestions ?








