GUJARAT TECHNOLOGICAL UNIVERSITYChandkheda, Ahmedabad414020107950034379061093850B.
H. Gardi College of Engineering & TechnologyA Project ReportONTHE INTELLIGENT HOMEUnder subject ofPMMSB. E, Semester –7thELECTRONICS & COMMUNICATION ENGINEERINGSubmitted by:Group id:- 2283Sr.
Name Enrolment No.1. Jadav Pranav 1600431110042. Bhatt Kandarp 1600431110023. Vasani Krunal 150040111032Prof. Manish PatelFaculty GuideProf. Manish PatelH.O.
D. of E.C. Dept.Academic year(2018-2019)Gujarat Technological UniversityACKNOWLEDGEMENTBefore we get into thick of things I would like to add few heartfelt words for the people who are part of our team as they have been unending contribution right from the start of construction of the report. Apart from the team I am indebted to the numbers of persons who have provided helpful and constructive guidance in the draft of material. I acknowledge with deep sense of gratitude towards the encouragement In the form of substantial assistance provided each and every member of my team.
I would like to extend my sincere thanks to our guide Prof. Manish Patel for providing us the required technical guidance in the process of preparing this report.DATE: / /2018 Jadav PranavVasani KrunalBhatt KandarpCERTIFICATEThis is to certify that research work embodied in this report entitled “The Intelligent Home” was carried out by Jadav Pranav (160043111004) at B.H.
GARDI COLLEGE OF ENGINEERING & TECHNOLOGY for partial fulfilment of Bachelor of Engineering degree to be awarded by Gujarat Technological University. This research work has been carried out under my supervision and is to my satisfaction.Date: / / 2018Place: RajkotInternal guide H.O.D.Prof. Manish Patel Prof. Manish PatelSIGN: SIGN: CERTIFICATEThis is to certify that research work embodied in this report entitled “The Intelligent Home” was carried out by Vasani Krunal (150040111032) at B.
H. GARDI COLLEGE OF ENGINEERING & TECHNOLOGY for partial fulfilment of Bachelor of Engineering degree to be awarded by Gujarat Technological University. This research work has been carried out under my supervision and is to my satisfaction.Date: / / 2018Place: RajkotInternal guide H.O.D.Prof. Manish Patel Prof.
Manish PatelSIGN: SIGN: CERTIFICATEThis is to certify that research work embodied in this report entitled “The Intelligent Home” was carried out by Bhatt Kandarp (160043111002) at B.H. GARDI COLLEGE OF ENGINEERING & TECHNOLOGY for partial fulfilment of Bachelor of Engineering degree to be awarded by Gujarat Technological University. This research work has been carried out under my supervision and is to my satisfaction.Date: / / 2018Place: RajkotInternal guide H.O.D.Prof.
Manish Patel Prof. Manish PatelSIGN: SIGN: CANDIDATE DECLARATIONWe declare that the dissertation report presented here for Bachelor of Engineering (Electronics and Communication) entitled “The Intelligent Home” is my own work conducted under the guidance of Prof. Manish Patel We further declare that to the best of us knowledge, this dissertation report does not contain any part of work, which has been submitted for the award of any degree either in this university or in other university/ deemed university without proper citationTeam:Enrolment No. Name signature160043111004 Jadav Pranav 150040111032 Vasani Krunal 160043111002 Bhatt Kandarp Name of Guide Signature of GuideProf. Manish Patel TABLE OF CONTENTSACKNOWLEDGEMENTICERTIFICATE FROM COLLEGEIICANDIDATE DECLARATIONVTABLE OF CONTENTSVILIST OF FIGUREVIIABSTRACTVIIICHAPTER 1 1 TOC o “1-5” h z u 1.
1Problem summary PAGEREF _Toc528016270 h 21.2Aim and objectives of the project PAGEREF _Toc528016271 h 31.3Problem specifications PAGEREF _Toc528016272 h 31.
4Literature Review PAGEREF _Toc528016273 h 41.4.1 NodeMCU (ESP8266) PAGEREF _Toc528016274 h 41.4.
1.1 NodeMCU Specifications PAGEREF _Toc528016275 h 51.4.2 TRIAC driver circuit PAGEREF _Toc528016276 h 61.4.3 BLYNK APPLICATION PAGEREF _Toc528016277 h 81.4.
4 IFTTT APPLICATION PAGEREF _Toc528016278 h 91.5Prior art search PAGEREF _Toc528016279 h 11CHAPTER 2 102.1Observation matrix PAGEREF _Toc528016281 h 132.2Ideation Canvas PAGEREF _Toc528016282 h 142.3Product Development Canvas PAGEREF _Toc528016283 h 152.
4Empathy Mapping Canvas PAGEREF _Toc528016284 h 16CHAPTER 3 173.1CONCLUSION AND FUTURE WORK PAGEREF _Toc528016286 h 18REFERENCES 19TABLE OF FIGURE TOC h z c “Figure” Figure 1: NodeMCU (ESP8266) Development Board PAGEREF _Toc528016919 h 4Figure 2: NodeMCU Pin Decryption PAGEREF _Toc528016920 h 5Figure 3: TRIAC Driver Circuit PAGEREF _Toc528016921 h 7Figure 4: Functioning of the Blynk Application PAGEREF _Toc528016922 h 8Figure 5: Screenshot of the IFTTT Application after Creating Several Applets PAGEREF _Toc528016923 h 10Figure 6: Light Turned ON and then OFF PAGEREF _Toc528016924 h 11Figure 7: Observation matrix PAGEREF _Toc528016925 h 13Figure 8: Ideation Canvas PAGEREF _Toc528016926 h 14Figure 9: Product Development Canvas PAGEREF _Toc528016927 h 15Figure 10: Empathy Mapping Canvas PAGEREF _Toc528016928 h 16 ABSTRACTThis project presents a design and prototype implementation of new home automation system that uses Wi-Fi technology as a network infrastructure connecting its parts. The proposed system consists of two main components; the first part is the server (web server), which presents system core that manages, controls, and monitors users’ home. Users and system administrator can locally (LAN) or remotely (internet) manage and control system code. Second part is hardware interface module, which provides appropriate interface to sensors and actuator of home automation system. Unlike most of available home automation system in the market the proposed system is scalable that one server can manage many hardware interface modules as long as it exists on Wi-Fi network coverage.
System supports a wide range of home automation devices like power management components, and security components. The proposed system is better from the scalability and flexibility point of view than the commercially available home automation systems.CHAPTER:-1INTRODUCTIONProblem summaryHome, it is the place where one fancies or desires to be after a long tiring day. People come home exhausted after a long hard working day.
Some are way too tired that they find it hard to move once they land on their couch, sofa or bed. So any small device/technology that would help them switch theirs lights on or off, or play their favourite music etc. on a go with their voice with the aid of their smart phones would make their home more comfortable.Moreover, it would be better if everything such as warming bath water and adjusting the room temperature were already done before they reach their home just by giving a voice command. So, when people would arrive home, they would find the room temperature, the bath water adjusted to their suitable preferences, and they could relax right away and feel cosier and rather, feel more homely.
Human assistants like housekeepers were a way for millionaires to keep up their homes in the past. Even now when technology is handy enough only the well to do people of the society are blessed with these new smart home devices, as these devices costs are a bit high. However, not everyone is wealthy enough to be able to afford a human assistant, or some smart home kit. Hence, the need for finding an inexpensive and smart assistant for normal families keeps growing.It uses the Google Assistant, the IFTTT application, the Blynk application and the NodeMCU microcontroller as the major components along with a relay board comprising of 4/8 relays along with ULN 2803 IC.
Natural language voice is used to give commands to the Google Assistant. All of the components are connected over the internet using Wi-Fi which puts this system under the IoT.Aim and objectives of the projectThe project aims at designing an advanced home automation system using normal web server and Wi-Fi technology.
The devices can be switched ON/OFF and sensors can be read using a Personal Computer (PC) through Wi-Fi. Automation is the most frequently spelled term in the field of electronics. The hunger for automation brought many revolutions in the existing technologies. These had greater importance than any other technologies due to its user-friendly nature. These can be used as a replacement of the existing switches in home which produces sparks and also results in fire accidents in few situations. Considering the advantages of Wi-Fi an advanced automation system was developed to control the appliances in the house. Wi-Fi (Short for Wireless Fidelity) is a wireless technology that uses radio frequency to transmit data through the air. Wi-Fi has initial speeds of 1mbps to 2mbps.
Wi-Fi transmits data in the frequency band of 2.4 GHz. It implements the concept of frequency division multiplexing technology. Range of Wi-Fi technology is 40-300 feet.
Problem specificationsThe goal of this project is to develop a home automation system that gives the user complete control over all remotely controllable aspects of his or her home.The automation system will have the ability to be controlled from a central host PC, the Internet, and also remotely accessed via a Pocket PC with a Windows Mobile based application.The System will also sense the Accidental Gas leakage, water level and will notify the user by SMS.
Literature Review1.4.1 NodeMCU (ESP8266)The NodeMCU (Node Microcontroller Unit) is an open source software and hardware development environment that is built around a very inexpensive System-on-a-Chip (SOC) called the ESP8266. The ESP8266 is designed and manufactured by Express, contains all crucial elements of the modern computer: CPU, RAM, networking (Wi-Fi), and even a modern operating system and SDK.
When purchased at bulk, the ESP8266 chip costs only $2 USD a piece. That makes it an excellent choice for this system design.An open source ESP8266 firmware that is built on top of the chip manufacturer’s proprietary SDK. The firmware provides a simple programming environment based on eLua (embedded Lua), which is a very simple and fast scripting language with an established developer community.
For new comers, the Lua scripting language is easy to learn. And to add on NodeMCU can be programmed with the Android IDE too. A development kit board that incorporates the ESP8266 chip on a standard circuit board. The board has a built-in USB port that is already wired up with the chip, a hardware reset button, Wi-Fi antenna, LED lights, and standard-sized GPIO (General Purpose Input Output) pins that can plug into a bread board. Figure 1 below shows the NodeMCU development board.Figure SEQ Figure * ARABIC 1: NodeMCU (ESP8266) Development BoardFigure SEQ Figure * ARABIC 2: NodeMCU Pin Decryption1.4.
1.1 NodeMCU SpecificationsBreadboard FriendlyLight Weight and small size.3.3V operated, can be USB powered.
Uses wireless protocol 802.11b/g/n.Built-in wireless connectivity capabilities.
Built-in PCB antenna on the ESP-12E chip.Capable of PWM, I2C, SPI, UART, 1-wire, 1 analog pin.Uses CP2102 USB Serial Communication interface module.Arduino IDE compatible (extension board manager required).Supports Lua (alike node.js) and Arduino C programming language.
1.4.2 TRIAC driver circuitYou detect a point along the “phase” of the AC signal (usually near the zero-crossing). That’s the full-wave rectifier, the FET B2, and an opto-isolator, with the current-limited AC driving the opto input.The opto-isolators keep the high voltage away from you and the low-voltage control circuitry (i.e.
the Arduino). If you are building your own power supply, you can use the isolated transformer secondary to get the timing/phase and eliminate one of the opto-isolators.That isolated detected phase/timing signal goes to an Arduino input. An Arduino output drives the other opto-isolator, which drives the TRIAC (A1). After being triggered by the phase/timing signal, there is a delay (i.e.
0-10mS @ 50Hz). Then a short pulse into the output opto-isolator (IC1) “fires” the TRIAC somewhere along the AC half-cycle. (The pulse has to be “short” because it cannot extend into the next AC half-cycle).The actual zero-crossing is difficult to detect, and the peak is difficult too… So it’s generally best to find a point somewhere in the middle (around 45 degrees). With a microcontroller, it’s easy to compensate since you know the line frequency.
Also with a microcontroller, you don’t need full-wave rectification. When you find one zero-crossing point (or trigger point) there is another one 180 degrees later (10 mS later at 50Hz).You’ll probably have to experiment with the timing/delay to get it to work right near zero-speed and near full-speed. Figure SEQ Figure * ARABIC 3: TRIAC Driver Circuit1.4.
3 BLYNK APPLICATIONBlynk is a Platform with iOS and Android apps to control Arduino, Raspberry Pi, NodeMCU and several other boards over the Internet. Blynk was designed for the Internet of Things. It can control hardware remotely, it can display sensor data, it can store data, visualize it and do many other cool things.
Blynk App setup is required; we set it up as per the requirement. We begin by creating a project and then selecting the microcontroller we are using. After which we create the toggle buttons for each relay associated with the digital pins of the microcontroller. Once this is done, Blynk sends an authentication token to the registered email id for this particular project. This token should be noted and saved for its use while programming the NodeMCU and setting up the IFTTT application.Figure SEQ Figure * ARABIC 4: Functioning of the Blynk Application1.
4.4 IFTTT APPLICATIONIFTTT derives its name from the programming conditional statement “if this, then that.” IFTTT is both a website and a mobile app that launched in 2010 and has the slogan “Put the Internet to work for you”. The idea is that you use IFTTT to automate everything from your favourite apps and websites to app-enabled accessories and smart devices.
What the company provides is a software platform that connects apps, devices and services from different developers in order to trigger one or more automations involving those apps, devices and services. Here, IFTTT application is used to bridge the gap between the Google Assistant commands and the Blynk app. Setting up the IFTTT application first requires logging in after which we need to create an applet and then “This”, i.
e. the trigger, here we select Google Assistant and then we will type in the commands to which the Google Assistant should respond and to this command it should control the appliance/relay associated with it. The response command from the Goggle Assistant can also be typed in as desired.
After configuring the trigger, i.e. “This” of the application we need to configure the “That”. What should be done once the Google Assistant hears the command which we just configured? This is decided by setting “That” of the app. We click “That” and then select web hooks and click connect. Web hooks will allow us to send commands to the Blynk Server. Now, in the URL we type the IP address of the Blynk server followed by the Authentation token sent by the Blynk and then the pin number of the microcontroller to which the device to be controlled is connected.
The URL should be in the following format:http://22.214.171.124/AuthToken/pin/CorrespondingDigitalPinNo.Then in the method we select ‘PUT’ and the content type is ‘Application/JSON’ and in the body we write “1” to turn ON and “0” to turn OFF. This creates the action for the trigger i.e.
the Google Assistant command. The action taken by it is simply sending a message to the Blynk app to either turn ON or OFF the concerned connected device.Finally, the microcontroller is programmed with the actions it needs to do once it receives the signal from the Blynk application. Before that, the Blynk and the microcontroller should communicate and the communication is done via the internet and since the microcontroller, NodeMCU comes with inbuilt Wi-Fi module, it is programmed to connect to the desired network once plugged in. ‘C’ language is used to program the microcontroller and is programmed in the Arduino IDE.Figure SEQ Figure * ARABIC 5: Screenshot of the IFTTT Application after Creating Several AppletsPrior art searchThe result was positive and the system responded well. The diagram below shows the complete prototype implementation of the proposed system.
Figure SEQ Figure * ARABIC 6: Light Turned ON and then OFFCHAPTER:-2DESIGNObservation matrixFigure SEQ Figure * ARABIC 7: Observation matrixIdeation CanvasFigure SEQ Figure * ARABIC 8: Ideation CanvasProduct Development CanvasFigure SEQ Figure * ARABIC 9: Product Development CanvasEmpathy Mapping CanvasFigure SEQ Figure * ARABIC 10: Empathy Mapping CanvasCHAPTER:-3SUMMARYCONCLUSION AND FUTURE WORKThe aim of this paper was to propose a cost effective voice controlled (Google Assistant) home automation controlling general appliances found in one’s home. The approach discussed in the paper was successful as GACHA’s (Google Assistant Controlled Home Automation) design was successfully implemented. This system is highly reliable and efficient for the aged people and differently abled person on a wheel chair who cannot reach the switch for the switching ON/OFF the device and are dependent on others.
The future scope for GACHA can be huge. There are many fators to improve on to make GACHA more powerful, intelligent, scalable, and to become better overall for home automation. For example, controlling the speed of the fan, more number of devices can be integrated, like a coffee machine, air conditioner etc. To make the system respond more faster own private Blynk server can be made.
Well, no system is ever perfect. It always has a scope for improvement. One just needs to put on a thinking cap and try and make the system more better.REFERENCES1 IFTTT: https://ifttt.com/discover https://www.pocketlint.com/SmartHome/SmarHomenew s 2 Blynk : https://www.blynk.cc/ https://docs.blynk.cc/ 3 NodeMCU: https://nodemcu.readthedocs.io/en/master https://iotbytes.wordpress.com/nodemcupinout/ 4 Google Assistant: https://assistant.google.com/intl/en_in/ https://www.pocketlint.com/Apps/Appsnews/Googleapp news 5 IoT: https://internetofthingsagenda.techtarget.com/definition /IoT-device 6 ULN2803 IC working: http://www.gadgetronicx.com/working-of-uln2803-ic/ 7 Webhooks: https://webhooks.pbworks.com/w/page/13385124/Fro ntPage 8 Application/JSON: https://www.json.org/ 9 Arduino IDE: https://www.arduino.cc/en/Guide/Environment 10 Wkipedia: https://www.wikipedia.org/