<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" article-type="research-article" dtd-version="1.2" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">ijeap</journal-id>
<journal-title-group><journal-title>International Journal of Engineering and Applied Physics</journal-title><abbrev-journal-title>IJEAP</abbrev-journal-title></journal-title-group>
<issn publication-format="electronic">2737-8071</issn>
<publisher><publisher-name>International Journal of Engineering and Applied Physics</publisher-name></publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">38</article-id>
<title-group><article-title>Software Design of a Voice Controlled Home Automation System</article-title></title-group>
<contrib-group><contrib contrib-type="author" corresp="yes"><name><surname>Lawania</surname><given-names>Priyanshu</given-names></name><xref ref-type="aff" rid="aff1"/><email>priyanshulawania@gmail.com</email></contrib><contrib contrib-type="author"><name><surname>Manikalyan</surname><given-names>Balasa</given-names></name><xref ref-type="aff" rid="aff1"/></contrib><contrib contrib-type="author"><name><surname>Lokesh</surname><given-names>Ravuru Venkata</given-names></name><xref ref-type="aff" rid="aff1"/></contrib><contrib contrib-type="author"><name><surname>Jaswanth</surname><given-names>Merugumala</given-names></name><xref ref-type="aff" rid="aff1"/></contrib></contrib-group>
<aff id="aff1">School of Electrical and Electronics Engineering, Lovely Professional University, Jalandhar-Delhi, G.T. Road, Phagwara, Punjab (India)-144411</aff>
<pub-date publication-format="electronic" date-type="pub"><day>25</day><month>5</month><year>2021</year></pub-date>
<volume>1</volume><issue>2</issue><fpage>199</fpage><lpage>204</lpage>
<history><date date-type="received"><day>29</day><month>12</month><year>2020</year></date><date date-type="rev-recd"><day>20</day><month>2</month><year>2021</year></date><date date-type="accepted"><day>26</day><month>2</month><year>2021</year></date></history>
<permissions><copyright-year>2021</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><license-p>This is an open access article under the CC BY 4.0 license.</license-p></license></permissions>
<self-uri xlink:href="https://ijeap.org/ijeap/article/view/38"/>
<abstract><p>Technology is limitless, the more the problems, the more opportunities, and solutions it provides. In the Post COVID-19 pandemic world, one of the potential areas where companies are willing to invest is Automation, generating a huge Return-on-Investment. One such appealing area is home automation. The daily use equipment such as light switches are touched ever so frequently by the people in the houses and offices amounting to extra danger. Interaction with these areas can actually be avoided entirely by using home automation. Catering to the future needs, our paper presents an idea of home automation system where appliances can be controlled using speech recognition technology. It requires an android app to provide voice command to the control circuit. The control circuit comprises of Arduino Uno which acts as a user interface controlling the switching of appliances. Commands are fed into Arduino with the help of a Bluetooth model which receives voice commands from the android app.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Home Automation</kwd><kwd>Voice Control</kwd><kwd>Voice Commands</kwd><kwd>Android App</kwd><kwd>Arduino Uno</kwd><kwd>Bluetooth HC-05 Module</kwd><kwd>Laptop</kwd><kwd>Smartphone</kwd><kwd>COVID-19</kwd></kwd-group>
</article-meta>
</front>
<body>
<sec id="sec1">
  <title>1. INTRODUCTION</title>
  <p>As the world moves towards globalization, different ideas have also travelled across continents along with man and material. Cutting-Edge Technology is the most significant outcome of globalization. Automation is an emerging technology and a dynamic concept. It is one of the most advanced technology that has the potential to thrive in the modern world. Industry 4.0 has further attracted the world towards automation.</p>
  <p>Home automation system, on the other hand refers to the automatic and electronic control of household features, activity, and appliances [3]. Post pandemic world is expected to experience an unhindered upsurge of this technology in the global market. The main motto behind the idea of home automation is to consume less electricity, reduce human efforts and to provide a contactless solution.</p>
  <p>In this paper, we have designed a model of Home Automation System in Proteus 8 Professional software where we are controlling home appliances using voice commands provided through an android mobile application. Though any number of appliances can be controlled by the system, we are determined to control some home appliances like a tube light, a fan, and a night lamp using voice commands via a smart phone.</p>
  <p>The status of the appliances will be shown in the mobile phone. In this project we have also used MIT App Inventor, Arduino 1.6.5 software.</p>
</sec>
<sec id="sec2">
  <title>2. SOFTWARE</title>
  <p>Proteus 8 Professional, Arduino 1.6.5, MIT App Inventor</p>
</sec>
<sec id="sec3">
  <title>3. SYSTEM COMPONENTS</title>
  <p>In the system design, we have a Bluetooth module, and relays interfaced with an Arduino Uno. The connections are made and all the appliances are attached to the respective relays. As a result, all the appliances are controlled by providing voice commands.</p>
  <sec>
    <title>3.1. Arduino UNO (ard-1)</title>
    <p>The Arduino consists of both a physical programmable circuit board and a piece of software, or IDE that runs on the computer, used to write and upload computer code to the physical board [1]. In the proteus software, we have used Arduino UNO model (ATMEGA328P-PU). It has a clock frequency of 16Mhz. We need to generate a hex file by compiling an Arduino code using Arduino IDE software. The hex file is inserted in the Arduino board.</p>
    <p>The appliances are connected via the relay boards to pin numbers 11, 12 and 13 of the Arduino Uno. It compares the voice commands with its data and performs the required function. When the matching text is detected, the corresponding pin number is given a high or low output signal to switch the appliance on and off respectively [2].</p>
  </sec>
  <sec>
    <title>3.2. Bluetooth (hc-05)</title>
    <p>Here, we have used the Bluetooth Module HC-05 v1. It has 6 pins namely,</p>
    <disp-quote>
      <p>• Vcc - powers the module</p>
      <p>• GND - connects to system ground</p>
      <p>• RX - receives signal data. It is connected to TX of Arduino</p>
      <p>• TX - Transmits serial data. It is connected to the RX of Arduino</p>
      <p>• Key - Toggles b/w Data mode and AT command mode</p>
      <p>• State - connected to onboard LED. Acts as a feedback</p>
    </disp-quote>
    <p>The Module will be connected to the android application and voice commands will be fed into it. It will transfer the commands to the Arduino Board for final processing.</p>
  </sec>
  <sec>
    <title>3.3. RELAY</title>
    <p>We have used single pole animated relay models in the system working at 12V. It works as an electromechanical switch which is operated by the signals provided by the Arduino board. Various appliances are connected to the respective relay models. The relay is used to toggle the appliances ON/OFF as per the signal from the Arduino. Any number of appliances can be connected to this model.[2] Our system also contains various other components like Lamp, LED, Motor and few other connector components<bold>.</bold></p>
  </sec>
</sec>
<sec id="sec4">
  <title>4. IMPLEMENTATION</title>
  <p>The implementation would be done in four phases. In the <italic>Phase 1</italic>, the control circuit would be designed using the Proteus software. In <italic>phase 2</italic>, an Android app would be developed using the MIT App Inventor. In the <italic>Phase 3</italic>, the Arduino code would be developed using Arduino software. In <italic>Phase 4</italic>, the system designing is done by interfacing all the software.</p>
  <sec>
    <title>4.1. Phase 1</title>
    <p>We did the project by using the Proteus 8 Professional software. The Arduino UNO is attached to the Bluetooth HC-05 module. The output pins of Arduino UNO are attached to the switches via relays. We have connected three output pins to three switches representing three different appliances.</p>
    <disp-quote>
      <p>• Pin11 - a tube light [LED-BIRY]</p>
      <p>• Pin 12 - a fan [a DC motor]</p>
      <p>• Pin 13 - a lamp, using 3 different relays [ACTVRLY]. All other connections are done as shown in the diagram.</p>
    </disp-quote>
    <fig id="fig1"><label>Figure 1</label><caption><p>Proteus design of the system</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image001.png" /></fig>
  </sec>
  <sec>
    <title>4.2. Phase 2</title>
    <p>Now, with the help of MIT App Inventor, an android based app is designed which will ensure the connectivity to the Bluetooth. The app called <italic>VoiceControlledHomeAutomation</italic> is depicted below.</p>
    <fig id="fig2"><label>Figure 2</label><caption><p>Android Bluetooth app</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image002.png" /></fig>
  </sec>
  <sec>
    <title>4.3. Phase 3</title>
    <p>We have used <italic>Arduino 1.6.5</italic> software for writing the code for Arduino. The code is written keeping in mind the respective output pins to which the switches are connected. Here, our paper provides a new paradigm by writing a smart code where we are providing 20 different sets of voice commands for the switching of the 3 equipment.</p>
    <p>By using this code, we can:</p>
    <disp-quote>
      <p>• Switch ON and OFF any of the appliance.</p>
      <p>• Switch ON and OFF any combination of two of the appliances.</p>
      <p>• Switch ON and OFF all the appliance. The sequence of appliances doesn’t matter.</p>
    </disp-quote>
  </sec>
  <sec>
    <title>4.3. Phase 4</title>
    <p>This is the last phase where we interface all the above-mentioned software to each other. Here, Firstly the Arduino code is compiled and its hex file is fed into the Arduino board in proteus. Secondly, the Serial port (COM) of Bluetooth is set as same as the laptop’s. The proteus simulation is started.</p>
    <p>Now, the Android application is launched on the smartphone and the required voice commands are given by the user. It converts the commands in the form of a string and this string is received by the Bluetooth model which converts it into text. The text is transmitted to the Arduino board and it processes the information and forwards the instructions to the respective relay boards.</p>
    <p>The application searches for the Bluetooth device by clicking on the ‘Search Bluetooth Connection’. It then shows the available Bluetooth devices where the user is required to select the Bluetooth of the laptop for connection. Once the Bluetooth client gets connected to the Bluetooth model the application shows, connection established’.</p>
    <p>The user now, is required to click on the mic symbol and the application launches the voice recognizer. It reads the voice commands and converts the audio signal into a string. The string is received by the Bluetooth model in proteus which forwards to the Arduino board in the form of text. The Arduino board uses the port in serial mode. After analyzing the data, it decodes the input value and sends a signal to the relay circuit. The respective appliance gets switched as per the wish of the user.</p>
    <p>The setup of the system is shown in the images below.</p>
    <fig id="fig3"><label>Figure 3</label><caption><p>Scanning for Bluetooth connections</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image003.png" /></fig>
    <p>For establishing the Bluetooth connection, the correct Bluetooth module name is to be selected from the list. This part is very crucial for the system to work. The user needs to be attentive while choosing the correct Bluetooth device.</p>
    <p>If the user’s selection is correct, the app shall appear as in the following figure.</p>
    <fig id="fig4"><label>Figure 4</label><caption><p>Connection established</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image004.png" /></fig>
    <p>While providing the voice commands, sequence does not matter i.e., either it can either be ‘lamp and fan’ or ‘fan and lamp’, All commands would work properly. This is one of the unique features of our system. Various voice command strings in the application are illustrated below.</p>
    <fig id="fig5"><label>Figure 5</label><caption><p>Turning on fan</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image005.png" /></fig>
    <p>As soon as this command is provided to the application, it sends the signal to the Bluetooth model in the proteus which reverts the message in string form to the Arduino. Here the processing of the command is done and the operation is performed.</p>
    <fig id="fig6"><label>Figure 6</label><caption><p>Turning on all</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image006.png" /></fig>
    <fig id="fig7"><label>Figure 7</label><caption><p>Turning off Lamp and fan</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image007.png" /></fig>
  </sec>
</sec>
<sec id="sec5">
  <title>5. RESULT</title>
  <p>Based on the commands, the system would automatically switch ON/OFF the respective appliances by toggling the appliance’s relay board status to HIGH/LOW as depicted in the figure.</p>
  <fig id="fig8"><label>Figure 8</label><caption><p>The working of the system</p></caption><graphic mimetype="image" mime-subtype="png" xlink:href="image008.png" /></fig>
  <p>This is how the system gets implemented and works in the proteus software. The system can be implemented and used in the hardware mode at the houses, offices, and public areas</p>
</sec>
<sec id="sec6">
  <title>6. CONCLUSION</title>
  <p>The traditional task of manually operating home appliances is tedious and can be fatal also. In this situation operating home appliances wirelessly adds a crunch of technology. Furthermore, controlling this web of connections through speech has a different aura altogether.</p>
  <p>The existing Voice controlled Home Automation systems follow a particular trend of a fixed voice commands. However, if a different set of command is provided, the system becomes obsolete. Our project proposes a unique solution to this issue. In our project, the user can also provide commands by reversing the home appliance sequence and the system will respond positively.</p>
  <p>The implementation of the system is done in software mode by using Proteus 8 Professional. The system is cost efficient and user friendly. It consists of components like Arduino UNO, Bluetooth module (HC-05), relay modules and other unique appliance modules. The project will enable us to control each and every appliance within the Bluetooth range in the house. The Arduino UNO controls the appliances through the commands from the user. The Bluetooth module is used to assist the software from various locations in the house. The system is designed to control appliances through our voice. The user need not to have a deep knowledge of language English, just by saying <italic>Turn on/off appliance_name</italic> like <italic>Turn on/off Light</italic>. Moreover, the entire system is easy to use and flexible.</p>
  <p>We can add any number of appliances whenever required. It could be installed easily in any area. This technology has a potential to attract huge investment by big technical firms as, automation is the future of the world.</p>
</sec>
<sec>
  <title>ACKNOWLEDGEMENTS</title>
  <p>We would like to thank Asst. Prof. Anurag Sharma, School of Computer Science and Engineering, Lovely Professional University, for mentoring us in the completion of our work.</p>
</sec>

</body>
<back>
<ref-list><title>References</title><ref id="ref1"><label>1</label><mixed-citation>Arduino, &quot;Arduino Uno.&quot; [Online]. Available: http://arduino.cc/en/Main/arduinoBoardUno</mixed-citation></ref><ref id="ref2"><label>2</label><mixed-citation>S. Sen, S. Chakrabarty, R. Toshniwal, and A. Bhaumik, &quot;Design of an intelligent voice controlled home automation system,&quot; <italic>Int. J. Comput. Appl.</italic>, vol. 121, no. 15, Jul. 2015.</mixed-citation></ref><ref id="ref3"><label>3</label><mixed-citation>K. A. S. V. Rathnayake, S. I. A. P. Diddeniya, W. K. I. L. Wanniarachchi, W. H. K. P. Nanayakkara, and H. N. Gunasinghe, &quot;Voice operated home automation system based on Kinect sensor,&quot; in <italic>Proc. IEEE Int. Conf. Information and Automation for Sustainability (ICIAfS)</italic>, Galle, Sri Lanka, 2016, pp. 1–5.</mixed-citation></ref></ref-list>
</back>
</article>
