Introduction: Control Home Appliances With Phone and Internet of Things Under 6 $

I always wanted to turn on my Tv while laying on my couch, Or after a tiresome day when i finish reading a book , to turn off my Light.

I did this before with a Hc-05, and tv remote .

https://www.instructables.com/id/How-to-make-a-Chea...

Update : This Entry is accepted for IOT Challenge so if you like the project do give ur vote .



what is home automation ?

Home automation is the use and control of home appliances remotely or automatically.

What is IOT ?

The Internet of Things (IoT) is the network of physical objects—devices, vehicles, buildings and other items—embedded with electronics, software, sensors, and network connectivity that enables these objects to collect and exchange data.

Combine this Both You can control your home appliances from anywhere where we can access Internet.
It is totally based on the cloud services offered by Blynk

Step 1: Ingredients

6$ would not be possible if esp8266 was not used In the Stand Alone Mode

Here is the list of items we need for making the IOT Home Automation Box

Total 6.1$

So its all around 6$

Indians can buy it from here

We would also need tool

  • File
  • Wire Cutter
  • Wire
  • FTDI chip /Arduino
  • Perf Board
  • Soldering Iron
  • Solder

Step 2: Programming the Esp8266

The First task is to set up the ESP for the programming .

It had two modes of operation

Normal Mode For GPIO 0 =1;

Program Mode For GPIO =0;

So we right now need to put it in programming mode.
The Connection will be as follow

  • Vcc And CH_PD to 3.3 v
  • Gnd of Esp to Gnd
  • Rx of Esp to Tx of Arduino
  • TX of Esp to Rx of Arduino
  • GPIO 0 to Gnd

Once a program is being uploaded we need to pull down reset to ground once and the , the programming mode is enabled.

Detail instruction are given in this instructables

Step 3: Connecting to Blynk Server

Connecting to The Blynk is a easy task though

First we need to download the blynk app

IOS

https://itunes.apple.com/us/app/blynk-control-ardu...

Android

https://play.google.com/store/apps/details?id=cc.b...

Open the app and create a new project.
The Project device should be selected as ESP8266.

After its done you will get a authorization token .

you need to enter the token in the sketch attached.

Now we Create Button from the widget bar.

The Button is then clicked to select the GPIO it will work on.

We choose the button to be a switch.
you can aslo rename the button as Bulb /Fan Etc.
Here is the library

https://github.com/blynkkk/blynk-library/releases/...

Step 4: Making the Board for the Esp 8266

So here is the hard part and the most time consuming part.
We first cut a perf board so that it fits the enclosure.

we start to solder the the 3.3V ams1117 first.
Then we solder the Headers for the ESP8266.
We make the connection as per diagram.
I have used a screw terminal in my case to unplug the sytem as i m using a charger to power the board.

I first used a 350 ma plug which didn't work too well then i upgraded to 700ma which is decent for the system.
The relays need to be connected to 5v .

I also added a switch and led for indication (optional part)

Step 5: Creating the Enclosure

I took a 4 x4 x2 box . I started to drill a hole at the connect for the power cord to enter through this i then used a silicon carbide grinding bit to smoothen the hole .

I also drilled two on the two and four on the side for the relays.
The top one was for the switch and the led.
I glued the led and switch to the case .
Basically the switch is for turning the relay on after the esp 8266 has safely booted.

Two wires are soldered to the switch for connection which we will later solder to the board.

Step 6: Putting Everything Inside

Now its time to assemble all the parts.
we first take the main board and put it inside the box .

Then we attach the esp 8266 to the header.
Then we connect the switch to vcc and the relay header.
The relay was connected to the header with female to male fire.
After everything was in its place we assemble the case and power it on to enjoy the Light controlled by wifi and IOT.

If you liked the project do like my page to get updates on future Projects

https://www.facebook.com/makewithRex/

Comments

author
TechEnth (author)2017-02-04

Hi, can any one please tell me why FTDI chip is used in this project. As Arduino uno can be programmed directly without using ftdi chip.

author
sarathkrish (author)2017-01-29

And can we use this when we are out of home

author
sarathkrish (author)2017-01-29

Replay me immediately ....


author
sarathkrish (author)2017-01-29

This this home automation can be controlled by mobile data

author
drstoneburg (author)2016-05-12

Nice project! Suggestion, if you're using a 4 x 4 electrical box then you can bring your mains power in once and use it internally for powering your circuit and connect power receptacles through the relays, one per relay. If you squeeze hard enough you could power four sockets with one esp8266 circuit. The headers take a lot of space and can lead to poor connections over time. I get boards without headers attached and solder directly to them. 2x relay bd. $1.22, ESP8266-01 $1.99 for example.

author
WilliamB211 (author)drstoneburg2017-01-14

Ah....better use a correctly rated relay on 20Amp mains. I prefer the Panasonic ALE http://www.alliedelec.com/images/products/Small/70617938.jpg

author
geekrex (author)drstoneburg2016-05-12

this is temporary, my plans are similar . i will soon make everything more compact and also remove header

author
lrd (author)2016-05-12

Next time put prices in Rupees to avoid complaints and let them make conversions.

It is possible (although tricky) to merge this project with these:

https://www.instructables.com/id/How-to-use-the-ESP...

https://www.instructables.com/id/I2C-Relay-Board/

to use esp8266-01 "i2c" to control more than two relays

author
WilliamB211 (author)lrd2017-01-14

or use http://www.microchip.com/wwwproducts/en/MCP23S17

on an ESP12-e. All the GPIO you could ask for!

author
WilliamB211 (author)2017-01-14

y'all should check out the http://www.itead.cc/sonoff-wifi-wireless-switch.ht...

It can be hacked pretty easily- and it a great IoT WiFi switch!

author
水墨 (author)2016-11-24

how to download the pdf?

author
VrajeshS5 (author)2016-05-10

Wow! Can't believe that home automation could be this cheap and simple!
Really appreciate your work, mate

author
geekrex (author)VrajeshS52016-05-10

Thank you

author
KamalS55 (author)geekrex2016-09-14

sir,

i have just started with IOT say iam just starting and following your tutorials diligently thank you for sharing such a wonderful knowledge.

sir i have some query which


  • FTDI chip /Arduino from india i need to buy. and if you can help me with the links of item from amazon or indian distributor this shall be enormous help to a starter like me
author
Mavin_ (author)2016-09-05

Hi geekrex. I would like to include a circuit breaker so if a certain current is exceeded, it breaks. Any ideas on how to include this?

author
SANTAMANYU GUJARI (author)2016-06-15

I want to control 6 relay.how to do it? I am completely new to IOT.

author

u need to use esp 12 instead of esp1.
It has more than 6 io ports .
program is same.

author
UdayS11 (author)2016-05-26

Hey I'm sorry if this is a stupid question but I'm super new to this stuff so what I wanted to know was is there any code we need to control the various relays or is the basic blynk.ino enough and the app will handle which relays are used?

author
geekrex (author)UdayS112016-05-26

ya uday the app will handle it

author
UdayS11 (author)geekrex2016-05-26

Thanks a lot... You're awesome!! :-D

author
artmez (author)2016-05-25

Step 2's Fritzing schematic of the AMS1117's output is not shown connected to anything.

author
geekrex (author)artmez2016-05-26

ya it is not been used in step 2

author
SanderJ2 (author)2016-05-16

I have an error in the arduino program

Arduino: 1.6.9 (Windows 10), Board: "SparkFun ESP8266 Thing Dev, 80 MHz, 115200"

C:\Users\sander\Downloads\blynk\blynk.ino:30:32: fatal error: BlynkSimpleEsp8266.h: No such file or directory

#include <BlynkSimpleEsp8266.h>

^

compilation terminated.

exit status 1

Error compiling for board SparkFun ESP8266 Thing Dev.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

author
geekrex (author)SanderJ22016-05-16

do you have the library instaled ?

author
SanderJ2 (author)geekrex2016-05-16

I have installed the aditional library, it's compile now.

I couldn't find it in your great tutorial,

Thanks for your support!

author
geekrex (author)SanderJ22016-05-16

Man the library is in the blynk section itself

author
SanderJ2 (author)geekrex2016-05-16

the BlynkSimpleEsp8266.h couldn't be found by the compiler.

author
achong0 (author)2016-05-12

How did you manage to get the adruino for less than 6 dollars? Or is it not really used in the project?

author
billbillt (author)achong02016-05-16

here is one even cheaper than that:

http://www.ebay.com/itm/231712302704?_trksid=p2055119.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT

author
geekrex (author)billbillt2016-05-16

Thanks for the link bill

author
ncc1702 (author)achong02016-05-16

Go to Banggood.com and search for Arduino.....Be careful or you'll be buys all kinds of stuff from them PS: GREAT PRICES... but takes 2-3 weeks for delivery ...

author
geekrex (author)achong02016-05-12

No arduino is ised

author
billbillt (author)2016-05-12

Wonderful project!..

author
geekrex (author)billbillt2016-05-12

thank you

author
ncc1702 (author)geekrex2016-05-16

Hi Can't download the PDF file... say's its not there How can I find the PDF??

author
BambiB (author)2016-05-13

Actually, "6$" is how most of the world would write it. Many Americans are provincially ignorant enough they don't understand that the 95% of the world's population who don't live in America often do things differently.

author
epicTCK (author)BambiB2016-05-14

I know that. However, this is an english standard. I am not ignorant, I have been to 14 countries and lived in 3, 2 of which were undeveloped.

author
edhayes (author)BambiB2016-05-13

I believe epicTCK was trying to be helpful and is, indeed, correct. Quite the opposite of your spiteful and patently erroneous remark. I have extensive travels and EVERY country I have visited uses the currency symbol BEFORE the amount and on rare occasions they'll use the minor, non decimal, monetary units AFTERwards like cents. Please refrain from proselytizing your xenophobic views. The folks here are very positive, sharing and apolitical in their hobbies.

author
epicTCK (author)2016-05-13

Did I really just start a flame war over a *heplful, friendly* comment? I appologise to geekrex if I offended him, but really guys?

author
geekrex (author)epicTCK2016-05-13

No man why are you apologizing , i know you intention were not to hurt, sorry i could not understand what you mean't so there was confusion , Thanks mate you made me rectified else i would never know.
Keep an eye on me cauz i am gonna rectify my mistake from now :)

author
drd001 (author)2016-05-12

WoW a hole 6 Dollars, or is it a hole dollars six....

author
epicTCK (author)drd0012016-05-13

Just trying to help out the author. Not trying to criticize. Sheesh.

author
JamesG156 (author)drd0012016-05-12

Whole 6 Dollars, not hole!

author
PeteO10 (author)2016-05-12

Who cares what side the dollar sign is on?? Why take the time to post/complain about something to trivial?

author
christopherc (author)PeteO102016-05-12

Clearly, you fail to see the irony of your post.

author
billbillt (author)2016-05-12

Actually verbatim, 6$ is more correct.. Say it: "6$ = six dollars" or "$6 = dollars six"

author
christopherc (author)billbillt2016-05-12

Actually, you are incorrect. The US Dollar sign is not a word and its expression is codified by the US.

author
REGATTE (author)2016-05-12

nice project bro

but my question is can u add many more appliances like fan and tv and blinds etc,,

for the same esp module but different relays

if so can u send me a rough circuit diagram pls

author
geekrex (author)REGATTE2016-05-12

yes tv and fan can be easily working on it .
will upload a video soon you can subscribe to get updates

https://www.youtube.com/user/pious67

author
christopherc (author)2016-05-12

As epicTCK has pointed out, the correct usage is $6. Your incorrect usage suggests carelessness and your reply to epicTCK confirms your disregard for providing correct information. Why would you do that?

About This Instructable

55,003views

752favorites

License:

Bio: So basically i am a crazy person, who loves to think the most odd way ever possible,who makes what he thinks and also let ... More »
More by geekrex:DIY 3D Printed Desk Lamp$200 DIY 3D Printer Build$1 DIY Fidget Toy
Add instructable to: