The University of Faisalabad: Department of Electrical Engineering Technology
The University of Faisalabad: Department of Electrical Engineering Technology
Name Registration #
Muhammad Azeem BSET-FA18-022
Ali Raza BSET-FA18-040
Muhammad Hassan BSET-FA18-048
Abdul Rehman Aziz BSET-FA18-093
Supervised by
Name_________________ Designation_______________
A Wi-Fi receiver is required to connect the system to the Internet. In my case, I used ESP 8266
connected to the Node MCU board as an onboard module running firmware with ESP 8266.
Firmware is low-level computer software.
The MCU node is coded through the Arduino Integrated Development Environment (IDE)
through the Universal Serial Bus (USB) port to tell the MCU node what to do. I want to control
the four-channel relay kit and display the temperature through the empty phone app. Which is
measured with an LM35 sensor.
1.2 Background
The concept of "home automation" has been around for years. "Smart Home", "Intelligent
Home" are the terms used to introduce the concept of home networking devices. Home
automation systems (HAS) include central control and remote monitoring of lighting, security
systems and other devices and systems. HAS enables energy efficiency, improves security
systems and certainly provides comfort and convenience to consumers. In today's emerging
market, HASs are gaining popularity and attracting the interest of many consumers. They have
come up with their own challenges. Basically, in the current era, end users, especially the
elderly and the disabled, although they have benefited a lot, do not accept this system due to
complications and cost factors.
1.5 Scope
Taking the stage for home robotization advertising will be subject to a couple of key
improvements in the progress that is opening up in automation, for example, wireless
automation appears to improve the blueprint as well as decrease respect as the market begins
The use of domestic mechanization is one of the most notable volumes. Some of the examples
we offer for this time of business are:
Large associations such as Philips, Siemens and Schneider will, over time, bring to the fore
large-scale market mechanization items that, in any case, interfere with the UI, in any case a
less prestigious position than today, and more people Will be able to afford the price. .
Promise solutions will move to a slightly more straightforward structure, where beyond two or
three key sections, customers will have the ability to automatically buy and use items without
any specific axis.
The future scope of the home automation system includes making homes smarter. Homes can
be interfaced with motion sensors, light sensors and temperature sensors and thus provide
automatic toggling to devices according to the situation.
More energy can be saved by ensuring occupancy and brightness of the home before turning
on the appliances and turning off the lights if not necessary.
The system can be closely integrated with home security solutions that enhance homeowners'
safety.
1.6.2 Design
This was the phase of designing the app and incorporating the required features. This included
the complete hardware assembly and uploading the code to the Node MCU. The power strip is
designed to connect household appliances that can be controlled via GPIO pins.
1.7.4 Security
This system provides maximum security as the HAS control connection is established over a
secure network.
In the NODEMCU card, this system is inserted as a web-based system. Due to the ESP8266
circuit, NODEMCU is always linked to the Internet via a Wi-Fi or WLAN connection.
As the NODEMCU connects with the smartphone's access point, you'll need to know the access
point's name, the hotspot's password, and the token code for the Blynk server. Once you've
transferred the Arduino IDE code, you'll need a computer to configure the NODEMCCU to
control a portion of the product's software. As you can see in Figure 1, Blynk's application
server processes the connection from the NODEMCU smartphone. Libraries are flashed It's
common to download ZIP files from the Github website and import them into the Arduino IDE
library.
With Android Hotspot and NODEMCU code, the Blynk server checks if there's an online
connection, and if so, the credential. Data in code must correlate to hotspot information for
ESP8266 port, which is employed as an exchange channel between smartphone and NodeMCU.
As illustrated in Figure 2, the remaining processes are just assignments sent from the Blynk
application to NODEMCU to the control goods related to the Realist, and therefore the output
value of the sensor is reversed on the Blynk application of the NODEMCU set.
Start
Y
Bulbs ON/OFF from
Blynk application
Bulbs ON/OFF
Controlled by relay kit
End
Basically, the output of microcontroller is in Mile-volts so this output volt is not sufficient to
run the bulky load output.
So as to run the appliances on 230v we require a Relay module so the output is fed to the relay
module according to given input to the relay module it will generate output and drive
various appliances and load e.g., Lamp, Fan, Tube light, T.V, etc.
3.1.2.4 Output
These are the output Generated from the given input by the user The user can set the various
output sections and can gain output through any of the section like Home appliance A for lights,
Home appliance B for fans, Home appliance C for T. V .and many more……….
Home Appliance A
Home Appliance B
Home Appliance C
3.1.3.3 Applications/Appliances
The Load Can be of any type which is the output of the circuit. The Output of relay drives
the appliances. i.e switch the Loads.
Fan
Led Bulbs
Computers
Motors
Pumps
LED
Air Conditioner
Refrigerator
Switches etc.
3.1.4 Circuit Diagram
So as to run the appliances on 230v we require a Relay module so the output is fed to the relay
module according to given input to the relay module it will generate output and drive various
appliances and load e.g., Lamp, Fan, Tube light, T.V, etc.
3.1.4.3 Output
These are the output Generated from the given input by the user. The user can set the various
output sections and can gain output through any of the section like Home appliance A for lights,
Home appliance B for fans, Home appliance C for T. V .and many more.
3.1.5 Debug Circuit Diagram
3.2.1.1 Features
Table 1 Features of NodeMCU
3.2.1.2 Specificatio
n
3.2.1.3 Pin Diagram/ Pin Layout of NodeMCU
Figure 13 LCD
3.2.3.1 Introduction
It is a 5V 4-channel transmission board interface with a 15-20mA current drive required for
each station. It can be used to control a variety of current and device types. They have a high
current transmission performance when operating at AC 240V 10A or DC 28V 10A. It has a
typical interface which will be controlled directly by the microcontroller.
3.2.3.2 Principle
There are two types of relay contacts: typically open and normally closed. The normally open
contact will be closed when signal port is at a low level when signal fire is illuminated and opto-
coupler Relay is conducting and the transistor is conducting as well. A longer signal port means
that you'll have to alter how long it is before you can connect or disconnect a load.
3.2.3.4 Features
Size: 70mm (Length) * 50mm (Width) * 19.6mm (Height)
Weight: 62g
PCB Color: Blue
Each corner of the board has four fixed screw holes, making it easy to install and fix. The hole
has a diameter of 3.4mm.
High quality single transfer is used with a single pole for double throws, regular ends, frequent
open ends, and closed end
Precise anti-interference, Optical coupling isolation.
Released at high level with indicator off ,Closed at low level with indicator on,
JD VCC is a relay power source, whereas V CC is the system power supply. Default is a 5V relay on
the ship.
The maximum output requirement of relay: DC 30V/10A, AC 240V/10A
3.2.4 Power Supply
3.2.4.1 Block diagram of Power Supply
3.2.5 Introduction
The operation of almost every electronic device today requires the use of a DC power supply.
This power supply must be operated within certain power supply limits. All of this DC power is
provided by the single phase AC mains.
The regulated power supplies are capable of converting alternating current or voltage from
unreliable to a constant DC (current or voltage). Because it regulates power, the output remains
constant regardless of changes in input. Embedded DC power supply, or linear power supply,
consists of several blocks and is used to power a variety of devices. The regulated power supply
accepts an AC input and results in a constant DC output.
So, we have powered the Kit/ set-up with the Adaptor which gives exact 5V output voltage we
have used the micro-type USB cables for connection of Controller with Adaptor.
3.2.5.1 Description
Following is a list of the basic components of a regulated DC power source:
3.2.5.1.2 Rectification
The rectification process is carried out by a diode-based electronic circuit. To rectify means to
convert an alternate current (AC) and voltage (AC) into their corresponding direct current (DC)
quantities. Unbalanced, unidirectional DC pulses are the result of the rectifier's input and
output. Rectifiers are typically used for both Positive and negative half cycle of the AC supply,
whether they are full-wave rectifiers or bridge .A full wave bridge rectifier is shown in figure.
3.2.5.1.3 DC Filtration
It is a pulsating DC voltage with an extremely high ripple content. But that's not what we are
looking for; we are looking for a pure DC without ripples.
3.2.5.1.4 Regulation
A regulated DC power deliver is completed with this final block. The output voltage and
contemporary will fluctuate due to modifications inside the enter voltage from the ac mains,
adjustments inside the load present day on the output of the regulated strength supply, or
other elements such as temperature changes. It is possible to solve this problem by utilizing a
regulator. Even if the input changes the output of a regulator will remain constant. There are a
variety of ways to regulate the flow of electricity, including using transistor series regulators,
fixed and variable integrated circuits, and zener diodes operating in the zener region. These
integrated circuits (IC) have been designed to provide fixed voltage values at the output
waveform. Filtering is therefore necessary. For example, a capacitor filter is used as well as an
LC filter, a choke input filter, and a filter.
3.2.6 Connecting wires
Connecting wires, allows electrical power or signal to travel from one place to another because
a signal or current requires a means of travel. In basic circuits, the telephone comes from a
single power source circuit, such as a battery.
ESP8266 Wi-Fi module-based Node MCU Amica development board. With its Micro USB port,
you can easily connect your computer or other USB host devices to it without any hassle. If you
want to connect a USB host device to the Ti, it has 15X2 header pins that can be mounted on a
breadboard and a Micro USB slot. A USB to serial converter, the CP2120, is built into the device.
To install CP2120 (USB to serial serial), the user is required to download the driver accordingly.
A connection to NodeMCU is established as soon as the user downloads the appropriate drivers
for their operating system.
The user needs to download the COM posts provided on the newly connected USB device (Node
MCU) from the system device manager. This com port number will be required while using the
Node MCU Amica.
3.3.4 Interfacing Node MCU with Arduino IDE
To start with the latest version of Arduino IDE, we will need to update the board manager with
a custom URL. Choose File > Preferences in Arduino IDE. After that, copy below the URL in the
text box for additional URLs located at the bottom of the window:
Then, at that point go to Board Manager by getting to Tools> Boards> Board Manager. There
ought to be a couple of new increases to the quality Arduino sheets. Channel your hunt by
composing ESP8266. Click enter and select Insert.
Let's confirm the board is selected correctly in Arduino IDE before transferring the sketch and
playing with LEDs. Open the Arduino IDE and select Node MCU 0.9 from the Tools > Boards
menu (ESP-12 Module).
Figure 22 Arduino IDE board manager installation
Now, connect your NodeMCU ESP8266 with Laptop through USB cable As soon as the board is
plugged in, it should be given a unique COM port number. COM# is the Windows equivalent,
while on Mac/Linux computers its /dev/tty.usbserial-XXXXX. This serial port can be found in the
Arduino IDE's Tools > Port menu under the Arduino IDE's Tools menu. Also, select 115200 for
the Upload Speed.
Figure 23 Assigning communication port on Arduino IDE.
1. The line which says ‘char auth [] = “YourAuthToken”, replace YourAuthToken part with your
Blynk’s authentication token that was generated by the Blynk server.
2. The line which says char ssid [] = “YourNetworkName”, replace YourNetworkName part with the
name of Wi-Fi network that the Node MCU must connect to.
3. The line in which it says char pass [] = “YourPassword” and change the YourPassword part with
the password of the Wi-Fi network.
Figure 24 Code in Arduino IDE to be installed to Node MCU
The code is ready to be uploaded to the hardware. On clicking upload button, the code is
uploaded to Node MCU and the next time it’s powered on, it automatically connects to the
assigned Wi-Fi network.
CHAPTER # 04
4 RESULT AND DISCUSSION
5.1 Limitations
In order to convert the speech data into string data, Android devices with API versions lower
than 16 require internet access. For the time being, the application is only available for Android
Smart Phones. Noises from the outside (voice) can affect our results when using the voice mode.
In our voice mode, the speech command that we issue may not produce the exact result that we
had hoped for. As a result, there is ambiguity in the outcome.
5.2 Conclusions
It's possible to come to these conclusions after analyzing data obtained from testing smart
home with NodeMCU ESP6288's Internet of Things-based module:
There are various things that can be used to create a smart home system controlled by the Blynk
Android app. The NodeMCU ESP8266 Module can be used to create a Smart Home with Internet
of Things (IoT).
The NodeMCU ESP8266 Internet of Things (IoT) module can be used to control lighting, fans,
temperature, and early warning systems in the smart home of the powerful Internet of Things
(IoT).
[14]. Jewel, M. H., Islam, M. N., & Hasan, M. J. (2017). Automatic Room Light Control Using
Bidirectional Visitor Counter and Gas Detection (Doctoral dissertation, East West University).
[15]. Pavithra, D., & Balakrishnan, R. (2015, April). IoT based monitoring and control system for
home automation. In 2015 global conference on communication technologies (GCCT)(pp. 169-
173). IEEE.
[16]. Khadem, T., Billah, S. B., Barua, S., & Hossain, M. S. (2017, September). Homer based
hydrogen fuel cell system design for irrigation in Bangladesh. In 2017 4th International
Conference on Advances in Electrical Engineering (ICAEE)(pp. 445-449). IEEE.
[17]. Adhya, S., Saha, D., Das, A., Jana, J., & Saha, H. (2016, January). An IoT based smart solar
photovoltaic remote monitoring and control unit. In 2016 2nd international conference on
control, instrumentation, energy & communication (CIEC) (pp. 432-436). IEEE.
[18]. Khan, M., Silva, B. N., & Han, K. (2016). Internet of things based energy aware smart home
control system. IEEE Access, 4, 7556-7566.
[19]. Bedi, G., Venayagamoorthy, G. K., Singh, R., Brooks, R. R., & Wang, K. C. (2018). Review of
internet of things (IoT) in electric power and energy systems. IEEE Internet of Things Journal,
5(2), 847-870.
[20]. Adila, A. S., Husam, A., & Husi, G. (2018, April). Towards the self-powered Internet of
Things (IoT) by energy harvesting: Trends and technologies for green IoT. In 2018 2nd
International Symposium on Small-scale Intelligent Manufacturing Systems (SIMS) (pp. 1-5).
IEEE.
[21]. Desco retail electricity price rate, (2019). DESCO. Retrieved from
https://www.desco.org.bd/bangla/tariff_rate_b.php
[22]. Mondal, A. H., & Denich, M. (2010). Hybrid systems for decentralized power generation in
Bangladesh. Energy for Sustainable Development, 14(1), 48-55.