Home Automation With ESP8266 WiFi Without Using BL 0
Home Automation With ESP8266 WiFi Without Using BL 0
Table of Contents
*** If you like this project, please like, share and VOTE*** . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Step 5: No Blynk!!! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
WARNING!!! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
***Kids, stay away from live electric wires. Have an adult beside to . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
*** If you have any doubts regarding this you can always ask me in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
*** If you still have some doubts, feel free to ask in the . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Intro: Home Automation with ESP8266 WiFi without using Blynk!
Firstly, I want to THANK everyone for making me a winner in Automation Contest 2016 for this INSTRUCTABLE. So, as I promised you, here's the instructable for
controlling home appliances with ESP8266 WiFi module.
*** If you like this project, please like, share and VOTE***
ESP8266 would be cheaper than Bluetooth module (on eBay, it's just around $2)
By using the ESP8266, you can connect the module to internet and control it from any part of the world.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 3: Which ESP module I should buy?
Now there is a new question raised here Which ESP8266 module I should buy?
Well by now there are many variations of this module. Here in this instructable, I've used ESP-01 module. This was the first module introduced and also the cheapest one
so if you are a beginner to IoT, then you better go for this. The module you should buy depends on how many gpio (general-purpose-input-output) pins you need. This will
decide how many things you would be able to control through WiFi. For beginners I would recommend ESP-01 module.
Wi-Fi is the name of a popular wireless networking technology that uses radio waves to provide wireless high-speed Internet and network connections. A common
misconception is that the term Wi-Fi is short for "Wireless Fidelity", however this is not the case. Wi-Fi is simply a trademarked phrase that means IEEE 802.11x.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 5: No Blynk!!!
You can find Home Automation with esp8266 all over the Instructables but a common thing is that they control their esp through Blynk app. Well, Blynk app is also a good
thing for the ESP but there are still some cons.
Firstly, it requires an internet connection so that the app can be connected to it's server.
Second, like other methods, the Blynk app as well as the Esp would have to connect to a WiFi Hotspot.
So, people who don't have a permanent net connection or a router as a hotspot cannot use the Blynk app.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 7: Gather all parts
Here all the parts you would need in this Project are mentioned and the links from where you can buy them but I recommend that you should first try to find the
components locally because this way you could buy them faster and maybe cheaper but if they are not available locally you can always buy them with the links provided. I
always buy everything from ebay 'cause it's the cheapest. For this project you will need:
ESP8266 WiFi Module
FTDI Breakout (or ARDUINO UNO)
2x 1K Resistors
2x BC547 Transistor
2x 5v Relay
2x 1N4007 DIODE
2x Screw Teminals.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 8: Make it Breadboard Friendly
By now, you may have noticed that the ESP-01 cannot fit on breadboard so we have to make it Breadboard Friendly.
The steps are simple you just have to cut a 4 x 4 dots pcb, solder the male headers and female headers as shown in the pictures above.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 9: The Android Application
For controlling the ESP8266 directly from your mobile phone, I've created an app using MIT app inventor. You can find the app here.
First you need to connect your smartphone to esp8266 WiFi and then set ip address to your module's ip address in the app. In my case, it was 192.168.4.1
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
File Downloads
5v can kill it, so in order to convert 5v to 3.3v we have to create a voltage divider.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 12: Connect FTDI to esp!!!
Just follow the schematic to connect your esp to an FTDI breakout. Make sure to use 3.3v only on your FTDI breakout.
REMOVE THE ATMEGA 328 IC FROM THE ARDUINO BOARD BEFORE PROGRAMMING.
ARDUINO ESP8266
GROUND------------GROUND
3.3v ---------------- CHP_PWD(CHIP POWER DOWN)
TX --------------- TX
RX --------------- RX
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 14: Flash your ESP
Flash your ESP to the latest firmware.
Flasher.exe
Make sure to connect gpio 0 to ground. This will enable the flash mode in your esp.
Download the files . >>>>>The files would be in zip file so unzip them and open the esp8266_flasher.exe>>>>>You can use the .bin firmware already provided in the zip
file.>>>>>Then select your COMMUNICATION (COM) PORT, and enter 0x00080 in the other column.>>>>>>> Hit Download.
File Downloads
Go to Arduino IDE
Go to serial monitor
Select baud rate 115200
Now enter the following commands.
AT
After entering this command press SEND and if you recieve OK then you are all set to go.
You can play with the module with other AT Commands as shown in the pics above.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 16: Pre-Coding
To program the ESP from Arduino IDE, you have to install some necesary softwares.
1. Go to Arduino IDE
2. Go to File >>>> Preferences
3. In the text box of ADDITIONAL BOARDS MANAGER URL, copy and paste the path below
http://arduino.esp8266.com/package_esp8266com_inde...
5. Type esp in the searchbox and only one option would be left.
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 17: Time for coding!
After installing the ESP8266 Package,
GO TO TOOLS >>>>> BOARDS >>>>> Select the module you have (If you have the esp-01 module like me, select the GENERIC ESP8266 MODULE)
Now change the Properties according to your module in the tools menu.
File Downloads
esp8266code.ino (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'esp8266code.ino']
Step 18: Make the circuit!!!
First try to make the circuit on breadboard and then make it permanent on pcb board.
But the biggest problem is that the ESP8266 needs 3.3v and not 5v.
Don't underestimate the power of 5v, it's enough to kill your ESP module.
***Hey! strucked somewhere??? I am always there to help you in the comments below!!!***
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 19: CAUTION!!! HIGH VOLTAGE!!!
WARNING!!!
***Kids, stay away from live electric wires. Have an adult beside to do the high voltage electric work***
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Step 21: TroubleShooting!@#$%
Hmm... Not working as Expected???
Try this Trouble Shooting guide so you can make your project work like a charm!!
First check the code. Make sure that you have all the libraries installed correctly. If not then you have to download them first.
Make sure that the Connections are correct. Using the continuity function of your multimeter check for any wrong connections or short circuits!!!
Make sure you have working ESP and relays.
Make Sure you have placed the diode in correct polarity.
Make sure that you have connected your phone to esp through WiFi.
*** If you have any doubts regarding this you can always ask me in the comments below ***
When you press the button ON on the WiFi controller app, it sends a signal ON to the ESP. The module is programmed in such a way that when it receives the ON
signal, it turns it's gpio state to HIGH. By doing so, the relay gets activated and so the appliance turn ON. In the same way when you press OFF, the esp turns it's gpio
state to LOW, and so the relay turns off so the appliance. The working principle is very simple as compared to the complication in Blynk app.
*** If you still have some doubts, feel free to ask in the comment section below***
YAVNIK SHARMA
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/
Related Instructables
ESP8266 Web ESP8266-12 ESP8266 WiFi Esp8266-12 Using Analog Getting Started!
Server (Without blynk wireless Module for blynk wireless Sensors With ESP8266 Basic
Arduino) by temperature, Dummies by electric power ESP8266 by Interpreter
RuiSantos humidity DHT TonesB meter by Dcube Tech http://esp8266basic.com
11 sensor by catoplepa Ventures by mmiscool
catoplepa
Advertisements
Comments
http://www.instructables.com/id/Home-Automation-With-ESP8266-WiFi-Without-Using-Bl/