GSM Project
GSM Project
By
_______________________
Prof. Preeti Kundu
Assistant Professor
Department of Electronic and Communication Engineering
Maryland Institute of Technology and Management
Countersigned by
________________________
Preeti Kundu
Head of the Department,
Department of Electronic and Communication Engineering
Maryland Institute of Technology and Management
ACKNOWLEDGEMENT
We express our sincere gratitude to Prof. Preeti Kundu, Assistant Professor,
Department of Electronic and Communication Engineering, Maryland Institute
of Technology, as the mentor for our project. It is our great fortune that we
have got opportunity to carry out this project work under the supervision. We
express our sincere thanks for the encouragement, support and the guidance.
We would further like to thank all the faculty member for their cooperation
and extended support in undergoing the project.
Abstract
Automation is one of the most advancing sections of the industry today. That
too, coupled with the Internet of Things (IoT) becomes the most lucrative field
of current times. Home automation using Bluetooth module has many
constraints and because of that IoT based automation is on the rise. Presently,
every system is becoming remote controlled, be it television sets, speakers or
any other electronic system for that matter. In conventional control systems, a
user was required to carry separate remote controls for different appliances. To
overcome this, we have come up with a super convenient automation system
with smart switching which can be controlled via Android OS phones. By this,
the user will be able to control all the appliances with his/her smart phone. In
addition to turning appliances ON/OFF, the user will be able to control and
adjust the intensity and speed of the devices also. This is achieved by
interfacing GSM and Wi-Fi module to the Arduino board and programming
Android application to operate it.
Contents
1. Introduction
Home automation system
Internate of Things (IOT)
Components
2. NodeMCU based automation
Node MCU
Block diagram
Mobile application (BLYNK)
Setup to control NodeMCU from BLYNK application
Uploading code to node MCU
Hardware assembly
Logic and Operation
Advantage and Disadvantage of Node MCU
3. GSM based automation
Description
About the GSM Sim900A module
GSM sim 900A specification
GSM 900A power supply
GSM 900A pin configuration
Node MCU with GSM circuit diagram
Blynk application design for node MCU and GSM
4. Conclusion
5. Future scope
6. Limitation
7. References
Introduction
In today’s day and age, automation can be found everywhere. Everything is
becoming automatic ranging from Cars, Lights, Fans, Television sets,
refrigerators, Motors to elevators and doors. Even remotely automated toys
are becoming technologically advanced. The concept of remotely controlled
appliances is not new. Earlier, Automation systems were made with the help of
Bluetooth module. But it had many constraints like limited range and frequent
connection issues. Now, with the emergence of cutting-edge technologies like
IoT based automation, Automation industry is poised to achieve more heights.
And more and more people are expected to adopt Automation for home as
well as industrial systems. And because the devices are remotely connected
and operated over the internet from anywhere in the world in the real-time it
opens up many possibilities which were thought of as impossible in not so
distance past.
Just imagine how much convenience it will cause to users if they can start
their ACs in their offices from their home that way they can walk into the office
in the atmosphere in which they want. This technology is already proving to be
a boon for physically disabled people and aged people. It has improved their
quality of life and given them somewhat independence by enabling them to do
their work by themselves quite easily.
Components
Node MCU
Node MCU (Node Microcontroller Unit) is a low-cost open source IOT platform.
It initially included firmware which runs on the ESP8266 Wi-Fi SoC from
Espressif Systems, and hardware which was based on the ESP-12 module.
Later, support for the ESP32 32-bit MCU was added.
Node MCU is an open source firmware for which open source prototyping
board designs are available. The name “Node MCU” combines “node” and
“MCU” (micro-controller unit). The term “Node MCU” strictly speaking refers
to the firmware rather than the associated development kits.
Both the firmware and prototyping board designs are open source.
The firmware uses the Lua scripting language. The firmware is based on the
Lua project, and built on the Espressif Non-OS SDK for ESP8266. It uses many
open source projects, such as leucosin and SPIFFS. Due to resource constraints,
users need to select the modules relevant for their project and build a
firmware tailored to their needs. Support for the 32-bit ESP32 has also been
implemented.
The prototyping hardware typically used is a circuit board functioning as a dual
in-line package (DIP) which integrates a USB controller with a smaller surface-
mounted board containing the MCU and antenna. The choice of the DIP format
allows for easy prototyping on breadboards. The design was initially was based
on the ESP-12 module of the ESP8266, which is a Wi-Fi SoC integrated with a
Tensilica Xtensa LX106 core, widely used in IOT applications.
.
.
Block diagram
Block diagram of the proposed system
The block diagram gives the functionality of the overall project. The Node MCU unit is the
microcontroller or the main controlling unit of the system. The user uses the mobile
application in setting commands for functioning of the appliances. The mobile application
interprets the command form in user in voice or switch mode and sends signal to the Node
MCU unit, over a wireless network established by Wi-Fi communication. Hence the Wi-Fi
module (actually inbuilt into Node MCU), helps the microcontroller establish Wi-Fi
communication with a device and take commands from an application over wireless
network. The Node MCU on further receiving the signal then turns on/off the appliance with
the help of relay. The Node MCU, relay and the final appliances are physically connected.
There is a power supply unit that powers the microcontroller, the relay as well as the final
appliances. There is also a display unit that displays the status of the application.
Once the unique Id is generated the next step would be to include this key into the coding written in
embedded C to establish communication between Node MCU and Blynk Server. The following
describes this process.
• Select Files > Examples > Blynk > Boards WIFI > ESP8266_Standalone. A
new file with some prewritten code opens. The following changes to the
code are made.
2. Now, we’ll set up the Arduino IDE by changing some settings. So,
open up the Arduino IDE. Select of Wi-Fi network that the Node
MCU must connect to.
The line where it says char pass[] = “YourPassword” and replace the
YourPassword part with the password of the Wi-Fi network
• 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.
Hardware assembly
Circuit Diagram
Flow Chart
flow chart shows the working of the project. The process starts be initializing
the Wi-Fi, the network name and password are written in the code and
uploaded to Node MCU. The android device is connected to Node MCU over
Wi-Fi. The Blynk server is set up and connection is made, the devices is
identified in the Blynk server using the generated authentication token. The
command for controlling the load is given to the application, and this
command, over Wi-Fi network is sent to the Node MCU. This
Advantage and Disadvantage of Node MCU
Advantages of Node MCU
• Low cost, the Node MCU is less costly compared to any other IOT based
device.
• Node MCU has Arduino Like hardware I/O. It is becoming very popular in
these days that Arduino IDE has extended their software to work in the
field of ESP 8266 Field module version.
• Node MCU has easily configurable network API.
• Integrated support for Wi-Fi network: ESP 8266 is incorporated in Node
MCU, which is an easily accessible Wi-Fi module.
• Reduced size of board.
• Low power consumption.
As shown in the block diagram we had used a GSM module and Node MCU as
main IOT devices which are responsible for the smart automation system. As
shown in diagram GSM module and Node MCU are connected to each other so
that they can send or receive signals when they required. GSM module
contains a SIM card. When a user wants to turn on or turn off various
equipment’s like Fan, LIGHT, PUMP, MOTOR, etc. then he/she has only to send
an SMS to PRE-registered number i.e. the number of SIM card which is in the
GSM module from their mobile phone. By sending an SMS to that number GSM
module will receive that message and send a signal to the Arduino Uno and
thus Arduino will provide a digital signal which is thus transferred to the
control circuit. The control circuit will send a signal to the driver circuit and
driver circuit will drive the relay and thus the selected device will turn on or
turn off.
Load: Load includes all the appliances of the home. Power Circuit:
Description:
Nodemcu with GSM Module Sim900A- I have been
using GSM Module and Nodemcu ESP8266 Wi-Fi
Module for quite a long time in different types of Arduino
based and IOT related projects. In this tutorial, you will
learn how to use Nodemcu with GSM Sim900A
module. Nodemcu ESP8266 and GSM module together can
be used in different advanced level projects.
The main advantage of using the Nodemcu with GSM
Module is that, if you have the internet connection and
the Nodemcu module is connected with the Wi-Fi, then you
can monitor the sensor data in real time from anywhere
around the world using the Blynk application, and you will
also be able to receive the alert messages via GSM network.
There are situations when the internet is not available, in a
situation like this you won’t be able to monitor the data in real
time, but you will get the alert messages via GSM network
each time the sensor will cross a threshold value defined in the
programming.
The GSM Sim900A module 3.3V TXD pin is connected with the
Nodemcu RX pin, the 3.3V RXD pin is connected with the
Nodemcu TX pin, while the ground pin of the GSM Sim900A
module is connected with the ground pin of the Nodemcu
ESP8266 Wi-Fi Module. As I explained earlier the recommend
voltage for this GSM module is 4.7 to 5 volts.
Conclusion
Home automation is the need of the hour, which, the feedback analysis also
concludes. In this paper, we have presented two IoT based methods for the
same. The first one is based on GSM module and Arduino UNO and the second
one is based on a Wi-Fi module. Both of these methods as simple and cost
effective to implement and these are not just used to switch ON or OFF an
appliance but also to control it remotely (e.g. from your school or office). Such
an IoT based automation system not only makes people's lives simpler but also
exponentially increases their standard of living.
Future Scope
Lack of internet connectivity in remote areas is hindering growth of the
automation systems in rural areas. But, as internet connectivity is becoming
widely available to everyone, further advanced functions can be implemented
on top of this system. As automation industry is in full swing today, in very
near future, these features will also become widely available to everyone.
Limitation
• Internet connection is required. Initial set up cost is comparatively high.
• It might get some time to get used to the system. Internet connection is
required.
• Initial set up cost is comparatively high. It might get some time to get used to
the system.
References
Electroniclinic.com/nodemcu-with-gsm-sim900A-GSM-wifi-IOT-
GSM-eps8266-and-GSM
Smart automation based on IOT and GSM module
https://www.researchgate.net/publication/331-374-905
www.esploradores.com-contents/upload/2018/04/A-Beginner-
Guide-to-the-ESp8366-1.pdf