Author Topic: Avoiding EMI when bunching together multiple wires  (Read 2115 times)

0 Members and 1 Guest are viewing this topic.

Offline amp2Topic starter

  • Newbie
  • Posts: 2
  • Country: ca
Avoiding EMI when bunching together multiple wires
« on: January 10, 2017, 02:30:20 pm »
Hi,

I'm trying to control a kitchen appliance with an arduino, so I'm replaced all the buttons (about 7) with 1 m solid wires (l need them long to route them to the relay card). However the buttons work reliably only when the wires are spread apart. My guess is this is due to EMI when the wires are bunched together.

To mitigate this, I have tried twisting pairs together and covering individual pairs with Al-foil and grounding them, But I haven't had any success. Any thoughts?

 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13121
Re: Avoiding EMI when bunching together multiple wires
« Reply #1 on: January 10, 2017, 02:45:33 pm »
Probably cross-talk due to excessive capacitance is messing up the key scanning.  Also it may not even be safe to extend the wiring outside the case. (e.g. if the appliance's controller uses a non-isolated PSU).   Odds are you'll need to use optoisolators as close as possible to the connectors for the buttons, but you'll have to do some experimenting to determine the correct polarity for each opto's phototransistor to button connection hookup.
 
The following users thanked this post: amp2

Offline snarkysparky

  • Frequent Contributor
  • **
  • Posts: 418
  • Country: us
Re: Avoiding EMI when bunching together multiple wires
« Reply #2 on: January 10, 2017, 02:55:18 pm »
The appliance inputs from the keypad are likely not debounced or hardened against emi as they were intended for short runs inside the machine.  Strongly suggest as Ian did that you put optoisolators at the board input. 
You may need some pull up resistors as the leakage of the opto's might be too much for a reliable off state.
You might try relocating your relays to very close to the card inputs as well.

 
The following users thanked this post: amp2

Offline FlyingHacker

  • Frequent Contributor
  • **
  • Posts: 807
  • Country: us
  • You're Doing it Wrong
Re: Avoiding EMI when bunching together multiple wires
« Reply #3 on: January 10, 2017, 04:15:52 pm »
Though the suggestions above are better overall solutions you might be able to simply use some thing coax for the wires, and ground the shielding.
--73
 
The following users thanked this post: amp2

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19962
  • Country: gb
  • 0999
Re: Avoiding EMI when bunching together multiple wires
« Reply #4 on: January 10, 2017, 08:01:45 pm »
Probably cross-talk due to excessive capacitance is messing up the key scanning.  Also it may not even be safe to extend the wiring outside the case. (e.g. if the appliance's controller uses a non-isolated PSU).   Odds are you'll need to use optoisolators as close as possible to the connectors for the buttons, but you'll have to do some experimenting to determine the correct polarity for each opto's phototransistor to button connection hookup.
Good idea. You could use an opto-isolator with a FET output, then the polarity won't be an issue. The downside is they're more expensive, than BJT opto-couplers.

http://docs-europe.electrocomponents.com/webdocs/129d/0900766b8129d5be.pdf
« Last Edit: January 10, 2017, 08:40:06 pm by Hero999 »
 
The following users thanked this post: amp2

Online Benta

  • Super Contributor
  • ***
  • Posts: 6257
  • Country: de
Re: Avoiding EMI when bunching together multiple wires
« Reply #5 on: January 10, 2017, 08:27:33 pm »
Problem is more likely that your circuit is too high-impendance and susceptible to all kinds of pick.

I just checked the schematic of an Arduino Uno, and there are no pullups/pulldowns on the I/O pins, meaning that you are relying on the internal 50 kohm pullups.

This is far too high. In an appliance environment, you need to pull a few mA at least through the circuit for reliable signalling.

Try adding pullups at the inputs to the Arduino, forcing this current through the switch loops.
Start with 2 kohm pullups and take it from there.

Yeah, I know, bye-bye low-power design, but that's the way of the world :-)

 

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13121
Re: Avoiding EMI when bunching together multiple wires
« Reply #6 on: January 10, 2017, 08:34:12 pm »
Problem is more likely that your circuit is too high-impendance and susceptible to all kinds of pick.

I just checked the schematic of an Arduino Uno, and there are no pullups/pulldowns on the I/O pins, meaning that you are relying on the internal 50 kohm pullups.

This is far too high. In an appliance environment, you need to pull a few mA at least through the circuit for reliable signalling.

Try adding pullups at the inputs to the Arduino, forcing this current through the switch loops.
Start with 2 kohm pullups and take it from there.


Yeah, I know, bye-bye low-power design, but that's the way of the world :-)


You've got it ass-backwards. |O According to the O.P., the Arduino is outputting to a relay card and the relay contacts are across the appliance buttons, to duplicate their action under Arduino control.  If so, adding pullups at the Arduino would have no effect whatsoever except to fractionally increase power consumption..
« Last Edit: January 10, 2017, 08:35:48 pm by Ian.M »
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6257
  • Country: de
Re: Avoiding EMI when bunching together multiple wires
« Reply #7 on: January 10, 2017, 09:53:34 pm »
Quote
You've got it ass-backwards. |O

Thank You for your friendly, courteous and well-mannered reply.

You may be right, the original post is not clear on the functionality, and mentions "1 m solid wire", "buttons" etc.
Rereading it, I'm none the wiser, a sketch on a napkin might help.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf