Voice Recognition Automation through an Android Application Lochan Basyal Amritsar College of Engineering and Technology, Amritsar Punjab India Sandeep Kaushal Amritsar College of Engineering and Technology, Amritsar Punjab India ABSTRACT: Voice Recognition System is an emerging field in this digitalized technology these days. Voice recognition system through an android platform adds some good flavour in this project. The process of voice recognition through this platform is achieved by converting the input voice signal into text of string and after that it is transmitted to embedded system which contains an arduino atmega328 microcontroller through Bluetooth as a means of serial communication between an android application and a control system. The received text string on an arduino can check with predefined voice command which was already given through programming on embedded c and if it resembles, then the specific task is performed by enabling the respective pin of an arduino as high. This concept is highly applicable to industrial automation, home automation as well as in the field of digitalized robotics where an electronic system was activated by voice command through an android application. KEYWORDS: Arduino Atmega328, Bluetooth module, Lochan voice control android apps, ULN2003 relay driver. I. INTRODUCTION Voice recognition is the technique in which the input voice signal is transformed into its corresponding text or string through establishing the system to understand human voice. This technology only understands the words given through voice but not its meaning [1]. The embedded system which is established to detect the word string and further processes as condition check with predefined commands, if the condition is true then further implement the specific task as per the user requirements. This deals with an exact idea of voice recognition system. The performance of voice recognition system will be determined by the quality of signal preprocessing stage [2]. Some of the voice recognition projects can be found with having hardware module for interfacing with microcontroller but in this project an android application is used to interface with control system which helps in enhancing the digital technology. This technique achieve the goal of simplicity so as to plays an important role for disable person [3]. The concept of voice recognition system deals with the application and importance of automatic switching rather than the manual switching. A user can use this system through providing single voice command to an android application, which translates the real world operations. We can develop various projects based on voice recognition in the field of robotics, this approach gives an idea to young generation students to uplift their innovative work and also helps on academic research and development [4]. The implementation of this project can be performed by using various controller ICs, among them we used Arduino uno Atmega328and which can be programmed by an Arduino IDE (Integrated Development Environment).The present paper has been organized in such a way that section II depicts the introduction of Arduino and its specification, whereas section III deals with the communication platform which is elaborated by Bluetooth module HC-05, section IV introduces the overall control circuit adopted in this project, section V introduces about android application with its system modelling. In section VI, Methodology has been discussed, Proteus simulation software has been used for designing the Simulation modelin section VII, hardware implementation has been shown in section VIII and finally conclusion and future work of this approach has been discussed in section IX. 113 Lochan Basyal, Sandeep Kaushal
II. ARDUINO UNO The Arduino Uno is a microcontroller board based on the Atmega328. The ATmega328 is a singlechip microcontroller created by Atmel in the megaavr family. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller and simply connect it to a computer with a USB cable or power it with an AC-to-DC adapter of battery to get started [5]. Some specification of this module is shown below: Operating voltage 5V Input voltage 7-12V DC current per I/O pin DC current for 3.3V pin 40mA 50mA Flash memory 32KB of which 0.5 KB used by bootloader SRAM EEPROM 2 KB 1 KB Table 1. Arduino Uno atmega328 Specification Figure 1: Arduino Uno atmega328 [8] III. BLUETOOTH MODULE HC-05 HC-05 module is an easy to use Bluetooth SPP (serial port protocol) module, designed for transparent wireless serial connection setup [6]. Bluetooth module is used in this project to interface between an android application and arduino circuit. The serial communication setup in this module send and receive the data in bits per second. Practically this module is works with in the range of 50 meters. Figure 2: Bluetooth module HC-05 [9] IV.CONTROL CIRCUIT In our project control circuit refer to the combination of Relay and ULN2003 (Relay driver IC). The ULN2003 ICs are high-voltage, high-current Darlington transistor arrays. The feature of high-voltage outputs with common cathode clamp diodes consisting of seven NPN Darlington pairs having collector-current rating of 500 ma for switching inductive loads like Relay [7]. For maintaining higher current capability, these pairs can be paralleled. Relay is the electromechanical switch. It is used in an electronics devices and circuits for driving the load whether in DC or in AC. It has the capacity to control high current and voltage. Normally transistor circuits or uln2003 IC is used to drive relay. It has 5 pins in which two pins for the dc supply through coil, one for common terminal and rest 2 terminals for normally close (NC) and normally open (NO). We use normally open (NO) terminal for load circuit connection. It was found in various voltage rating, here in this project we used 5volt dc relay. 114 Lochan Basyal, Sandeep Kaushal
Figure 3: Control circuit Figure 4: Arduino with other interfacing circuit V. ANDROID APPLICATION Lochan Voice Control is an android application which recognize the speech of human and then convert it into text format and this text as a string can be further proceed and transmitted from smart phone through Bluetooth as a wireless communication channel to an arduino Uno circuit where Bluetooth module HC-05 is installed for serial communication. In this communication system data is transferred one bit at a time. An arduino will receive the serial data and check the received string with predefined string and if it is equal then the corresponding operations are performed through digital pins of an arduino. MIT app inventor 2 is used to develop this android application, which allows easy creation via drag and drop block programming. This platform is highly beneficial to those who are not expert in java, android as well as python coding. When the system Bluetooth is connected with android application then it displays the status Connected on the screen, then clicking the microphone button opens up the speech recognizer. It allows an easy and reliable connection with the Google speech Processing Libraries for smooth and accurate speech recognition. First we have to install this application in our smart phone and connect the Bluetooth of our smart phone with system (HC-05 module) and turn on the mobile data then press the microphone button of an android application and speak something which convert immediately into text in the screen. Figure 5: Structure of an Android Application Figure 6: System Architecture VI. METHODOLOGY Voice recognition automation through an android application, which can control all the electrical appliance that are installed in our system are controlled by voice command through Lochan voice control android application. The input voice signal can be converted to text string through an android application and also displayed on the screen and is transmitted through Bluetooth as means of communication. The Bluetooth module HC-05 at the receiver end can receive the corresponding machine code of text string through Bluetooth as a means of serial communication. This string was checked conditionally on the program and also by the controller atmega328 compares with predefined sets of voice command which is upload in the form of.hex file after compilation of code. If the condition is satisfied then the controller provides the digital high 115 Lochan Basyal, Sandeep Kaushal
signal to respective digital pin from where the electronic control circuit is connected. This control circuit includes uln2003, a relay driver IC and relays of 5v dc rating. The normally open (NO) terminal of relay is connected with an electric load because when a relay is activated then the switch transferred from NC terminal to NO terminal. Hence through this mechanism a voice command can control the respective appliance within the range of 50 meters. Here in this project a relay driver circuit is used to operate relay which control AC 220 V electrical appliances and also acts as an interface between DC and AC. VII. VIRTUAL SIMULATION THROUGH PROTEUS 7 For the implementation of this idea we also applied virtual simulation through proteus 7 software. For adopting this platform, we have to download Proteus simulation software from an internet and install it on our PC along with required arduino- proteus library.first we draw the circuit on Proteus IDE and then apply the.hex file on controller, which is generated after compilation of code in Arduino IDE through an option Export compiled Binary. After completing this steps we can run our virtual simulation project through Run option in left bottom end of proteus IDE. We can achieve our goal as per the commandapplied through Virtual Terminal. In this simulation Virtual Terminal acts as a communication Platform like GSM, Bluetooth etc. Figure 7: Virtual simulation through proteus in (ON condition) Figure 8: Virtual simulation through proteus in (OFF condition) 116 Lochan Basyal, Sandeep Kaushal
VIII. HARDWARE IMPLEMENTATION Figure 9: Hardware Implementation (light on)figure 10: Light off Condition IX.CONCLUSION AND FUTURE WORK Voice Recognition Automation through an Android Application Lochan voice control was a project based on microcontroller with an android platform so it reduced the more hardware requirement and voice recognition module. This project was successfully implemented with features of low manufacturing cost, compact size, high system response, less power consumption and no operating cost. Hence we conclude that the required goals and objectives of ourproject have been achieved. As we discuss about the future scope of this project, we are planning to enhance this technique in the field of robotics and industrial automation with the applications of artificial intelligence and Internet of things (IOT). REFERENCES [1] Dr. J. Selvakumar and K. Kannan, Arduino Based Voice Controlled Robot International Research Journal of Engineering and Technology (IRJET), Volume: 02 Issue: 01 Mar-2015. [2] Nitin Washani and Sandeep Sharma, Speech Recognition System: A Review International Journal of Computer Applications (0975-8887), Volume 115- No. 18, April 2015. [3] Sonali Sen, Shamika Chakrabarty, Raghav Toshniwal and Ankita Bhaumik, Design of an Intelligent Voice Controlled Home Automation System International Journal of Computer Applications (0975-8887), Volume 121 No.15, July 2015. [4] Sagar Pinjarkar, Siddhi Khadpe, Anuja Tavte and Riddhi Karpe, Voice Controlled Robot through Android Application International Research Journal of Engineering and Technology (IRJET), Volume: 04 Issue: 04 Apr-2017. [5] 8-bit AVR Microcontrollers Atmega328/P Datasheet Complete by Atmel. [6] https://wiki.eprolabs.com/index.php?title=bluetooth_module_hc-05 [7] http://www.ti.com/lit/ds/symlink/uln2003a.pdf [8] http://www.astanadigital.com/webshaper/pcm/gallery/lg/ee332c78eb0d1b95b6a5e889aed03a3c14503665 63-lg.jpg [9] https://images-na.ssl-images-amazon.com/images/i/31pwebrhb%2bl.jpg 117 Lochan Basyal, Sandeep Kaushal