Project Description




Switch relays from the ethernet or the internet, using your mobile, tablet or computer with a nice graphical user interface.


Hardware Required

1) Arduino MEGA 2560
2) Arduino Ethernet Shield
3) Relay board
4) RJ45 cable



* Internet access with fixed IP for Arduino
* Access to your router to share the port for internet access
* Testing devices – your pc, mobile etc


* This project was tested with iPhone 3GS, iPad 2 and MacBook Pro running Safari and PC running Safari, Firefox, Opera and IE.
* This project was created on October 2012 with the mentioned material.
* Binary sketch size: 22,322 bytes (of a 258,048 byte maximum).
* This sketch does not offer any sort of authentification, therefore if required to be used from outside the network or from the internet, I suggest to configure your network to connect trough VPN. Nowadays many routers and smartphones support VPN.

* With this project, I had not included any images, or links to images from the internet. It only make use of CSS3 and HTML5.
* The simulated LEDs are created from CSS3 code.
* Some browsers does not make full use of CSS3 and HTML5. Thus I suggest using Safari.


Hardware Connections



Arduino Code



1. To invert the outputs. – Done on V3.06
2. A possibility to rename the buttons – Done on V4.06
3. To be password protected. – Not yet done
4. Refresh page settable. – Done on V3.06
5  Switch On or Off the outputs on startup – Done on V3.06
6. Enable/Disable the All on/off buttons – Done on V4.01
7. Read Temperature – Done on V4.03
8. Save/Load statuses from eeprom to keep latest status after powercut – Done on V4.06
9. Option to choose which output to retain the value after power cut. – Done on V4.06


Download link



Tags: 201802, W5500, Ethernet, Arduino, Ethernet Switching