Arduino Relay Control Over the Internet


Introduction: Arduino Relay Control Over the Internet


Step 1: Make a Sketch

Use the sketch to connect the relay to the Arduino.

The sketch will help you when you will be writing the code, so that you will know what pins you need to control with the code.

I'm using an Arduino with the W5100 Ethernet Shield Network Expansion Board, to connect to my home network


Arduino Uno

4 channel relay board

W5100 Ethernet Shield

Jumper wires MALE - FEMALE

Step 2: Wiring

Cut open the wire for the lamp or other electronics you want to control. Cut one of the two wires and stripe it on both sides and connect the wires to the relay¸

If you connect the wires to the two inputs on the relay that are showing a connection, you won't be able to control the relay

Step 3: Code

You can change your IP address by changing the last number on the IP address

(byte ip [ ] = { 192, 168, 1, 30};)

Step 4: Test

When you are finished .
You just open a web browser and type the IP address that you used in your code.

I should look something like that site in the picture.

And that is it!

Thanks for reading my inscrutable!!! :):)

Step 5: Other Projects

Here are some links:

My site:

YouTube :

I will be doing some other projects with the RPi 2, when a will have more time!!

English isn't my first language, so please excuse any mistakes.



    • Clocks Contest

      Clocks Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Water Contest

      Water Contest

    11 Discussions

    webpage is not opening..Please help me

    Hi, i try it now at home, but only 1 relay work, on/off at any numbers. So if i push off the button 5 rellay 1 go off, if i push button 8 go online only number 1. Any idea?

    1 reply

    10 months ago

    are u sure control over the internet?why i just can using lan to control?

    Could be this done with a wifi shield instead of an ethernet shield?

    1 reply

    Thanks so much. But when i connnect arduino with power ( with out usb computer ) i can't entry web address. Can you help me.

    1 reply

    I use the USB port to power the Arduino, I have no way to test the power port, because I don't have the power supply


    I’m irinakim and I’m work in the Wiznet.

    Thank you for using our product.

    We are collecting so much data using ourproduct.

    And I will post the this project on our Web site.(

    Can I post your product on our Web site?

    1 reply