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

by geekrex in Circuits > Arduino

78122 Views, 758 Favorites, 0 Comments

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

IMG_2733.jpg
IMG_2734.JPG
IMG_2738.JPG
IMG_2727.JPG
IMG_2729.JPG
IMG_2725.JPG

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

Ingredients

IMG_2686.JPG
IMG_2669.JPG
IMG_2661.JPG
IMG_2660.JPG
IMG_2697.JPG

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

Programming the Esp8266

ESP8266_bb.jpg
images (1).jpg
IMG_2666.JPG
IMG_2667.JPG
IMG_2671.JPG

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

Connecting to Blynk Server

Screenshot_2016-05-09-22-04-14.png
Screenshot_2016-05-09-22-05-25.png
Screenshot_2016-05-09-22-05-42.png
Fullscreen capture 09-May-16 103134 PM.bmp.jpg

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/...

Downloads

Making the Board for the Esp 8266

Untitled Sketch_144b.jpg
IMG_2741.JPG
IMG_2744.JPG
IMG_2745.JPG
IMG_2708.JPG
IMG_2712.JPG

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)

Creating the Enclosure

Fritzing 09-May-16 113502 PM.jpg
Fritzing 09-May-16 113100 PM.jpg
Fritzing 09-May-16 113106 PM.jpg
IMG_2701.JPG
IMG_2711.JPG

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.

Putting Everything Inside

IMG_2716.JPG
IMG_2715.JPG
Fritzing 09-May-16 114515 PM.jpg
IMG_2746.JPG
IMG_2739.JPG

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/