IoT Based Secure Lock/Unlock System Using Google Assistant Based English And French Languages

The user can utilise the voice acknowledgement in making it more straightforward for individuals with inabilities to get to entryway frameworks and give better security to lives and properties.  In this paper, the advancement of the technology is used for opening any locking system.  We are implementing this type of module where it can be of low cost, and even physically disabled persons can open the door without any assistance. The Blynk app and a Wi-Fi module can access the system by giving the input and output as a voice recognition speech command. Hence, in this paper, any person can just use google assistant from their smartphone to lock or unlock a secure system with just two controls, i.e., "Ok Google Lock Door one", "Ok Google Unlock Door one". This Project works seamlessly for three locks in one system that can be operated separately using only one main microcontroller, i.e., Node-MCU ESP8266, and relays drivers so that our Project can be quickly developed and deployed. The applications of this Project is endless as technology constantly evolves. Suppose the user is connected with the internet and operated using Google Assistant. In that case, the lock is operated only from one account, making it secure and available to all who use smartphones and have a google account. Even for people who are blind, this can be an excellent way to lock and unlock their resources just with their voice. Anyone can utilise this Project from their convenience, making it the easiest way for anyone to lock/unlock just by two words, i.e., "Ok Google Lock Door."


Introduction
A Door-Automation system based on a speech command pin is a good way of locking or unlocking the door using a voice module that recognises the voice. If the voice matches, then the further step of identifying the command is initiated. Otherwise, we get a prompt of invalid command on our smartphone. [1] This article uses a website URL-based system to monitor input. They use the voice command of the Raspberry pi board Wireless communication and v3 module for voice recognition that cannot be recorded The sound made before. They have used electromagnetic locks to close the system door, Open and close it. [2] A system that acts as a voice modification wireless device improves the active system that performs digital activation. Speech recogniser has a modern fee Technology, and have undergone different numbers of noise tests, such as digital and few characters. The above article will put forward some additional ideas on security intelligent smart doors Lock systems and use the digital lock to implement via Bluetooth, apps and wireless. However, they did not discuss an idea where the user can use commands and door automation with the help of voice recognition systems. [3] In this article, the author proposes an approach composed of digital locks for an ordinary door. People used to have mechanical locks to open the door, but as children and older people, it is hard for disabled people to always carry it with them, so the digital lock is used together with the password. Sometimes the PIN may be forgotten, so only use an electronic lock with a digital lock, and a spare battery is used. If there is electricity, use an electric lock. If there is no electricity when using a smart card, RFID can easily use numbers to open the door lock. [4] This article is trained to make it more flexible in an adaptable environment with fewer requirements for modifying tracking records, adding a single voice recognition for more demographic data, and adapting to any environment in the current climate change scenario. Here, they use a microcontroller, a single voice module and a Bluetooth module to get the required output, and the range they get in this target is 10-20 meters, and the required time is 140 milliseconds. [5] In this article, the system is used for the entire process of a smartphone application. They use different sensors to operate the electric door, lock the door using a magnetic sensor, and use a dust sensor to detect air pollution. They are implemented through OTP, where any interference occurs in less than 10 seconds, the door is locked, and the message is transmitted to the registered ID. The camera is activated, and corresponding images and videos are recorded from CCTV [6]. In this system, they use the same Arduino microcontroller and Arduino smartphone to turn on and off access to it using a wireless device called Bluetooth to transmit data or obtain the output required for data. They use the power supply as Batteries and relays have been used to control the current, they have used solenoids for output, and the system has been used to obtain the code to be executed, and by using the COM port, the system may be hacked, and access may be wrong. [7] In this article, they implemented the system by using a Wi-Fi module and a GSM module. They implemented a microcontroller by using two types of wired and wireless equipment, and in this system, two DC motor is used to open the door and keep it open. Since the system's operating time is turned off when the program is implemented, all family members can use the modified system described in this article. [8] In this system, innovative smart technology automatically opens closed doors through smartphones and GSM modems. They use components to implement the system through servers, web services, and IP cameras and propose Wi-Fi access for connection. The different parts to be operated, connect the device wirelessly, and obtain a strict security level are implemented widely. The system successfully uses GSM because when the Wi-Fi range is exceeded, GSM can work typically. [9] In this article, the system executes the required components, such as microcontrollers, Bluetooth modules, fire and temperature sensors, to detect emergencies of fire or theft in intelligent houses, and some tests are performed to modify the sensing. The object can be tracked perfectly and is only 10 meters away from the Bluetooth device. [10], [11], [12],[13].

The Proposed system model
This article Proposes a system of locks that can be operated just by our smartphone using google assistant. The user can utilise this system from anywhere globally with the user connected with the internet and operated using Google Assistant. The lock is operated only from one account, making it secure and available to all who use smartphones and have a google account. Even for people who are blind, this can be a fantastic way to lock and unlock their resources just with their voice. Anyone can utilise this locking system from their convenience, making it the easiest way for anyone to lock/unlock just by two words, i.e., "Ok, Google Lock Door". This model will allow us to reach out to most people as most people are using smartphones. The previous models have additional components like Bluetooth module, voice module mic, camera, fingerprint scanner, etc. For the proper working of that system, the user would have to be present at the lock spot only. The existing system depends on Bluetooth, which has a short-range connection, i.e., 100 meters, and we would have to give inputs for the working for this system. Moreover, in the case of voice module systems, a person/user must be present in the same place as the lock, and the same is the case with other biometric modules systems. Figure  1 shows the block diagram with google assistant. However, with this proposed system, the user will solve these two situations since the user is not using any additional components except the lock, the microcontroller and the relays [14].

Fig. 2. Proposed system layout
With the help of google assistant, the user can operate the locking system from any distance. The user requires the BLYNK app and IFTTT to connect the locks to the google assistant account. For this paper, we are using three different locks that will operate independently. Since IFTTT supports a set of languages, we implement this system with two languages, i.e., English and French. This system does not compromise the working and speed of operation, making this suitable for many purposes. In this project, the user has used a hidden network for Wi-Fi connection, Add network and type network name and password used in code. The new project is created in the Blynk app, and two different buttons are made with NodeMCU configuration, one for lock and one for unlocking. The user will get a Unique auth-code related to the project to his google registered mail, and this auth-code is used to control and connect the locks to the NodeMCU. The user has to login in IFTTT server with his google account to use the google assistant feature. Also, the user creates a new applet with google assistant to enter the commands to operate the locking system.

Fig. 5. Circuit diagram with breadboard connections
We have assembled the circuit in the following way such that three locks (actuators) will work depending on the input the user gives. The circuit is controlled by a microcontroller and is dependent on relays [15].   http://www.i-joe.org Figure 8 shows the unlock buttons settings in the Blynk app, and it is 1 and 0 because the user has to use active low relays, and a push switch is used so that the relay is done as soon as unlocking is done can come to its neutral state.  IFTTT (If this, then that) is an open-source platform for linking two things to make use of them efficiently and smartly, and this will allow us to connect the google assistant to blynk app project buttons.  In IFTTT, for creating webhooks link,s the user need to add some server addresses ─ For getting the blynk server IP address, the user has to open the command prompt in our desktop and type "ping blynk-cloud.com" and press enter. ─ After that, the user should get (ping statistics for "IP address") the IP address.
In IFTTT, while creating webhook link the user has to enter URL: ─ http://(IP address of Blynk server)/(Authtoken)/update/(GPIO pin) ─ Here IP address the user can find via command prompt. ─ The Authtoken is from the Blynk app. ─ The GPIO pin is the combination of raw PIN and port, i.e. if the user has to operate D1 port, the user has to use the first letter of port, and the last number of the raw PIN of that port, example:-for D1 port Raw PIN is GPIO5 hence the GPIO pin to be entered in URL has to be D5. ─ Method has to be PUT. ─ Content type is application/json. ─ Body should be ["1"] for turning on the port and ["0"] for turning off the port since the user is using the active low relay 4 In this figure 12, lock, one is expanded, indicating the actuator is lockedSince the "Lock 1" command is given to google assistant, the user can see that lock 1 is extended/locked. In this figure 13, lock one is again contracted to indicate the actuator is locked. Since the "Unlock 1" command is given to google assistant, the user can see that lock 1 is contracted/unlocked. In this figure 14, lock two is expanded, indicating the actuator is locked Since the "Serrure 2" command is given (in French) to google assistant, the user can see that lock 2 is expanded/locked. In this figure 15, lock two is contracted, indicating the actuator is locked. Since the "Déverrouiller 2" command is given (in French) to google assistant, the user can see that lock 2 is contracted/unlocked.

Conclusion
This project intends to operate the three locks from google assistant without any limitations or drawbacks and be affordable and secure. After creating this lock system, the user can say that the design and locks work as the user imagined without any noticeable delay. We have used very few components in this project which has helped us to reduce the cost significantly. Now that our project works as intended, we can say that these lock systems have way more applications in the future and can be modified to our likings as we can create a whole door system by adding extra motors apart from the locks. The security of this project solely depends on the user as he is himself the key to the locks. This project eliminates the drawbacks of existing locks, i.e. users cannot operate locks when present near it, and relays used in every electronic lock system are a delicate part that we have solved by giving power to the relay just for that fraction of time have to operate the motor. Since these locks are operated with the open-sourced google assistant, we can operate them with any smartphone. We can be used in multiple languages as IFTTT will update many more languages to its server. We hope that many more implications of these projects will be done in future by adding more components that will enhance usability and security.