input protection, long wire, digital input

Thread Starter

bug13

Joined Feb 13, 2012
1,706
Hi guys

I need an input protection for a remote switch, the wire is about 15M away. That's what I am planing to add input protection to my pic, will that work? Or should I add something like 10n filter caps?

Thanks guys!

PS: I think I should move my D1 and D2 between R1 and R2...

schematic:

4AEF23C0-E18E-48DC-8533-2B3AF79A580C.jpg
 

GopherT

Joined Nov 23, 2012
7,983
Why do you need anything? 15 m isn't very long and, unless you are next to an AM radio station or other things that would make your switch look like an antenna.

It all looks very complex - have you had problems to this point?
 

GS3

Joined Sep 21, 2007
408
I agree. Unless you are in an electrically noisy environment you could probably just wire it in parallel with the board switch. Also note that if you are in a noisy environment that circuit will not protect against common mode noise. So it depends on what you need but in a normal environment I think a capacitor and some twisted pair wire should work fine.
 

Thread Starter

bug13

Joined Feb 13, 2012
1,706
I don't have any problem at this point(with just two wire connect to the remote switch to the local switch directly). But the wires might be wired next to a or two bathroom fans, I just want to make sure it's reliable.

So it's good enough even next to a bathroom motor, or do I need something else?
 
Last edited:

GopherT

Joined Nov 23, 2012
7,983
I would set it up and check if any problems. If any problems exist, you can just lower the value of the pull-up resistor.
 

BReeves

Joined Nov 24, 2012
410
Yep you would be better off just connecting the remote switch in parallel to the local switch and eliminate Q1 and Q2. The impedance is lower and you wouldn't be adding a noise amplifier.
 

AnalogKid

Joined Aug 1, 2013
8,103
For the 15 meters out to the switch, use a lightly twisted pair. No need for shielding unless a transient problem pops up. One twist every 6 inches or so should be enough.

ak
 
Top