Electronic – How much power can electrical noise (EMI) produce

emi-filteringnoise

I have a 5-meter-long wire connected to an ESP8266 input. The wire is connected to a regular wall-mounted switch and goes through my room's wall and is adjacent to mains power lines.

As you would expect there is significant noise on the input of the microcontroller. I intend to use an optocoupler to eliminate the noise, but I was wondering if this noise can also turn on the LED in the optocoupler.

Can electrical noise create enough voltage and current to turn on an LED? Say it's a regular IR LED with a 1K resistor in series.

I'm asking since even after putting the optocoupler in the circuit I still could read false LOW/HIGH triggers on the input.

(I have done my research about input signal noise and know that I should use twisted shielded wire, filters, etc. but my question here is specifically about the amount of power that I can expect from EMI noise created in a 5m wire in a household environment)

Best Answer

Yes, because an optocoupler is as sensitive as any other piece of electronic maybe even more sensitive since the led voltage of the optocoupler is less than CMOS treshold. To solve the problem:

  • A resistor between the signal line and GND. Value between 100 and 900K.

  • A capacitor between the signal line and GND. Value between 0.1 and 0.47uF.

  • A resistor in serie with the signal input. Value +- 1K.