Page 71 - IJEEE-2022-Vol18-ISSUE-1
P. 71

Jumaa, Abd.ulkhaleq, Nadhim, & Abbas                                                                                    | 67

     Blynk is an IoT platform that supports both IOS and   3) The Blynk libraries, which consist of various widgets
     Android while being compatible with a plethora of     to perform different control, display, and time
     microcontrollers such as Node MCU (ESP), STM32,       management operations.
     Arduino and Raspberry Pi over the Internet. The
     architecture of Blynk consists of three major         b) Proposed System Operations
     components: [9]
     1) The Blynk application, which controls an embedded  This system contains two power sources. The first
     system and displays sensing data on widgets.          source is a power Supply T09D060-2D1, which is a
                                                           transformer that converts high voltage 220v to low
                                    Start                  voltage 9v and feeds the fan. The second source is a
                                                           battery rechargeable (3.3v-5v) that feeds the controller
                                Initialization             (Wi-Fi Node MCU ESP8266) as well as the rest of the
                                                           circuit elements.
                                 MQ-2 Gas                  The controller ports must be connected to the sensor as
                                    sensor                 follows:
                                                           (Vcc ? 3.3v , GND ? GND , A0 ? A0) also (D5 ?
                                                           +buzzer , D6 ? + green LED , D7 ? +red LED)
                                                           The relay is also connected to the transistor and the fan,
                                                           as shown in Fig. (6) below:

No Ye
              Is gas
                        s
              level >=

              140 ?

 ESP8266                 ESP8266                                               Fig. 6: Relay Connections.
Node MCU                Node MCU
                                                                             VII. REAL TIME PROTOTYPE
 Send the               Turn on red
Gas level to               LED &                                As mentioned in previous sections, this system is built
 the Blynk               Buzzer &                          based on the controller (ESP8266) with the gas sensor (MQ-
                             Fan                           2), as shown in the real pictures illustrated in Fig. (7). In the
   APP.                                                    event of gas leakage, the sensor will send a signal to the
                                                           controller, through Wi-Fi technology, the controller will
                                                           send a warning text message of the presence of gas leakage
                                                           using the Blynk application available on the mobile phone
                                                           system. In this system, an IoS mobile phone is used. The fan
                                                           and the red light will also work.

Turn on                    Send
green LED               message to
                        the Blynk

                           APP.

                             END                           Fig. 7: Real-Time Prototype of the Proposed System.

        Fig. 5: The Flowchart of the Proposed System.

2) The Blynk server, which allows all cloud-based
communications between smartphones and embedded
systems.
   66   67   68   69   70   71   72   73   74   75   76