Smart Home Automation With Android + Ethernet Internet + Arduino

110,040

206

49

Published

Introduction: Smart Home Automation With Android + Ethernet Internet + Arduino

About: Skills: Programming Language: HTML, CSS, PHP (Basic), Javascript (Basic). - Software and Development Tools: AppIventor (Android), Arduino IDE, Dreamweaver CS4, Photoshop CS6, 3D Studio Max, AutoCAD, Corel Dr...

Home automation becomes more and more popular, affordable and fascinates people. Internet offers such possibilities as never before. Impress your friends showing on Smartphone that you can switch on/off lamp in your apartment miles away and simultaneously see it through a webcam, opening doors. Very cool!

// --------------------------------------------------------

Step 1: Materials

Smart Home Automation with Android + Ethernet Internet + Arduino

01 - Smartphone with Android 2.3+

01 - Wire Ethernet + Router (My Model is TP-Link (TL-WR740N)

01 - Arduino Mega 2560 ou Arduino Uno + Shield W5100 (Ethernet)

01 - Led IR (Optional)

// --------------------------------------------------------

Step 2: App Inventor (application That Control the Arduino Via the Internet)

First you need create an app android, in this case I use an app inventor 2 link: http://ai2.appinventor.mit.edu/

Reference: https://www.youtube.com/watch?v=rwsKzyEpgoE

(Tutorial: AppEthernet - App inventor 2 / Channel: Android e Arduino)

Download .aia to my project, if you need change this application to English, because I created in Portuguese

http://www.mediafire.com/download/pbcepmryegczdpb/SmartHouseApp.aia (Project .aia)

Download App to install in Android:

http://www.mediafire.com/download/v2yk79xk91eaw57/SmartHouseApp.apk

//------------------------------------------------------------------------------------

Step 3: Sketch to Arduino Mega - Code Link Download

Download link in the end code:

You need change:

byte ip[] = { 192, 168, 0, 00 }; // IP the arduino

EthernetServer server(80); // Port acess

Obs:

01 - You need a version IDE 1.0.5 - the code does not work in IDE 1.0.6 because of IRremote library

02 - Every 4 seconds the page automatically updates, if you need change: client.println('<'MET A HTTP-EQUIV='refresh' CONTENT='4; URL=http://seudominio.no-ip.org/'>");

03 - In application "SmartHomeAPP" you need change to a URL=http://seudominio.no-ip.org/'

04 - Change the LED IR code to turn on or turn off your TV or Stereo

Lindo Download Sketch Arduino INO

http://www.mediafire.com/view/v2y3ztk5uhex2ij/APP_ETHERNET_INVENTOR_WAKE.ino

How can you creating a http://seudominio.no-ip.org/

Acess the link: https://www.youtube.com/watch?v=1FWGt5gnnYs or https://www.youtube.com/watch?v=ZPvvoEDjSww

//---------------------------------------------------------------

Step 4: Understanding the Code and Main Features

The methods "Get" send the variable for arduino, you can see in the piece of code:

if (c == '\n') {

if (readString.indexOf("lampada1") > 0) {

digitalWrite(lampada1,!digitalRead(lampada1)); }

//--------- send the page a variable "lampada1"

then the Arduino reads the full page and returns a method "Get" you can see in the piece of code:

//botao lampada1
if(digitalRead(lampada1)){ statusLed = "Ligada"; }

else { statusLed = "Desligada"; } client.println("

Lampada 1 - "+statusLed+"

");

//--------- in this piece you can see "+statusLed+", it returns to the relay this on or off on page

//-------------------------------------------------------------------------

Share

Recommendations

  • Woodworking Contest

    Woodworking Contest
  • Clocks Contest

    Clocks Contest
  • Oil Contest

    Oil Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

2 Questions

0

Could you please send us the PDF of this project with the circuit and wiring diagram?

Can i get the circuit diagram and wiring diagram???

49 Comments

hi .am doing a house automation project an your project inspires me a lot .while reading i cannot understand the first part of the connection between smartphone android and the arduino how it works.

as am not a premium user i cannot download your pdf .could you send me it on my personal e-mail : adilensamy@ymail.com.

thx.

2 replies

Hello there, I too with my team working with the same project. We can't avoid to have confusion with the connection especially with the code if there are some lines of functions that we need to be dealt with according to the address of the router. If you had the pdf my friend, It would be a great help for us to complete the project. Here is my email: shaharaijeleth@gmail.com Hoping for your response, Thank You

excellent project congratulations, here functioning everything perfectly, only has a problem, after a time on circuit it stops/congeals, already I made of everything I changed the source, Internet and nothing, it helps me

hi,

i need your guide on my project cause im doing bluetooth and arduino to control home applicance...plz respond as sson as possible rubinerx68@gmail.com

Nice job AlanV2.

Please someone re upload or send me .aia file because the link not work anymore....

2 replies

you got the link? someone could help please?

OK i got the .aia file. Thanks.

Sir, can you switch on/off your appliances even if the android application is connected to a different internet connection?

can i be able to control appliances when i am connected to a different network?

sir kindly provide me codeing shaubhamsaini@gmail.com

sir how can i connect the android phone to control the automation?

sir how can i connect the android phone to control the automation?

sir how can i connect the android phone to control the automation?

Sir How can i call my ip address from other remote place . for eg. From mobile or from other city. because whenver i am going on my ip address from mobile to access it It couldn't get opened after reloading page also. Please help me sir. Thank u .

1 reply

Hi ChetanK23.. you need use this site http://www.noip.com/

Watch this video

https://www.youtube.com/watch?v=LerqGqdhzhQ

hello; great project.

how i can repeat ir commands from my air conditioner? and use on the app?

thank you

1 reply