loading

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

Parts:

Arduino Uno

http://www.amazon.de/gp/product/B008GRTSV6?keyword...

4 channel relay board

http://www.amazon.de/SunFounder-Module-Kan%C3%A4le...

W5100 Ethernet Shield

http://www.amazon.de/Aukru-Ethernet-Micro-SD-Karte...

Jumper wires MALE - FEMALE

http://www.amazon.de/Aukru-jumper-wire-Steckbr%C3%...

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:

https://tjasdeveloper.wordpress.com

YouTube :

https://www.youtube.com/channel/UCE7-9VZ2heI1D8yk2...

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.

Could be this done with a wifi shield instead of an ethernet shield?
<p>Yes.</p>
<p>Thanks so much. But when i connnect arduino with power ( with out usb computer ) i can't entry web address. Can you help me.</p>
<p>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 </p>
<p>Hi,</p><p>I&rsquo;m irinakim and I&rsquo;m work in the Wiznet.</p><p>Thank you for using our product.</p><p>We are collecting so much data using ourproduct.</p><p>And I will post the this project on our Web site.( <a href="http://wiznetmuseum.com/" rel="nofollow">http://wiznetmuseum.com</a>)</p><p>Can I post your product on our Web site?</p>
<p>yes you can, thanks for the comment</p>
<p>These are great for automating things around your house.</p>

About This Instructable

4,546views

47favorites

License:

More by _Mr_Space_:Arduino relay control over the internet 
Add instructable to: