Final Exam
Final Exam
FINAL EXAM
TECHNICAL WRITTING AND PRESENTATION
The NodeMCU as shown in Fig.1 has assimilated TCP/IP Fig. 3. MCP23008 Multiplexer.
protocol that can give any microcontroller entrance to the
Wi-Fi network that supports 2.4 GHz Wi-Fi (802.11 Wi-Fi
standards). NodeMCU is capable of either connecting to an Master controller is connected via Cloud serverto Mobile
existing wireless connection or hosting an application over http application with graphical representation or a Web application
protocol. Each NodeMCU module comes preprogrammed with which can accessed from anywhere. The application is devel-
an AT command set firmware which means one can simply link oped using Node RED. Node Red provide feature to drag and
this up to your Raspberry Pi device and get about like Wi-Fi drop connection to connect different devices on application.
shield. This help in speedy development of the application.
IV. SYSTEM OVERVIEW
As mentioned earlier the whole system is divided in two
categories.
On premise System:
Fig. 4 shows the block diagram of proposed ESP module based
surveillance and control system. It consists of street lamps,
sensors to detect flow of current, relay to control the on/off
of the device and a 5 v power supply converter and node
MCU at the slave end (electrical device). Sensors are used
to control electrical appliance and send the analog signal of
the environment to the system and perform the related task.
Master end consists of Raspberry Pi 3 controller connected
to Internet connection. The purpose of microcontroller is
to take the data from all the street lamps through Wi fi
connection and convert them into serial communication. The
signal is transferred through the sensors to NodeMCU which in
turns transmit the signal wirelessly to master control terminal.
Master controller detects the signal and perform appropriate
Fig. 5. Block diagram of Wi-Fi based survilience and control system (One
task in case there is detection of failure of street lamps. directional)
The transmission system comprises of NodeMCU at electrical
device end which receives information though sensors attached
to the device. At the other end, master controller (Raspberry
Controller Raspberry Pi to the street lamp device. This Pi is
Pi) which receives information wirelessly and send the data
turn is connected to Cloud server and web application.
to a central monitoring system. Web application presents the
A. Master Controller: It acts like brain for the whole
graphical representation of the received data from the electrical
device control and monitoring system. Raspberry Pi receives
devices.
and transmits signals to and from slave nodes over wired
connection. At the same time, it sends the feedback to a
central monitoring application for visual display of the status
of different electrical devices.
B. Slave Node: Each lamp controller is connected to
Master Controller to send and receive information about the
status of the device. Based on the current sensor detector,
signal is send to the Master Controller about the working
status of the device. If any signal is send from master to slave
then the action is performed based on the data received.
C. Web Application: Web application is used to display
the status of the electrical device in a user friendly way. User
can also send signal from this web application to the device
so that it can be controlled remotely. This application can
communicate with the master controller via HTTP protocol.
D. Software used: AVR studio and Node Red are the two
development tools that are used in this project. Embedded
level programing is done through AVR studio and Node Red
Fig. 4. Block diagram of Wi-Fi based survilience and control system (On
Premise)
One directional:
This is the case of traffic street lamps [11] which grow in
number in one direction. So this is different from the on
premise as here we have challenge of communication range.
As wireless connection range (router or Node MCU) is in
meters, so it is not possible to use in cases where Wi Fi
connection is require in Kilometers. Moreover, to make the
system reliable wired connection is used to connect Master Fig. 6. Receiver Block Diagram
system to control street lamp that requires a lot of energy and
needs manual interview.
Future Scope
The system can be further used to enhance to monitor the
complete traffic system like:
• Reading Number plates of vehicles: MATLAB or Open CV
can be used to further enhance this system to automatically
read Number plates of Vehicles.
• Challan the vehicles for over speeding : In case of traffic
violation or over speeding, challan can be automatically issued
via camera monitoring and recording clips can be saved for
future reference.
Fig. 7. Transmitter Block Diagram • Trespassers detection: Trespassers can be traced if found
guilty.
• Real time deployment of sensors to design and implement
is used to develop web based application. HMIS [ Healthcare Management Information System].
• Live video feedback to traffic control center: Live video
streaming can be screened on to the application to a central
V. ALGORITHM monitoring team.
Algorithm 1: Controlling Electrical device from Web
application. R EFERENCES
[1] Xheladini, Azra, Sertan Deniz Saygili, and Ferhat Dikbiyik. ”An IoT-
Trigger: Switch on the lamp from web application. based smart exam application.” In Smart Technologies, IEEE EUROCON
1. MQTT server on Raspberry Pi controller receives 2017-17th International Conference on, pp. 513-518. IEEE, 2017.
message from web application through Subscriber [2] Minoli, Daniel, Kazem Sohraby, and Benedict Occhiogrosso. ”IoT se-
message. curity (IoTsec) mechanisms for e-health and ambient assisted living
applications.” In Proceedings of the Second IEEE/ACM International
2. Pi reads the message for the client id of the target
Conference on Connected Health: Applications, Systems and Engineering
electrical device. Technologies, pp. 13-18. IEEE Press, 2017.
3. Node Red (Publisher) finds the client id of the target [3] Wang, Shulong, Yibin Hou, Fang Gao, and Xinrong Ji. ”A novel IoT
device and publishes the message to particular device over access architecture for vehicle monitoring system.” In Internet of Things
Wi-Fi signal. (WF-IoT), 2016 IEEE 3rd World Forum on, pp. 639-642. IEEE, 2016.
[4] Biswas, Abdur Rahim, and Raffaele Giaffreda. ”IoT and cloud conver-
Algorithm 2: Sending fault alert from Device to web gence: Opportunities and challenges.” In 2014 IEEE World Forum on
application. Internet of Things (WF-IoT), pp. 375-376. IEEE, 2014.
[5] https://www.espressif.com/
Trigger: Send fault signal from device.
[6] Teja, P. Satya Ravi, V. Kushal, A. Sai Srikar, and K. Srinivasan. ”Pho-
1. ACS712 current sensor senses the fault in electric tosensitive security system for theft detection and control using GSM
current flow and alerts the Node MCU (Publisher) to technology.” In Signal Processing And Communication Engineering
publish message to Subscriber for the fault. Systems (SPACES), 2015 International Conference on, pp. 122-125.
2. Master Controller Pi receives this message from device [7] O. Natu, ”GSM Based Smart Street Light Monitoring,” IEEE , 2013.
over HTTP protocol using MQTT message. [8] I. A. C. L. Zeeshan Kaleem, ”Smart and Energy Efficient LED Street
3. Controller then sends the fault signal to other Light Control,” 2014 12th International Conference on Frontiers of
Information Technology.
Subscriber over HTTP protocol.
[9] https://www.raspberrypi.org/
4. Web application receives this fault signal and displays
[10] https://www.raspberrypi.org/magpi/raspberry-pi-3-specs-benchmarks/
on the web portal.
[11] Shahzad, Gul, Heekwon Yang, Arbab Waheed Ahmad, and Chankil Lee.
”Energy-efficient intelligent street lighting system using trafficadaptive
VI. CONCLUSION control.” IEEE Sensors Journal 16, no. 13 (2016): 5397-5405.
This IOT based device surveillance and control system is [12] Ahuja S., Johari R., Khokhar C. “IoTA: Internet of Things Application”
In Proceedings of the Second International Conference on Computer
exclusively used to keep surveillance on the electrical devices and Communication Technologies. Advances in Intelligent Systems and
working condition and also to control the on/off functionality Computing, vol 381. Springer, 2016.
from a central remote location. The designed system works
efficiently for both indoor and outdoor lighting. On the one
hand it improves efficiency of the system by sending alert
signal in case of any defect and on the other hand it drastically
reduces the electric energy consumption by providing central
control over the appliances. The graphical App based mobile
controlling gives a user friendly and easily accessible platform
to the user. This system can be installed as energy efficient