ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 133
IOT Based Surveillance Robot Using
Raspberry-Pi 3
Dr.S.M. Girirajkumar
1
, A.Yaamini
2
, R.S. Sanchhali
3
and G.Nivashni Devi
4
Professor and head, Department of Instrumentation and Control Engineering, Saranathan College of Engineering,
Venkateswara Nagar, Panjappur, Trichy, Tamil Nadu, India
1
Final year student, Department of Instrumentation and Control Engineering, Saranathan College of Engineering,
Venkateswara Nagar, Panjappur, Trichy, Tamil Nadu, India
2
,3,
4
ABSTRACT: Remote surveillance and monitoring of our frontier has seen a growing need in emerging times . Currently
the surveillance of International border areas is a strenuous task for soldiers. As every field is opting for robotics in order
to improve the existing systems , our aim is to implement the robotics in military security systems for the at most security
.By this paper, we put forward a surveillance robot which is capable of surveilling and detecting for intruders in region
of international borders Therefore the surveillance robot is designed in such as way that it would automatically detect
the invader in the borders and alert the near by security personnel as a helping hand by alerting him through video
streaming over Internet Of Things . The heart of the robot is a powerful Raspberry Pi 3 Model B which is used as the
ultimate controller for the entire operation of the robot In this bot we have used PIR sensor which is interfaced with the
raspberry pi in order to rotate the camera for video streaming and it would be enabled when an intruder is detected. And
Infrared sensor is used for detecting the obstacles in order to avoid collisions. For capturing and streaming the video the
raspberry pi camera is attached to the micro controller which actively monitors the area and send a notification when
any obtrusion is detected. The transmission part of the surveillance robot is carried out using Internet of Things by
enabling WiFi. . The live streaming ability of the raspberry Pi allows the camera feed to be analyzed from any location
using internet. The IOT module eliminates the need of transmitter and receiver module thus it makes the node compact,
cost effective and ease of using. Thus the Raspbian operating system based surveillance robot is designed to achieve the
objective of this paper.
KEYWORDS: surveillance robot, wireless camera, IOT, video streaming ,Raspberrypi
I. INTRODUCTION
In the current scenario, ensuring safety and security has become an inevitable essentiality. Traditionally, surveillance
systems have been installed in every security critical areas. These systems generally has high quality cameras, multiple
computers for monitoring, servers for storing these videos and many security personnel for monitoring these videos.
Wireless system have been under rapid development in recent years. Communication without wiring makes control
systems very compact and robust. The key feature of this technology is that it reads a signal (Transmitting/Encoding
Circuit) and processes it into a wave (low frequency) form which is then Decrypt into a specified signal receiver
(Receiver/encoding) which then decrypt the signal into the previously transmitted signal resulting in a successful wireless
data communication. In robotics, this technology is of heavy demand. By the application of a wireless signal
communication, a robotic system can be made more efficient and compact.
In our proposed system the surveillance robot uses raspberry pi 3 model B as the controller. The unusual movement
due to human interventions is detected by PIR sensor which sends the signal to the raspberry pi which inturn turns on
the USB camera.The camera live streams the video to the web page using Internet of Things. The robot’s movement is
controlled using IR sensor.The camera used here is a night vision camera.Thus the system is more flexible to monitor
even during night.
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 134
II. LITERATURE SURVEY
U. Bokade and V. R. Ratnaparkhe [1] has proposed a method for controlling a wireless robot for surveillance using an
application built on Android platform. Android Smartphone and Raspberry pi board is connected to Wi-Fi. The Video
Streaming is done using MJPG streamer program that gets mjpg data and sends it through a HTTP session. The
experimental result shows that the video streamed up to 15 frames per second. H. R. and M. H. Safwat Hussain [2]has
designed a smart surveillance bot is designed for highly restricted areas with automatic surveillance of an area specified
by the user and obstacle detection and avoidance using Ultrasonic Sensor .human detection using Infrared (IR) thermal
camera and identification of friend or foe (IFF) using RFID tags .live video surveillance using camera and manual remote
control mode. The bot has the ability to detect human presence in an area using thermal image processing. If the bot
identifies the person as foe, it automatically sends the user a notification of intrusion and turns on live video streaming.
Nayyar A., Puri V., Nguyen N.G [3] has proposed an Internet-of-Things-based Internet of Robot. InterBot 1.0 is IoT.
based via ESP8266, and all the data can be viewed in live graphs via ThingSpeak.com. The Results state the efficiency
of Interbot 1.0 in monitoring real-time environments. G. O. E. Abdalla and T. Veeramanikandasamy [4] has given a
Raspbian operating system based spy robot platform with remote monitoring and control algorithm through Internet of
Things (IoT).The human intervention is detected by PIR sensor and it sends the signal to the web server which inturn
sends the video to the control room. This surveillance system using spy robot can be customized for various fields like
industries, banks and shopping malls. Suryavamsi P.S.N., Arockia Selvakumar A [5] proposes, a smart user friendly
surveillance robot is proposed. This obstacle avoiding robot can monitor the status of the entire house while the resident
is away, by detecting the presence of burglars and gas leakage from LPG Cylinders. The robot’s design also includes
transmission of monitored data to the Thing-Speak IoT Cloud Server, from which the resident receives instant email
messages in case of presence of a burglar or excessive gas leakage detected by the robot. Kyunghoon Kim, Soonil Bae
and Kwanghak Huh [6] proposes a new security solution that integrates vision, intelligent algorithm and robot technology
This system transmits images to the control room when unusual movement is detected. This system is used for a small
area. G. Song, K. Yin, Y. Zhou and X. Cheng [7]gives the development and characterization of a surveillance robot with
hopping capabilities for home security. It depends on the elastic elements in a six-bar linkage leg system to enable
hopping locomotion. It can also roll freely on flat floors and change its directions by the two-wheeled differential drive
system. It adopts the ZigBee protocol for wireless communication and therefore can be added to a ZigBee-based home
control network as a mobile video sensor node. Xinyu Wu, Haitao Gong, Pei Chen, Zhong Zhi and Yangsheng Xu [8]
designs, a household surveillance robot that can detect abnormal events by utilizing video and audio information. In our
approach, moving targets can be detected by the robot with a passive acoustic location device. Then the robot tracks the
targets by employing a particle filter algorithm. In adapting to different lighting conditions, the target model is updated
regularly based on an update mechanism, For audio surveillance, Mel frequency cepstral coefficients(MFCC) is used to
extract features from audio information.
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 135
III. METHODOLOGY AND DISCUSSION
1. BLOCK DIAGRAM
2. FLOW CHART
3. HARDWARE IMPLEMENTATION
Raspberry pi 3: The entire proposed system has Raspberry pi Model 3 board, PIRand IRs sensors, L298N motor driver,
and robot chassis. The Raspberry pi 3 Model-B is the 3rdgeneration Raspberry pi minicomputer with a 64-bit 1.2GHz
quad-core processor, 1GB RAM, WiFi and Bluetooth 4.1 controllers. It also has 4 x USB 2.0 ports, 10/100 Ethernet, 40
GPIO pins, Full- size HDMI 1.3a port, Camera interface (CSI), Combined 3.5mm analog audio and composite video jack,
a Display interface (DSI), MicroSD slot and VideoCore IV multimedia/3D graphics core at 400MHz/300MHz. The
GPIO11 of Raspberry Pi is connected to the PIR motion sensor.
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 136
Passive Infrared Sensor: A Passive Infra Red (PIR) sensor is a pyroelectric device which detects level of IR radiation
from the living objects. The PIR device does not emit an IR signal, rather passively detects the infrared radiations coming
from the human body in the surrounding area. The detected infrared pulses are passed to raspberry pi which will reset
or set the sensor output. The PIR sensor will set the output (logic ‘1’) when the living body within the range
approximately less than 10meters and otherwise it reset the output. The PIR sensor module has three terminals: Pin1 is
connected to the vcc terminal of the raspberry pi , Pin2 corresponds to the output terminal of sensor connected to pin 11
of the raspberry pi, and Pin3 is connected to the ground.It is used in many systems because low-power, inexpensive and
easy to interface with all type of microcontrollers.
Fig1 PIR sensor and raspberry pi-3 Interface
Night vision camera: The iball night vision USB camera is 20MP static sensitive type camera. The iball camera is
connected to USB port of Raspberry pi.whenever the motion is sensed the camera is turned on and start recording
video.Then it transmit the recorded video to the IOT cloud via Raspberry Pi.Finally the video could be viewed in the
webpage. The IR sensors determine the obstacles and show the status(high or low) of each IR, and according to the state
of the obstacle the robot moves the opposite direction. The major intention of this system is to capture images when the
human-being is present in the Robot’s ambient and transmit it as soon as possible to the storage which can be accessed
through a webpage. The Robot is developed by using DC geared motors, which is controlled through the GPIO pins of
the Raspberry Pi. The Python programming language is used to operate the robot. Furthermore, the webpage is used to
monitor the action of surveillance robot which is controlled though IoT.
Fig2 Camera and raspberry pi-3 Interface
Relay board :The relay logic is used for controlling the direction of the robot and it is achieved by interfacing the Infar
red sensor with the relay board. The hardware is interfaced in a such a way that whenever the obstacle is detected by the
IR sensor the bot turns its direction in order to avoid the obstacle. And the entire relay board,IR and the motors are
powered up by using the rechargeable 12 volt battery along with the free wheeling diode so that the reverse current
doesn’t causes damage to the battery as well as the circuit by blocking the flow of reverse current . IC 7805 voltage
regulator is used for the purpose of converting the 12v into 5v and it is used for driving the IR sensor . It is arranged in
such a way that the OUT 1 pin of IR 1 and OUT 2 pin of IR 2 are connected to the R1 port and R2 port respectively so
whenever detected control’s the robot’s motion.
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 137
Fig3 Relay Board with IR Sensor and motor
IV. SOFTWARE IMPLEMENTATION
Steps to install Rasbian OS in Raspberry pi
In order to install Raspbian OS in the raspberry pi3 modelB, The next out of box software(NOOBS) has to be installed
first of all.
1. Allocate the drive for installing OS
2. Insert SD card by using the CARD READER or else insert in directly in the SD card slot provided in the raspberry
pi and it can be of 16GB or else 32GB accordingly.
3. Download the WINDISK 32 utility from source forge project which is a zip type file.
4. Extract and run the zip file.
5. Select the file and run as administrator
6. Select the image file which was extracted above
7. Click the drive letter of the SD card in the device box
8. Select write and wait for write process to complete.
9. Exit the image and eject the SD card
Steps to install VNC Viewer
1.Go to - https://www.realvnc.com/en/connect/download/viewer/ and download the vnc viewer 2.Goto downloads and
run the VNC CONNECT setup.
3.Set up the password and user name once the installation is complete. 4.Open the VNC CONNECT using the
password .
5. Connect the raspberry pi with the viewer using raspberry pi’s IP address. 6.Now the viewer is ready for executing the
output.
Fig4 VNC Viewer home page
Webpage Designing The webpage is created with the help of Hyper Text Mark language, the HTML gives the
provision for the basic layout of the site, which is further improved and personalizedby other technologies like PHP and
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 138
JavaScript. PHP and javascript is used to transmit the video which been captured using the night vision Web camera to
the webpage, and the webpage displays the video which is captured using camera when the PIR value goes high when
any motion is detected and the same transferred to the webpage via php.
Fig5 Web page
Internet of Things:The Internet of Things (IoT) can be considered as a universal network which enables the interaction
between non living to non living things and human and the non living things . It is the mechanism in which anything in
the world can by identified using an unique identity to each and everyobject. The video captured can be sent through the
web page with the help of internet. The user can access the video from anywhere in the world through web page. And
the robot can be used in the hazardous place in order to capture the video and to live stream the same over internet.
V. RESULT AND DISCUSSION
The Passive Infrared sensor senses the motion for a range of 3 to 7 meters around the robot’s ambience. After the robot’s
algorithm is executed the detected signal is fed as an input to theRaspberry pi3 which notifies the camera to turn on. Once
the camera is turned on it starts recording the video of the intruder. The video is transmitted through Internet Of Things
to the web page created by the user. Once the video is uploaded, he can login to the Raspberry Pi by knowing its IP
address and using VNC viewer software. For this purpose, the Pi’s IP address should be made static, that is, it should not
change whenever it reboots and connects to the network again.
Fig6 VNC Viewer Authentication
For logging in to the Raspberry Pi from remote location, we need to enter the right credentials, namely, Username and
password which are defined at the time of installation. Once logged in, we can see our desktop from remote location.
Fig7 VNC Viewer desktop site
ISSN (Print) : 2320 3765
ISSN (Online): 2278 8875
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
(A High Impact Factor, Monthly, Peer Reviewed Journal)
Website: www.ijareeie.com
Vol. 9, Issue 2, February 2020
Copyright to IJAREEIE DOI:10.15662/IJAREEIE.2020.0902021 139
Once we gain remote access to our Raspberry Pi, we can view live feed from the camera easily using IoT. The quality
of live feed obtained depends on the resolution of camera used as well as the internet speed at the Raspberry Pi’s end
(for uploading) as well as the user’s end (for video streaming).The robot’s motion is controlled using relay logic and
modified wall follower algorithm.
Fig8 Video of the motion detected
Fig9Surveillance Robot
VI. CONCLUSION
Thus we have designed a smart surveillance system capable of recording video and transmitting to any portable device
like smart phones and laptops. It is advantageous as it offers quick transmission of the video through Internet of Things..
Necessary action can be taken in short span of time in the case of emergency such as the presence of the unwanted people
in war areas who are not allowed in such areas can be determined by the PIR sensor which sends a signal to the Raspberry
Pi when a human - being is in the ambience of the Robot. In turn, the Pi triggers the camera immediately to capture an
image and send it to the web page. The PIR sensor and proximity sensors are activated depend on external stimuli via
Internet of Things. The control room collects this information for later reference.
REFERENCES
1. U. Bokade and V. R. Ratnaparkhe, "Video surveillance robot control using smartphone and Raspberry pi," 2016 International Conference on Communication and
Signal Processing (ICCSP), Melmaruvathur, 2016, pp. 2094-2097 doi: 10.1109/ICCSP.2016.7754547
2. H. R. and M. H. Safwat Hussain, "Surveillance Robot Using Raspberry Pi and IoT," 2018 International Conference on Design Innovations for 3Cs Compute
Communicate Control (ICDI3C), Bangalore, 2018, pp. 46-51.doi: 10.1109/ICDI3C.2018.00018
3. Nayyar A., Puri V., Nguyen N.G., Le D.N. (2018) Smart Surveillance Robot for Real-Time Monitoring and Control System in Environment and Industrial
Applications In: Bhateja V., Nguyen B., Nguyen N., Satapathy S., Le DN. (eds) Information Systems Design and Intelligent Applications. Advances in Intelligent
Systems and Computing, vol 672. Springer, Singapore
4. G. O. E. Abdalla and T. Veeramanikandasamy, "Implementation of spy robot for a surveillance system using Internet protocol of Raspberry Pi," 2017 2nd IEEE
International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), Bangalore, 2017, pp.86-89.
5. Suryavamsi P.S.N., Arockia Selvakumar A. (2019) IoT Controlled Mobile Robot for Home Security and Surveillance. In: Hemanth J., Fernando X., Lafata P., Baig
Z. (eds) International Conference on Intelligent Data Communication Technologies and Internet of Things (I11CICI) 2018. ICICI 2018. Lecture Notes on Data
Engineering and Communications Technologies, vol 26. Springer,cham.
6. Kyunghoon Kim, Soonil Bae and Kwanghak Huh, "Intelligent surveillance and security robot systems,"
7. 2010 IEEE Workshop on Advanced Robotics and its Social Impacts, Seoul, 2010,pp-70-73
8. G. Song, K. Yin, Y. Zhou and X. Cheng, "A surveillance robot with hopping capabilities for home security," in IEEE Transactions on Consumer Electronics, vol. 55,
no. 4, pp. 2034-2039 November,2009.
9. Xinyu Wu, Haitao Gong, Pei Chen, Zhong Zhi and Yangsheng Xu, "Intelligent household surveillance robot," 2008 IEEE International Conference on Robotics and
Biomimetics, Bangkok,2009, pp.1734- 1739