Skip to main content

Voice Controlled Home Automation and Home Security System

 Abstract— In this paper, Google assistant has been used to control the light, fan, and water pump by saying Ok Google, turn the light ON or OFF. Then IFTTT interprets the message and can send it to Blynk’s dashboard as an understandable command to the created feed. The proposed prototype uses to control home appliances anytime from anywhere in the world and efficiently utilize power by controlling appliances properly by an Android OS smartphone. Blynk app has been used to analyze data about temperature, humidity, fire, and water level to control home appliances. The voice commands for Google assistant have been added through the IFTTT website linked with Blynk.

Keywords— NodeMCU, Blynk app, Google Assistant, IFTTT website, DHT11 Sensor, PIR Sensor, Ultrasonic Sensor, Flame Sensor, and Relay Module

I. INTRODUCTION

With the advancement of technology, the need for efficient controlling is more as it optimizes performance and saves unnecessary wastage of power. Home automation allows us to control household appliances like lights, motors, fans, etc. It also provides home security and emergency system to be activated. The proposed prototype uses a NodeMCU board with the internet being remotely controlled by an Android OS smartphone. Node MCU is the heart of this system and can perform as a micro web server and it acts as an interface for a wide range of hardware modules. It is also used for monitoring by sensing and analyzing data about temperature, humidity, water level, and fire. This paper explains the various possibilities of connecting home appliances and make it easier to human life much easier. IoT plays a virtual role in creating smart environments by connecting to the internet. Here we can use Google Assistant to control our home appliances by giving common language voice directions and with the assistance of the IFTTT, (If This Then That) application the directions are decoded and afterward sent to the Node microcontroller. Blynk app which creates virtual switches linked with IFTTT used to analyze data of all the appliances are connected over the internet using Wi-Fi which puts this system under the IoT. This system also works for security purposes, if any inevitable incident happens, the user will immediately receive an alert message/mail-in their smartphone.

II. LITERATURE REVIEW

With the advent of smart systems, day by day people are attracted to control home appliances. Numerous investigations carried out for a better living experience. A system reported recently that used voice and gesture to control turning on/off the light, closing/opening of curtains, TV, and fan or AC within the living spaces. The system monitors the healthcare system for the elderly citizens like heart rate and body temperature and supports the real-time activity [1]. The internet-based smart remote-control system adapts power consumption to available power resources for home automation according to user comfort and cost criteria [2]. Fire detection systems have been reported with the smart concept of fire alarm, which sends a notification to mobile and mail about the accident-prone area, and also the information needed to alert the fire station about the incident [3]. For home automation, various approaches reported such as monitoring of important process variables from a distributed control system (DCS) [4], use of speech to interact remotely with the home appliances [5], sensor interfacing NodeMCU and Blynk app [6,9] Ultrasonic sensor interfacing [7]. The effort found to reduce the human intervention to reduce the percentage of water wastage in agricultural farms using a water level controller with wireless technology [8]. The user must be able to communicate directly with the board through an Internet web browser; the board communicates with the user using the browser and email/SMS messages [10]. Increasing advanced home networking infrastructures are giving rise to a multitude of new applications including home automation and home security [11]. IoT deals with a large quantity of data received from different sensors which are deployed in the smart environment, sufficient care has to be taken for efficiently maintaining, securing, and storing this collected data [12]. Remote monitoring through mobile phones involving the use of spoken commands. The spoken commands are generated and sent in the form of text SMS to the control system and then the microcontroller on the basis of SMS takes a decision of a particular task [13]. The design and implementation of a low-cost but yet flexible and secure Internet-based home automation system. The communication between the devices is wireless. The protocol between the units in the design is enhanced to be suitable for most of the appliances [14]. Effective use of IoT for Environmental Condition Monitoring and Controlling in Homes. Here also provide fault detection and correction in any devices connected to this system automatically [15].

III. CIRCUIT DESIGN

The proposed model has two major parts of the circuit design procedure i.e., software and hardware design. In the block diagram as shown in Fig. 1, the hardware is designed by arranging microcontroller and sensors whereas software design includes programming codes that are written and uploaded in the microcontroller. The designed system incorporates a microcontroller connected to sensor modules for monitoring and controlling

Fig 1 Block Diagram
household devices. The system has been modeled to monitor data from four sensor modules and control three loads by using a mobile application. In the proposed circuit the NodeMCU (Microcontroller Unit) reads sensor data and sends them to mobile applications for processing. It also receives commands from a mobile application to control home appliances through a relay module according to the user's requirement. Internet server-Blynk mobile application in smartphone and NodeMCU communicated by using Blynk server. Bidirectional transfer of data between NodeMCU and mobile app occurs through this server. Google assistant has been used to use voice control in this project. Blynk account, a cloud-based free IoT web server has been used to create virtual switches. It has been also linked to IFTTT (IF This Then That) website which is used to create if-else conditional statements. Also, the voice commands for Google assistant have been added through the IFTTT website. As shown in figure 3 the switching modules have been used for turning the light on/off, turning the fan on/off, and turning the water pump on/off. The output signal from NodeMCU activates and deactivates the relay to perform switching operations. The circuit works on the AC phase chopping principle to control fan speed. In this paper, we are
Fig 2 Circuit Diagram
designing an IoT-based smart fan module too. To sense the room temperature, we have used a DHT11 temperature sensor. According to the room temperature sensor output, the NodeMCU Microcontroller controls the speed of the fan and also used a PIR sensor for detecting human motion to turn ON or turn OFF the Fan. Here a pull-up resistor of 5KΩ between VCC and data line to keep it HIGH for proper communication between DHT11 sensor and NodeMCU. An ultrasonic sensor HC-SR04 have been used to sense the tank water level, which uses sound waves to calculate the distance as s=0.0343*(T/2), where 0.03430 is the speed of sound in air in cm/microsecond and T is the time taken for transmission and reception of reflected sound wave. The Blynk App has widgets in it like a display for displaying messages or distance or any parameter, which can be done using the NodeMCU command. The fire sensor is connected at one pin to give the digital input the and Buzzer is connected at the other pin to get digital output from the NodeMCU. If the fire is detected by the fire sensor, then it gives “0” turns on the buzzer, sends a notification to the mobile, and a mail to the attached mail address. The components required for the overall implementation of this project are NODEMCU, (ESP8266), DHT-11 Sensor, PIR Sensor, Ultrasonic Sensor, Flame Sensor, Buzzer, Relay Module, Mobile phone, Power supply board, Blynk (mobile application), IFTTT (Mobile application).

IV. FLOWCHART


Fig 3 Flowchart

Fig. 3 shows the flowchart of the software design part. Google assistant receives the voice command from the user. IFTTT converts the google command into suitable logic to be processed by the Blynk application. Resulting information processed by the NodeMCU. Relay is driven by the command from NodeMCU. On the other hand, sensor data processed by NodeMCU has been sent to the relay module for appropriate output generation.

V. RESULTS AND DISCUSSION

The main purpose of this project is to prevent unnecessary wastage of power and water. In this paper, we present the design and implementation of a low-cost but yet flexible and secure Internet-based home automation system. As shown in Fig. 4 Display widget shows sensor reading presently fetched from

Fig 4 Blynk
NodeMCU via Blynk server and the button widget is clicked to change the state of appliances. The voice commands are generally done by IFTTT which connects Google Assistant to the Blynk App. Then it is decoded, and the commands given through the Google Assistant are sent to appliances through the Node microcontroller. In case if the device has not been set up, Blynk App gives feedback through IFTTT to Google Assistant. When at home or outside, as shown in fig 5 Users can also turn the light, fan, and motor on and off sending a voice message through Google Assistant. All the persons in that family can share the Blynk app so that, when one person switches a device either fan, light, and motor, the remaining persons will get this information and are aware of the usage of the respective equipment. When the person enters the room, the PIR sensor sends a notification to the android mobile. In this way it is used to detect any suspicious action, providing security for the people in the home. In general, humidity at room temperature must be around 60% and the temperature is taken in between 27°C and 30°C. Other than the range of temperatures will affect human health who live in that room. The DHT11 temperature sensor detects and
Fig 5 Google Assistant
provides temperature and humidity values in the room and quickly and adjusts the speed of the fan accordingly with the gradual increase and decrease of the temperature to maintain a healthy atmosphere. To control the usage of water, the pump is on when water-level reaches a predefined height, the user gets a notification in his phone which informs him about the high water level. If the user does not switch off the pump and there is a further rise of water-level, then the pump is turned off automatically by NodeMCU when water-level rises to a certain height. Similarly, the motor turns on whenever the water level in the tank reaches below a certain prescribed level after making sure that the water level in the sump is sufficiently above the prescribed level. To prevent a fire, a threshold value of 600 ppm was set, and if it was exceeded it would notify the user on the Blynk app. The surrounding humidity and temperature values were obtained. The temperature ranges the device could measure were from 0°C to 50°C and humidity ranging from 20% to 90%. When a fire will near up to a maximum range of 100cm Flame Sensor detected the fire and sends a notification to the mobile and a mail to the attached mail address and the fire alarm responded.

VI. CONCLUSION

The proposed prototype presented is a low-cost, flexible to operate and monitoring system using Node MCU Board with internet and various sensors remotely controlled by Android OS smartphone. In this model, the NodeMCU microcontroller has been used as an interface between user and hardware components. It has been programmed and connected to several components according to the requirements. A micro web server which is known as IFTTT has been used as an application layer for the communication between remote users and home devices, security systems. This entire system of communication is enabled through the internet. Notifications are sent to users through the app Blynk app installed on the smartphone. Users can operate wirelessly to control and monitor home appliances that can be automated by using several sensors like temperature sensors, PIR, etc. It can further be upgraded by using different sensors for different home appliances. Since smartphones are widely used nowadays, this user-friendly system can be used for benefitting the mass. The circuit used for controlling AC fan speed can also be implemented in AC light dimming applications. The features of an automatic turn-off and sending emergency notifications can be very useful. It can be automatically turned OFF and ON when the room temperature is lowered to a specified value the fan can be turned off automatically. In the above case, notifications can also be sent to users through users Blynk app. Users can even give voice commands through the Google Assistant, connecting with the IFTTT to the Blynk App. Mobile application development companies with dedicated teams are working extensively on IoT-based applications that are connected to the cloud. Not only old-aged or physically challenged people can be benefitted using this proposed model, but any person with a smartphone can monitor and control the electronic devices without any difficulties. So, by adopting the proposed system, we can alert the surrounding people and also inform the firemen regarding the accident along with the accurate location of the accident area specified. Hence this is an era of automation using the proposed system for the environment that ensures the safety of all with reduced electrical power consumption.

REFERENCES

[1] Basanta, H., Huang, Y.P., Lee, T.T., “Using voice and gesture to control living space for the elderly people”, 2017 International Conference on System Science and Engineering (ICSSE). IEEE, pp. 20–23 (2017).

[2] Golzar, M.G. and Tajozzakerin, H.R. “A New Intelligent Remote-Control System for Home Automation and Reduce Energy Consumption” 4th Asia International Conference on Mathematical/Analytical Modelling and Computer Simulation, Kota Kinabalu, 26-28 May 2010, pp. 174-180.

[3] Ala Rohika Reddy , M Vara Raghava Sai , Jollu Vamsi , C.S.K Raju, “Automatic Fire Detection and Alert System Journal of Xi'an University of Architecture & Technology”, ISSN No : 1006-7930 Volume XII, Issue V May 2020, pp. 2109-2117.

[4] Tan, Lee and Soh “Internet based Monitoring of Distributed Control Systems”, Energy and power Engineering. Publisher: IEEE Transactions on Education, Place: New Jersey, Country: USA, Year: 2002, Vol: 45, Iss. No. 2., pp. 128-134.

[5] Potamitis, I., Georgila, K. Fakotakis, N., & Kokkinakis, G “An Integrated system for smart home control of appliances based on remote speech interaction”, 8 th European conference on speech and communication technology, Publisher: World Journal control science and Engineering, Place: Geneva, Country: Switzerland, Year: 2003, Vol. No: 2, Iss. No.1, pp. 2197-2200.

[6] Mane, M. A., Pol, M. P., Patil, M. A., and Patil, M;. “IOT based Advanced Home Automation using Node MCU controller and Blynk App.”; 13th Intl. Conf. on Recent Innovations in Science, Engineering and Management, Feb. 2018, pp. 178-183.

[7] Ishrat T, Rahaman M A, and Ahammad A “Smart fan for human tracking” 2014 9th Int. Forum on Strategic Technol.(IFOST), Cox's Bazar pp. 124-7.

[8] Suraj S, Bharath V, Sridhar N K, “Wireless Automatic Water Level Controller”, Third international Conference on Electrical, Electronics, communication, Computer Technologies and optimization Techniques (ICEECCOT), pp. 14-15, December 2018.

[9] P. S. Nagendra Reddy, K. T. Kumar Reddy, P. A. Kumar Reddy, G. N. Kodanda Ramaiah and S. N. Kishor, "An IoT based home automation using android application," 2016 International Conference on Signal Processing, Communication, Power and Embedded System (SCOPES), 2016, pp. 285-290, doi:10.1109/SCOPES.2016.7955836.

[10] E. M. C. Wong, “A phone-based remote controller for home and office automation”, IEEE Transactions on Consumer Electronics, vo1.40, pp. 28– 34, 1994

[11] S. -M. Tsai, P.-C. Yang, S. -S. Wu, and S. -S. Sun, “A service of home security system on intelligent network”, IEEE Transactions on Consumer Electronics, vol. 44, pp. 1360–1366, 1998

[12] Kumar Mandula, Ramu Parupalli, CH.A.S.Murty, E.Magesh, Rutul Lungariya, “Mobile based Home Automation using Internet of Things(IOT)”. International Conference on Control,Instrumentation,Communication and Computational Technologies (ICCICCT) ,pp. 340-343, 2016.

[13] Vasif Ahmed, Naresh P. Jawarkar, "Design of Low Cost Versatile Microcontroller Based System Using Cell Phone for Accident Detection and Prevention", Emerging Trends in Engineering and Technology (ICETET) 2013 6th International Conference on, pp. 73-77, 2013

[14] Alkar, A. Z., & Buhur, U. (4th nov 2005) “An Internet Based Wireless Home Automation System for Multifunctional Devices” IEEE Transactions on Consumer Electronics. Vol 51 pp.1169-1174.

[15] Vishwajeet Hari Bhide, Dr.Sanjeev Wagh,” i-Learning loT: An Intelligent Self Learning System for Home Automation Using loT”, International Conference on Communication and Signal Processing,, pp. 1763-1767, 2015.

Comments

Popular posts from this blog

Revolutionize Power Management with This Scalable IoT Energy Meter System

⚡ IoT-Based Prepaid Energy Meter ⚡ IoT-Based Prepaid Energy Meter with RF Mesh and Firebase Cloud Managing power consumption efficiently is critical, especially in shared environments like hostels, rental homes, and industrial setups. This project presents a wireless prepaid energy metering system using nRF24L01+ , ESP8266 , PZEM004T , and Firebase Firestore . The system allows real-time energy monitoring, cloud-based recharge, and automatic cut-off when balance is depleted. 🔧 System Overview Child Node: Arduino Nano + PZEM004T + Relay + nRF24L01+ Gateway (Parent Node): ESP8266 (NodeMCU) + nRF24L01+ Cloud Backend: Firebase Firestore (NoSQL) Key Features ⚡ Real-time energy measurement (Voltage, Current, Power, kWh) 💰 Prepaid balance logic with relay cut-off 📶 RF communication in scalable tree topology ☁️ Cloud integration with Firebase Firestore 📱 Recharge via Web/App or Firebase Console 📶 Multi-Level RF Topology The sys...

AUTOMATIC ROOM LIGHTING SYSTEM

🔆 Automatic Room Lighting System 🔆 Automatic Room Lighting System Date: October 30, 2021 Purpose: Energy conservation through automation using IR sensors and a microcontroller. 🔰 Introduction Electricity is an indispensable part of modern life. However, with rising energy demands and depleting non-renewable resources, energy conservation has become a necessity . One major area where energy is often wasted is lighting—many people forget to switch off lights when leaving a room. To address this, we’ve designed an Automatic Room Lighting System , which uses IR sensors and a microcontroller (ATmega32) to automatically switch lights ON or OFF based on room occupancy. This system not only helps reduce electricity bills but also promotes responsible energy usage. 🧠 Working Principle Entry: Sensor 1 → Sensor 2 → Light ON + Counter++ Exit: Sensor 2 → Sensor 1 → Counter-- → Light OFF if Count = 0 This project is based on a bi-directional human detectio...