IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017
Internet of Things based Home automation using Raspberry Pi Author:Ramesh G1 ,Dr Venkatratnam P2 ramraj.rathod@gmail.com ,venkataratnam66@gmail.com VTU Extension centre, UTL Technologies Ltd.
Abstract: Automation or automatic control means the use of various control systems for operating equipment. Home automation is exciting field when it is blow up with new technologies like Internet of Things(IoT). It is automation of the home, housework or household activity. Proposed implementation of home automation include centralized control of lighting, heating, ventilation and it is fully control by using any smart phone through the particular android application. The main advantage of this is small device can be part of internet so it is easy to communicate, manage and control without human interferences. Also it provides high degree of security, safety, comfort and energy saving. With the arrival of Raspberry Pi which is small, inexpensive, portable credit-size single board computer with support for a large number of peripherals and network communication like Ethernet port, USB port, HDMI port, SD card slot. Raspberry pi set of technologies now exist that combine the power of PC, communication and multimedia technologies of web and portability of mobile device.
IDL - International Digital Library
Keywords: Home automation, Internet of things, Raspberry Pi, Sensors
1. INTRODUCTION The Internet of Things (IoT) can be described as connecting everyday objects like smartphones, InternetTVs, sensors and actuators to the Internet where the devices are intelligently linked together enabling new forms of communication between things and people, and between things themselves. Building IoT has advanced significantly in the last couple of years since it has added a new dimension to the world of information and communication technologies. The Internet has come a long way over the last 30 years. Old-fashioned IPv4 is giving way to IPv6 so that every device on the Internet can have its own IP address. Machine-to-machine (M2M) communication is on the rise, enabling devices to exchange and act upon information without a person ever being involved. The scope and scale of the Internet have changed as well: industry leaders predict that the number of connected devices will surpass 15 billion nodes by 2015 and 1|P a g e
Copyright@IDL-2017
IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017 reach over 50 billion by 2020. The challenge for the embedded industry is to unlock the value of this growing interconnected web of devices, often referred to as the Internet of Things (IoT), describing it as the ultimate tool in our future surveillance. This network has the power to reshape our cities. review board consisting of individuals who are prominently representing many reputed Universities, Colleges, and Corporate World
supports 1080p30, 720p60 and 640x480p60/90 video. The camera is supported in the latest version of Raspbian, Raspberry Pi's preferred operating system. 3. PIR SENSOR The unit output is high whenever human’s motion is detected. PIR stands for Passive Infrared. In simple terms, it is a
2. OBJECTIVES Guide to getting up and running with the Raspberry Pi Camera The Raspberry Pi Camera Module is a custom designed add-on for Raspberry Pi. It attaches to Raspberry Pi by way of one of the two small sockets on the board upper surface. This interface uses the dedicated CSI interface, which was designed especially for interfacing to cameras. The CSI bus is capable of extremely high data rates, and it exclusively carries pixel data. The board itself is tiny, at around 25mm x 20mm x 9mm. It also weighs just over 3g, making it perfect for mobile or other applications where size and weight are important. It connects to Raspberry Pi by way of a short ribbon cable. The camera is connected to the BCM2835 processor on the Pi via the CSI bus, a higher bandwidth link which carries pixel data from the camera back to the processor. This bus travels along the ribbon cable that attaches the camera board to the Pi. The sensor itself has a native resolution of 5 megapixel, and has a fixed focus lens onboard. In terms of still images, the camera is capable of 2592 x 1944 pixel static images, and also IDL - International Digital Library
motion
detector.
This
sensors
measure
infrared .radiation emanating from objects in the field of view. It only has one output pin and another two pins is connected to 5V and GND separately. Apparent motion is detected when an infrared emitting source with one temperature, such as human body, passes in front of source with another temperature, such as wall. The unit output is high whenever there is motion detected. If the motion is continuous, the output remains high. After motion stops, the output remains high for a few seconds (depend on the variable resistor adjusted). It will remain high for longer if H from the jumper is selected. For this project, the resistant of variable resistor is adjusted to as low as possible so that the output of the sensor would not remain high for long time after motion stops.
2|P a g e
Copyright@IDL-2017
IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017 but merely passively accepts incoming infrared radiation. 4. RASPBERRY PI: 1
Vcc
2
Output
3
GND
A Passive Infrared sensor (PIR
in the construction of PIR-based motion
The Raspberry Pi is a powerful platform in one small package. So, where do you start? In this class, we will begin with the basics such as how to connect accessories to the RPi and how to navigate the RPi’s software. And its set up.
detectors. Apparent motion is detected when
Connect Wireless Keyboard and Mouse
sensor) is an electronic device that measures infrared (IR) light radiating from objects in its field of view. PIR sensors are often used
an infrared source with one temperature, such as a human, passes in front of an infrared source with another temperature, such as a wall. All objects emit what is known as black body radiation. It is usually infrared radiation that is invisible to the human eye but can be detected by electronic devices designed for such a purpose. The term passive in this instance means that the PIR device does not emit an infrared beam
IDL - International Digital Library
3|P a g e
Copyright@IDL-2017
IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017 powered Single Board Computer running at 900MHz
1GB RAM so you can now run bigger and more powerful applications
Identical board layout and footprint as the Model B+, so all cases and 3rd party add-on boards designed for the Model B+ will be fully compatible.
5. Technical Specifications:
Fully HAT compatible
Broadcom BCM2837 Arm7 Quad Core Processor powered Single Board Computer running at 900MHz
1GB RAM
40pin extended GPIO
40pin extended GPIO to enhance your “real world” projects. GPIO is 100% compatible with the Model B+ and A+ boards. First 26 pins are identical to the Model A and Model B boards to provide full backward compatibility across all boards.
4 x USB 2 ports
4 pole Stereo output and Composite video port
Connect a Raspberry Pi camera and touch screen display (each sold separately)
Full size HDMI
CSI camera port for connecting the Raspberry Pi camera
Stream and watch Hi-definition video output at 1080P
DSI display port for connecting the Raspberry Pi touch screen display
Micro SD slot for storing information and loading your operating systems.
Advanced power management:
Micro SD port for loading your operating system and storing data
Micro USB power source
6. Raspberry Pi 2 Model B Features:
Broadcom BCM2837Arm7 Quad Core Processor
IDL - International Digital Library
4|P a g e
You can now provide up to 1.2 AMP to the USB port – enabling you to connect more power hungry USB devices directly to the Raspberry PI. (This feature requires a 2Amp micro USB Power Supply)
Copyright@IDL-2017
IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017
10/100 Ethernet Port to quickly connect the Raspberry Pi to the Internet
Combined 4-pole jack for connecting your stereo audio out and composite video out
Connect Pi Camera To start using the camera module it needs to be connected to the CSI port. To do this, lift the top piece of the camera port and insert the FFC (Flexible Flat ribbon Cable) with the metal contacts facing towards the HDMI port. 7. IMPLIMENTATION INTERFACE Once the template was produced, it was time integrate all the development work to make a complete interface. The python code manages the list of controls that are to be displayed to the user. The software package provides various views to control different aspects of the controls, such as how they are managed and how they appear on specific client software. The Servlet application runs on OpenShift PAAS wherein the Raspberry Pi microprocessor and the users are clients to it. Since OpenShift can provide more powerful IDL - International Digital Library
applications, a more advanced user interface was created. CONCLUSION The devices produced enable the user to control the appliances using pre-existing devices such as their Smartphone or home computer. The interfaces are intuitive and easy to use and provide the user with a more accessible interface then those found in the home. The devices are also very easy to integrate into existing applications and require only a small amount of expertise to install. Our research shows the many types of applications for implementing home automation and the applications are not limited to those discussed in this paper. The technology used could be implemented in a wide variety of applications that require the use of sensors and appliances. This project successfully designed a system that communicates with a mobile device such as a Smartphone or laptop via Raspberry Pi to control a door sensors and a light switches and a camera to stream live video, but has many possible applications that could benefit from this work. REFERENCES [1] Raspberry Pi Home automation system with Arduino by Andrew K Dennis [2] Magazine for Raspberry Pi users “The MagPi “
5|P a g e
Copyright@IDL-2017
IDL - International Digital Library Of Technology & Research Volume 1, Issue 5, May 2017
Available at: www.dbpublications.org
International e-Journal For Technology And Research-2017 [3] Raspberry Pi Architecture by Jon Holton and Tim Fratangelo “The Raspberry Pi Foundation”
[14] Android application development references from developer.android.com
[4] “Home Automation as a service” at International Journal of Computer Networks and Wireless Communications (IJCNWC), June 2012 [5] Home Automation based on ARM and ZigBEE at Undergraduate Academic Research Journal (UARJ), 2012 [6] Bluetooth Remote Home Automation System Using Android Application at IJES 2013 [7] Internet of Things: Ubiquitous Home Control and Monitoring System using Android based Smart Phone at International Journal of Internet of Things 2013 [8] Raspberry pi forum discussions at raspberrypi.org/forums [9] Raspberry Pi Technical documentations from elinux.org [10] Raspberry raspberrypi.org
Pi
latest
kit
from
[11] Debian linux command line from debian.org [12] PuTTy a free telnet/ssh client from putty.org [13] Python application development sources for python.org
IDL - International Digital Library
6|P a g e
Copyright@IDL-2017