Eliminate surrounding noise from MEGA

Hi All,

I am facing some sort of noise in my circuit that leads to false triggering of interrupts, and I was thinking about two start steps :

First I 'd make a hardware debounce circuit to the interrupts buttons, so what is the perfect way to do that, knowing that I'm using pull-down resistors?!

Second I am willing to change the Six Relays I am using and want to replace them with much better not noisy components, so what's better using SSR or just optoisolators?!

My actuators are:

  • Three 12v DC pumps.
  • One 220v AC pump.
  • One 12v Light System.

Are you using interrupts for human button presses?

Buttons are normally used between pin and ground. With internal pull up enabled in pinMode.
No physical resistors needed, unless there is some distance between board and button, and/or strong interference.
Use polling for slow/human buttonpresses, not interrupts.
Leo..

Hi,

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.... :slight_smile: