I am developing unit for garden irrigation. There is Arduino mega 2560, ethernet module W5500, RTC module DS1302, 6 relay module and this is supplied by 5V 4A. One of the relay is for 230V AC for transformer 24 V AC and others are for 1 to 5 solenoid. I thought it is done, everything was tested on my table. Relays was working like it is programed, also ethernet managing worked, everything all right. But when I connect 24V AC solenoids arduino begin behave strangely. Ethernet loses connection and relay are randomly flickering or RTC loses right time. Solenoids are cca 40cm far from arduino box, and transformer is also alone out of arduino box, cca 30 cm. I tested it again and again. Even when everything is connected, ethernet is working till any relay is switch on. So when 24VAC began flow through the box ethernet began volatile behave.
Thanks for each idea.
see schem and picture of the arduino connection
zavlahy schema.pdf (1.7 MB)

