I found this project on Fritzing.org. This is just a simple project for testing a 2 channel relay using an Ethernet shield over an Arduino Mega.
In place of LEDs, you can connect 220V AC lamps. If you have not used relay before, check out this article.
The Arduino sketch has been compiled and there is no error in the code.
Arduino Sketch- It has been compiled.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.