Sie sind auf Seite 1von 4

16/5/2015

Controlling Appliances over WiFi and Ethernet


Like

625k

Follow@EngineersGarage

Ikuti

Arduino Projects (http://www.engineersgarage.com/microcontroller/arduinoprojects) | Raspberry Pi


(http://www.engineersgarage.com/embedded/raspberrypi) | Electronic Circuits (http://www.engineersgarage.com/electroniccircuits)
| AVR (http://www.engineersgarage.com/embedded/avrmicrocontrollerprojects) | PIC
(http://www.engineersgarage.com/embedded/picmicrocontrollerprojects) | 8051
(http://www.engineersgarage.com/microcontroller/8051projects) | Electronic Projects (http://www.engineersgarage.com/contribution)

ControllingAppliancesoverWiFiandEthernet
Description

Circuit Diagram

Source Code

LANWiFimodule
w/Antenna
Nodriverrequired.Fully
certifiedroyaltyfreeTCP,
SSLandprotocols

TABLE OF CONTENTS:
1. Controlling Appliances over WiFi and
Ethernet
2. HTML Tags Explanation
3. Hardware Setup Step by Step
4. Arduino Code Explanation & Troubleshooting

Contributor: Ganesh Selvaraj

This a simple tutorial on how to setup your Arduino board with Ethernet shield to control your home appliances
like Lights or Fans using any device (Mobile/Tablet/Laptop/Desktop) connected to your WiFi network.

Components Required
1. Arduino Ethernet Shield
2. Arduino Uno (http://www.engineersgarage.com/articles/arduino?page=1) (or any other Arduino
board compatible with the shield)
3. Relay Board (Number of Relays depend on how many appliances you want to control)
4. WiFi router
5. Ethernet cables
6. Wires
Block Diagram

HTML (Hyper Text Markup Language)


Yeah right! HTML! How else do you expect to make your interface accessible in all your WiFi
(http://www.engineersgarage.com/articles/whatiswifitechnology) enabled devices then?
We basically create a HTML page from arduino which can be accessed by the devices connected to the network
from their respective internet browsers. So we dont need to install any specific application in each device you
want to control your appliance with.
You just need to know some basics of HTML (which I will cover here) but the better you know, the cooler your
web interface would look!
Getting Started
Open the Notepad and copy paste the following code:
<html>
<head>

http://www.engineersgarage.com/contribution/controlling-appliances-over-wi-fi-and-ethernet-using-arduino-uno

1/4

16/5/2015

Controlling Appliances over WiFi and Ethernet


<title>My First Page Title</title>
</head>
<body>
Congrats! You have created your first Webpage!
</body>
</html>
Go to File menu and click Save As. Below the file name you would see save as type:
Click on that and you should see All Files. Select it and give a name to your page like for example myweb.html
and save it.

Now close the notepad and open the file again using a browser (Mozilla Firefox/ Google Chrome/ IE).
You should see something like this.

panStamplowpowerradio
Lowpowerwirelessarduinocompatiblemodulesandboards

What
we

wrote above is the basic code.

http://www.engineersgarage.com/contribution/controlling-appliances-over-wi-fi-and-ethernet-using-arduino-uno

2/4

16/5/2015

Controlling Appliances over WiFi and Ethernet


Log In

or

Register

to post comments

Like

731

Tweet

Comments
great job, very good.
Submitted by k.asper (not verified) on Sat, 27/12/2014 00:41

great job, very good.

Log In

or

Register

to post comments

awesome
Submitted by Sai on Sun, 01/02/2015 13:21
awesome
Log In

or

Register

to post comments

This technology is really


Submitted by Damien Smith on Mon, 02/02/2015 14:57
This technology is really amazing! Thanks for the share.

buy followers on instagram (http://www.igphotobuzz.com)


Log In

or

Register

to post comments

great job
Submitted by NABIL on Fri, 06/02/2015 08:12
great job
Log In

or

Register

to post comments

this project is for ethernet


Submitted by sami on Fri, 27/02/2015 00:16
this project is for ethernet if i have to do on wifi what changes are require in the source code?????
Log In

or

Register

to post comments

I am using Ethernet Module


Submitted by Rohit on Sun, 15/03/2015 19:24
I am using Ethernet Module
and not Ethernet shield

I uploaded the code after doing hard wired connections


and the ourput on Serial monitor is
server at 0.0.0.0.
Log In

or

Register

to post comments

how to implement this


Submitted by kanishka on Sun, 29/03/2015 11:51
how to implement this technology for more then one application
Log In

or

Register

to post comments

APPLICATIONS&TECHNOLOGIES
Learn about the latest applications and industry trends with tutorials and white paper design resources on vertical markets.

(http://in.mouser.com/applications/automotive
(http://in.mouser.com/application
(http://in.mouser.com/applications/energy_harvesting/)
applications/)
technology/)
Automotive
Energy Harvesting
MEMS
Technology

http://www.engineersgarage.com/contribution/controlling-appliances-over-wi-fi-and-ethernet-using-arduino-uno

3/4

16/5/2015

Controlling Appliances over WiFi and Ethernet


Copyright 2012 EngineersGarage. All rights reserved. Privacy Policy (http://www.engineersgarage.com/privacypolicy) | Refund Policy

(http://www.engineersgarage.com/subscriptionsrefundpolicy) | About Us (http://www.engineersgarage.com/aboutus)

http://www.engineersgarage.com/contribution/controlling-appliances-over-wi-fi-and-ethernet-using-arduino-uno

4/4

Das könnte Ihnen auch gefallen