Problem Using 8 Channel Relay with 220 V AC

Hello to all my respected Arduino community members,

I am using 8 Channel Relay module with Arduino Mega.

I am using a simple program to operate my relays. Just, If button State is High turn the Relay On, else Relay OFF.

My program works fine when i am just testing my program without giving 220 V AC to my relays.

as i connected to 220 V AC, the relay starts to randomly ON or OFF. Not quickly but within 5 sec interval.

Can You Please me to figure out what's wrong is happening here?

Thanks you very much... :slight_smile:

Please review this thread.

Hi,
Many people have this type of problem.

See THIS: page which has many suggestions that usually work..