SlideShare a Scribd company logo
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2128
Raspberry PI Based Home Appliances
Control System using Microcontroller
Hay Man Oo, Khin Thandar Tun, Thin Thin Oo
Lecturer, Department of Electronic Engineering, Technological University, Meiktila, Myanmar
How to cite this paper: Su Myo Swe|Khin
Myo Sett "Knowledge Discovery in
Classification andDistributionofButterfly
Species From Dagon University Campus,
Myanmar by Rule Induction: CN2
Algorithm"
Published in
International
Journal of Trend in
Scientific Research
and Development
(ijtsrd), ISSN: 2456-
6470, Volume-3 |
Issue-5, August 2019, pp.600-603,
https://doi.org/10.31142/ijtsrd27877
Copyright © 2019 by author(s) and
International Journal ofTrend inScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
Commons Attribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0)
.
ABSTRACT
This paper investigates based on Raspberry PI based home appliances control
system using microcontroller system. The paper proposes to control home
appliances remotely using smart phone.Inthis paper,RaspberryPi is used as a
sever for connecting to Arduino microcontroller by sending string signal
character from user. When Raspberry Pi received string data that sending via
web control page and then transmit that string data toArduinopasses through
logic level converter. Logic level converter is used as converting high voltage
level of Arduino and low voltage level of Raspberry Pi. Raspberry Pi has
already included Wifi hotspot router and the android mobile phone is used as
a router in this paper. This home appliances control system uses in realityand
very low cost in automation system field.
KEYWORDS: Raspberry Pi, Router, Arduino UNO, Gear motor, L298N motor
driver, Logic level converter, 4 channel relay module
I. INTRODUCTION
Home appliances control systemdescribedas introductionoftechnologywithin
the home environment to provide convenience, comfort, security and energy
efficiency to its occupants. Adding intelligence to home environment provide
increased quality of life. Home appliances control system means to grant the
end users to manage and handle the appliances. If user looks at different home
automation systems over time, user has always tried to provide efficient,
convenient and safe ways for home inhabitants to access their homes.
Regardless of the change in user’s hope, growing technology or change of time,
the appearance of a Home appliances control system has remained the same.
The main objective of this paper is to design and implement
a home automation system is capable of controlling and
automating most of the house appliances through an easy
manageable Web interface. The proposed systemhas a great
flexibility by using Wifi technology to interconnect its
distributed sensors to home automation server. This paper
decrease the deployment cost and increase the ability of
upgrading and system reconfiguration.
II. System Block Diagram
Arduino UNO and Raspberry Pi are supplied by DC power
and Arduino connects not only four channel relay module
but also motor driver. Light bulb gets 220 V from the AC
power source. When Arduino UNO drives four channel relay
module AC appliances perform.Thefunctionsofgear motors
for door and curtain are controlled by the motor driver.
Fig 1: Block Diagram of Application on Mobile
Fig 2: Block Diagram of Raspberry Pi Based Home
Appliances System
The flowchart shown in Fig 3 is for the operation of the
system.
Step 1: Start
Step 2: Initialize the router
Step 3: Initialize the Raspberry Pi
Step 4: Initialize the motor
Step 5: Take IP address from user
Step 6: Check the input data. If the input data is HIGH, web
page opens to control home appliances.
Step 7: Exit
IJTSRD27877
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2129
Start
Initialize the
router
Initialize the
Raspberry
Pi
Initialize the motor
Take IP address from user
Open web page stored on Apache
web server of Raspberry Pi
Door Open /
Close
Curtin Open /
Close
Light bulb
ON / OFF
Fan ON /
OFF
Exit
YesIs the input data HIGH
Yes
No
Fig 3: Overall System Flowchart
III. Implementation
A. Software Implementation
Software Implementation for Door Open
The programming language is written as the simplest form
so that it is nothing to have any problem to understand. The
setup function for the door open is declared pin 12, pin 13
and for the motor is declared pin 9. Pin 12 is HIGH and pin
13 is LOW that means the door is opened by using
digitalWrite. And also pin 9 is 100 the door is opened by
using analogWrite. And delay time is three seconds.
digitalWrite (12, HIGH);
digitalWrite (13, LOW);
analogWrite ( 9, Speed);
delay (3800);
digitalWrite (12,LOW);
digitalWrite (13,LOW);
analogWriite (9,0);
Software Implementation for Door Close
The programming language for the door closeis verysimple.
The setup function for the door close is declared pin12, pin
13 and for the motor is declared pin 9. Pin 12 is LOW andpin
13 is HIGH that means the door is closed by using digital
Write. And also pin 9 is 100 the door is closed by using
analog Write. And delay time is three seconds.
Digital Write (12, LOW);
Digital Write (13, HIGH);
Analog Write ( 9, Speed);
Delay (door Delay);
Digital Write (12,LOW);
Digital Write (13,LOW);
analogWriite (9,0);
Software Implementation for Curtain Open
The programming language for the curtain open is very
simple. The setup function for the curtain open is declared
pin 4, pin 5 and for the motor is declared pin 10. Pin 4 is
LOW and pin 5 is HIGH that means the curtain is opened by
using digitalWrite. And also pin 10 is 100 the curtain is
opened by using analogWrite.Anddelaytimeis twoseconds.
digitalWrite (4, LOW);
digitalWrite (5, HIGH);
analogWrite ( 10, Speed);
delay (curtainDelay);
digitalWrite (4,LOW);
digitalWrite (5,LOW);
analogWriite (10,0);
Software Implementation for Curtain Close
The programming language for the curtain close is very
simple. The setup function for the curtain close is declared
pin 4, pin 5 and for the motor is declared pin 10. Pin 4 is
HIGH and pin 5 is LOW that means the curtain is closed by
using digitalWrite. And also pin 10 is 100 the curtain is
closed by using analogWrite. And delay time is two seconds.
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
analogWrite ( 10, Speed);
delay (curtainDelay);
digitalWrite (4,LOW);
digitalWrite (5,LOW);
analogWriite (10,0);
Software Implementation for Light Bulb Open and Light
Bulb Close
The programming language for the light bulb open and light
bulb close are very simple. The setup function for the light
bulb is declared pin 8.Pin 8 is HIGH that means the light bulb
is opened by using digitalWrite. And also pin 8 is LOW, the
light bulb is closed by using digitalWrite.
case “e” :digitalWrite (8, HIGH ); break;
case “f” : digitalWrite (8,LOW ); break;
Software Implementation for Fan Open and Fan Close
The programming language for the fan open and fan close
are very simple. The setup function for the light bulb is
declared pin 7.Pin 7 is HIGH that means the fan is opened by
using digitalWrite. And also pin 7 is LOW; thefanis closedby
using digitalWrite.
case “g” :digitalWrite (7, HIGH ); break;
case “h” : digitalWrite (7,LOW ); break;
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2130
B. Implementation by Hardware
Fig 4: Overall Circuit Diagram of the System
The hardware design ofRaspberryPi basedhomeappliances
control system using microcontroller is shown in Fig 4. Pin
A0 of the logical level converter is connected to the pin D2 of
the Arduino board, pin A1 of the logical level converter is
connected to the pin D3 of the microcontroller and VccB of
the logical level converter is connected to the 5 V pin out of
the microcontroller. Pin B0 of the logical level converter is
connected to the pin 15 (GPIO) of the Raspberry Pi and pin
B1 of the logical level converter is connected to the pin 14
(GPIO) of the Raspberry Pi. VccA of the logical level
converter is connected to the 3.3 V of the Raspberry Pi. The
GND pin of the logical level converter is connected to the
GND pin of the Raspberry Pi. The Raspberry Pi issuppliedby
5 V power adaptor. The input pin 1, pin 2, pin 3, pin 4 of the
L298N motor driver are connected pin D4, D5, D12, D13 of
the microcontroller. The Enable pin A and Enable pin B of
the L298N motor driver are connectedtothepinD9, pinD10
of the microcontroller. Pin 7 of the microcontroller is
connected to the relay 2 and pin 8 of the microcontroller is
connected to the relay 1. The GND pins of both
microcontroller and L298N motor driver are connected to
the GND pin of the logical level converter. The 5 V pin and 12
V pin are connected to the 5 V pin and VIN of the
microcontroller. The output pin 1 and output pin 2 of the
L298N motor driver are connected to the gear motor 1and
gear motor 2. The output pin 3 and output pin 4 of the
L298N motor driver are connected to the gear motor 3 and
gear motor 4. Relay 1 is connected to the fan and fan is
supplied 12 V power adapter. Relay 2 is connected to the
light bulb and light bulb is supplied by 220 V. Theuserinsets
IP address from smart phone and gets open web pages
stored on Apache Web server and then operates door open,
door close, curtain open, curtain close, light bulb open, light
bulb close, fan open and fan close.
IV. Results
The user inserts the IP address and the user seecontrol page
in browser.
Fig 5: Control Web Page
Result for Door Open
If pin 12 is HIGH and pin 13 is LOW, the door is opened.
Fig 6: Result for the Door Open
Result for Door Close
If pin 12 is LOW and pin 13 is HIGH, the door is closed.
Fig 7: Result for the Door Close
Result for Curtain Open
If pin 4 is LOW and pin 5 is HIGH, the curtain is opened.
Fig 8: Result for the Curtain Open
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2131
Result for Curtain Close
If pin 4 is HIGH and pin 5 is LOW, the curtain is closed.
Fig 9: Result for the Curtain Close
Result for Light Bulb Open
If pin 8 is HIGH, the light bulb is opened.
Fig 10: Result for the Light Bulb Open
Result for Light Bulb Close
If pin 8 is LOW, the light bulb is closed.
Fig 11: Result for the Light Bulb Close
Results for Fan Open
If pin 7 is HIGH, the fan is opened.
Fig 12: Result for the Fan Open
Results for Fan Close
If pin 7 is LOW, the fan is closed.
Fig 13: Result for the Fan Close
V. Conclusion
The devices produced enable the user to control the
appliances using pre existing devices such as the smart
phone or home computer. The interfaces are intuitive and
easy to use and provide the user with a more accessible
interface then those found in thehome.Thedevices alsovery
easy to integrate into existingapplications and requireonly a
small amount of expertise to install. Userresearchshows the
many types of applications for implementing home
automation and the applications are not limited to those
discussed in this paper. The technology used in a wide
variety of applications that require the use of sensors and
appliances. This paper successfully designed a system that
communicates with a mobile device suchas a smartphone or
laptop via Raspberry Pi to applications that benefitfromthis
work.
REFERENCES
[1] Ms. Akanksha Rajendra Surve, Mr. Sampat Vaidya.
“Research Paper on Android based Home automation
using Raspberry Pi”. International Journal of Advance
Engineering and Research Development (Volume 4,
Issue 6) (June 2017).
[2] Neha Malik, Yogita Bodwade. International Journal of
Advance Research in computer and communication
Engineering. (Volume 6, Issue 3) (March 2017)
[3] Vaishnavi S. Gunge. Walchand Institude of Technology,
Solapur. International Journal of Computer
Applications National Seminar on Recent Trends in
Data Mining (RTDM 2016)
[4] Monika M Patel, Mehul A Jajal and Dixita B Vataliya.
Home automation using Raspberry Pi. International
Journal of Innovative and Emerging Research in
Engineering (Volume 2, Issue 3) (2015)
[5] M. P. Sathish, Dr. S. A. K. Jilani, Asst. Professor. Home
Automation through E-mail using Raspberry Pi.
International Journal of Advanced Research in
Electronics and communication Engineering. (Volume
4, Issue 9) (September 2015)
[6] Allison M Okamura, Stanford University: Arduino
Programming language (2014)
[7] Md. Nasimuzzaman Chowdhury, Md. Shiblee Nooman
and Srijon Sarker. Access control of Door and Home
security by RaspberryPi ThroughInternet.Internationl
Journal of Scientific and Engineering Research
(Volume4) (October 2013)

More Related Content

PDF
Icacci2017 lowcostimplementationofsmarthomeautomation
DOC
Pap2 T Sip 3
PDF
IRJET - Implementation of Network Security and Traffic Filtering using Access...
PDF
Using security certificates on yealink ip phones v83 10
PDF
Reverse Engineering BLE Devices Documentation
PDF
Cisco AP 1200 Series
PDF
IRJET- Raspberry Pi and NodeMCU based Home Automation System
PDF
Fingerprinting Bluetooth-Low-Energy Devices Based on the Generic Attribute Pr...
Icacci2017 lowcostimplementationofsmarthomeautomation
Pap2 T Sip 3
IRJET - Implementation of Network Security and Traffic Filtering using Access...
Using security certificates on yealink ip phones v83 10
Reverse Engineering BLE Devices Documentation
Cisco AP 1200 Series
IRJET- Raspberry Pi and NodeMCU based Home Automation System
Fingerprinting Bluetooth-Low-Energy Devices Based on the Generic Attribute Pr...

What's hot (10)

PDF
Polycom soundpoint ip500 user guide
PPTX
Seminar on Voip Challenges and Countermeasures
PDF
IRJET - Smart Door System
PPT
Matrix dgs&d presentation
PDF
DC4420 Bluetooth Security
PPTX
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
PDF
IRJET - Home Security System using Arduino
PDF
PPTX
Voice encryption for gsm using arduino
PDF
Hands-Free Profile 1.7
Polycom soundpoint ip500 user guide
Seminar on Voip Challenges and Countermeasures
IRJET - Smart Door System
Matrix dgs&d presentation
DC4420 Bluetooth Security
Labmeeting - 20150211 - Novel End-to-End Voice Encryption Method in GSM System
IRJET - Home Security System using Arduino
Voice encryption for gsm using arduino
Hands-Free Profile 1.7
Ad

Similar to Raspberry PI Based Home Appliances Control System using Microcontroller (20)

PPTX
home automation using raspberry pi
PDF
IOT: Home Automation using Android Application
PDF
Home Automation System using Arduino and Android
PDF
IRJET- IoT based System for Smart and Secured Home
DOCX
Report Home automation using arduino
PPTX
WEB BASED REALTIME CONTROL AND HOME AUTOMATION SYSTEM
PDF
Arduino Based Smart Home Automation System
PDF
Design of home automation base on internet
DOCX
Smart home automation system
PDF
IRJEWT-An Intelligent Remote Controlled System for Smart Home Automation
PDF
GSM Based Home Appliance Control System
ODP
Home Automation System
PPTX
Iot based home automation
PDF
Domotics – A Cost Effective Smart Home Automation System Using Wifi as Networ...
PDF
Smart home using andriod application
PDF
Smart Home Automation using Wi-Fi
PDF
IRJET- Home Monitoring over IoT based Wifi Module
PPTX
Development of a Low Cost, Reliable & Scalable Home Automation System.
PDF
A Comparative Study of Internet of Things Based Home Automation System
DOCX
Control of lights + fan using wi fi and bluetooth
home automation using raspberry pi
IOT: Home Automation using Android Application
Home Automation System using Arduino and Android
IRJET- IoT based System for Smart and Secured Home
Report Home automation using arduino
WEB BASED REALTIME CONTROL AND HOME AUTOMATION SYSTEM
Arduino Based Smart Home Automation System
Design of home automation base on internet
Smart home automation system
IRJEWT-An Intelligent Remote Controlled System for Smart Home Automation
GSM Based Home Appliance Control System
Home Automation System
Iot based home automation
Domotics – A Cost Effective Smart Home Automation System Using Wifi as Networ...
Smart home using andriod application
Smart Home Automation using Wi-Fi
IRJET- Home Monitoring over IoT based Wifi Module
Development of a Low Cost, Reliable & Scalable Home Automation System.
A Comparative Study of Internet of Things Based Home Automation System
Control of lights + fan using wi fi and bluetooth
Ad

More from ijtsrd (20)

PDF
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
PDF
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
PDF
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
PDF
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
PDF
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
PDF
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
PDF
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
PDF
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
PDF
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
PDF
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
PDF
Automatic Accident Detection and Emergency Alert System using IoT
PDF
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
PDF
The Role of Media in Tribal Health and Educational Progress of Odisha
PDF
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
PDF
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
PDF
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
PDF
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Uterine Fibroids Homoeopathic Perspectives
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
Automatic Accident Detection and Emergency Alert System using IoT
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
The Role of Media in Tribal Health and Educational Progress of Odisha
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
Vitiligo Treated Homoeopathically A Case Report
Vitiligo Treated Homoeopathically A Case Report
Uterine Fibroids Homoeopathic Perspectives

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Structure & Organelles in detailed.
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Open folder Downloads.pdf yes yes ges yes
PPTX
Onica Farming 24rsclub profitable farm business
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Structure & Organelles in detailed.
Pharmacology of Heart Failure /Pharmacotherapy of CHF
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Renaissance Architecture: A Journey from Faith to Humanism
Open folder Downloads.pdf yes yes ges yes
Onica Farming 24rsclub profitable farm business
O7-L3 Supply Chain Operations - ICLT Program
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
How to Manage Starshipit in Odoo 18 - Odoo Slides
UPPER GASTRO INTESTINAL DISORDER.docx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
human mycosis Human fungal infections are called human mycosis..pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
O5-L3 Freight Transport Ops (International) V1.pdf

Raspberry PI Based Home Appliances Control System using Microcontroller

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 3 Issue 5, August 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2128 Raspberry PI Based Home Appliances Control System using Microcontroller Hay Man Oo, Khin Thandar Tun, Thin Thin Oo Lecturer, Department of Electronic Engineering, Technological University, Meiktila, Myanmar How to cite this paper: Su Myo Swe|Khin Myo Sett "Knowledge Discovery in Classification andDistributionofButterfly Species From Dagon University Campus, Myanmar by Rule Induction: CN2 Algorithm" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-3 | Issue-5, August 2019, pp.600-603, https://doi.org/10.31142/ijtsrd27877 Copyright © 2019 by author(s) and International Journal ofTrend inScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0) . ABSTRACT This paper investigates based on Raspberry PI based home appliances control system using microcontroller system. The paper proposes to control home appliances remotely using smart phone.Inthis paper,RaspberryPi is used as a sever for connecting to Arduino microcontroller by sending string signal character from user. When Raspberry Pi received string data that sending via web control page and then transmit that string data toArduinopasses through logic level converter. Logic level converter is used as converting high voltage level of Arduino and low voltage level of Raspberry Pi. Raspberry Pi has already included Wifi hotspot router and the android mobile phone is used as a router in this paper. This home appliances control system uses in realityand very low cost in automation system field. KEYWORDS: Raspberry Pi, Router, Arduino UNO, Gear motor, L298N motor driver, Logic level converter, 4 channel relay module I. INTRODUCTION Home appliances control systemdescribedas introductionoftechnologywithin the home environment to provide convenience, comfort, security and energy efficiency to its occupants. Adding intelligence to home environment provide increased quality of life. Home appliances control system means to grant the end users to manage and handle the appliances. If user looks at different home automation systems over time, user has always tried to provide efficient, convenient and safe ways for home inhabitants to access their homes. Regardless of the change in user’s hope, growing technology or change of time, the appearance of a Home appliances control system has remained the same. The main objective of this paper is to design and implement a home automation system is capable of controlling and automating most of the house appliances through an easy manageable Web interface. The proposed systemhas a great flexibility by using Wifi technology to interconnect its distributed sensors to home automation server. This paper decrease the deployment cost and increase the ability of upgrading and system reconfiguration. II. System Block Diagram Arduino UNO and Raspberry Pi are supplied by DC power and Arduino connects not only four channel relay module but also motor driver. Light bulb gets 220 V from the AC power source. When Arduino UNO drives four channel relay module AC appliances perform.Thefunctionsofgear motors for door and curtain are controlled by the motor driver. Fig 1: Block Diagram of Application on Mobile Fig 2: Block Diagram of Raspberry Pi Based Home Appliances System The flowchart shown in Fig 3 is for the operation of the system. Step 1: Start Step 2: Initialize the router Step 3: Initialize the Raspberry Pi Step 4: Initialize the motor Step 5: Take IP address from user Step 6: Check the input data. If the input data is HIGH, web page opens to control home appliances. Step 7: Exit IJTSRD27877
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2129 Start Initialize the router Initialize the Raspberry Pi Initialize the motor Take IP address from user Open web page stored on Apache web server of Raspberry Pi Door Open / Close Curtin Open / Close Light bulb ON / OFF Fan ON / OFF Exit YesIs the input data HIGH Yes No Fig 3: Overall System Flowchart III. Implementation A. Software Implementation Software Implementation for Door Open The programming language is written as the simplest form so that it is nothing to have any problem to understand. The setup function for the door open is declared pin 12, pin 13 and for the motor is declared pin 9. Pin 12 is HIGH and pin 13 is LOW that means the door is opened by using digitalWrite. And also pin 9 is 100 the door is opened by using analogWrite. And delay time is three seconds. digitalWrite (12, HIGH); digitalWrite (13, LOW); analogWrite ( 9, Speed); delay (3800); digitalWrite (12,LOW); digitalWrite (13,LOW); analogWriite (9,0); Software Implementation for Door Close The programming language for the door closeis verysimple. The setup function for the door close is declared pin12, pin 13 and for the motor is declared pin 9. Pin 12 is LOW andpin 13 is HIGH that means the door is closed by using digital Write. And also pin 9 is 100 the door is closed by using analog Write. And delay time is three seconds. Digital Write (12, LOW); Digital Write (13, HIGH); Analog Write ( 9, Speed); Delay (door Delay); Digital Write (12,LOW); Digital Write (13,LOW); analogWriite (9,0); Software Implementation for Curtain Open The programming language for the curtain open is very simple. The setup function for the curtain open is declared pin 4, pin 5 and for the motor is declared pin 10. Pin 4 is LOW and pin 5 is HIGH that means the curtain is opened by using digitalWrite. And also pin 10 is 100 the curtain is opened by using analogWrite.Anddelaytimeis twoseconds. digitalWrite (4, LOW); digitalWrite (5, HIGH); analogWrite ( 10, Speed); delay (curtainDelay); digitalWrite (4,LOW); digitalWrite (5,LOW); analogWriite (10,0); Software Implementation for Curtain Close The programming language for the curtain close is very simple. The setup function for the curtain close is declared pin 4, pin 5 and for the motor is declared pin 10. Pin 4 is HIGH and pin 5 is LOW that means the curtain is closed by using digitalWrite. And also pin 10 is 100 the curtain is closed by using analogWrite. And delay time is two seconds. digitalWrite (4, HIGH); digitalWrite (5, LOW); analogWrite ( 10, Speed); delay (curtainDelay); digitalWrite (4,LOW); digitalWrite (5,LOW); analogWriite (10,0); Software Implementation for Light Bulb Open and Light Bulb Close The programming language for the light bulb open and light bulb close are very simple. The setup function for the light bulb is declared pin 8.Pin 8 is HIGH that means the light bulb is opened by using digitalWrite. And also pin 8 is LOW, the light bulb is closed by using digitalWrite. case “e” :digitalWrite (8, HIGH ); break; case “f” : digitalWrite (8,LOW ); break; Software Implementation for Fan Open and Fan Close The programming language for the fan open and fan close are very simple. The setup function for the light bulb is declared pin 7.Pin 7 is HIGH that means the fan is opened by using digitalWrite. And also pin 7 is LOW; thefanis closedby using digitalWrite. case “g” :digitalWrite (7, HIGH ); break; case “h” : digitalWrite (7,LOW ); break;
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2130 B. Implementation by Hardware Fig 4: Overall Circuit Diagram of the System The hardware design ofRaspberryPi basedhomeappliances control system using microcontroller is shown in Fig 4. Pin A0 of the logical level converter is connected to the pin D2 of the Arduino board, pin A1 of the logical level converter is connected to the pin D3 of the microcontroller and VccB of the logical level converter is connected to the 5 V pin out of the microcontroller. Pin B0 of the logical level converter is connected to the pin 15 (GPIO) of the Raspberry Pi and pin B1 of the logical level converter is connected to the pin 14 (GPIO) of the Raspberry Pi. VccA of the logical level converter is connected to the 3.3 V of the Raspberry Pi. The GND pin of the logical level converter is connected to the GND pin of the Raspberry Pi. The Raspberry Pi issuppliedby 5 V power adaptor. The input pin 1, pin 2, pin 3, pin 4 of the L298N motor driver are connected pin D4, D5, D12, D13 of the microcontroller. The Enable pin A and Enable pin B of the L298N motor driver are connectedtothepinD9, pinD10 of the microcontroller. Pin 7 of the microcontroller is connected to the relay 2 and pin 8 of the microcontroller is connected to the relay 1. The GND pins of both microcontroller and L298N motor driver are connected to the GND pin of the logical level converter. The 5 V pin and 12 V pin are connected to the 5 V pin and VIN of the microcontroller. The output pin 1 and output pin 2 of the L298N motor driver are connected to the gear motor 1and gear motor 2. The output pin 3 and output pin 4 of the L298N motor driver are connected to the gear motor 3 and gear motor 4. Relay 1 is connected to the fan and fan is supplied 12 V power adapter. Relay 2 is connected to the light bulb and light bulb is supplied by 220 V. Theuserinsets IP address from smart phone and gets open web pages stored on Apache Web server and then operates door open, door close, curtain open, curtain close, light bulb open, light bulb close, fan open and fan close. IV. Results The user inserts the IP address and the user seecontrol page in browser. Fig 5: Control Web Page Result for Door Open If pin 12 is HIGH and pin 13 is LOW, the door is opened. Fig 6: Result for the Door Open Result for Door Close If pin 12 is LOW and pin 13 is HIGH, the door is closed. Fig 7: Result for the Door Close Result for Curtain Open If pin 4 is LOW and pin 5 is HIGH, the curtain is opened. Fig 8: Result for the Curtain Open
  • 4. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD27877 | Volume – 3 | Issue – 5 | July - August 2019 Page 2131 Result for Curtain Close If pin 4 is HIGH and pin 5 is LOW, the curtain is closed. Fig 9: Result for the Curtain Close Result for Light Bulb Open If pin 8 is HIGH, the light bulb is opened. Fig 10: Result for the Light Bulb Open Result for Light Bulb Close If pin 8 is LOW, the light bulb is closed. Fig 11: Result for the Light Bulb Close Results for Fan Open If pin 7 is HIGH, the fan is opened. Fig 12: Result for the Fan Open Results for Fan Close If pin 7 is LOW, the fan is closed. Fig 13: Result for the Fan Close V. Conclusion The devices produced enable the user to control the appliances using pre existing devices such as the smart phone or home computer. The interfaces are intuitive and easy to use and provide the user with a more accessible interface then those found in thehome.Thedevices alsovery easy to integrate into existingapplications and requireonly a small amount of expertise to install. Userresearchshows the many types of applications for implementing home automation and the applications are not limited to those discussed in this paper. The technology used in a wide variety of applications that require the use of sensors and appliances. This paper successfully designed a system that communicates with a mobile device suchas a smartphone or laptop via Raspberry Pi to applications that benefitfromthis work. REFERENCES [1] Ms. Akanksha Rajendra Surve, Mr. Sampat Vaidya. “Research Paper on Android based Home automation using Raspberry Pi”. International Journal of Advance Engineering and Research Development (Volume 4, Issue 6) (June 2017). [2] Neha Malik, Yogita Bodwade. International Journal of Advance Research in computer and communication Engineering. (Volume 6, Issue 3) (March 2017) [3] Vaishnavi S. Gunge. Walchand Institude of Technology, Solapur. International Journal of Computer Applications National Seminar on Recent Trends in Data Mining (RTDM 2016) [4] Monika M Patel, Mehul A Jajal and Dixita B Vataliya. Home automation using Raspberry Pi. International Journal of Innovative and Emerging Research in Engineering (Volume 2, Issue 3) (2015) [5] M. P. Sathish, Dr. S. A. K. Jilani, Asst. Professor. Home Automation through E-mail using Raspberry Pi. International Journal of Advanced Research in Electronics and communication Engineering. (Volume 4, Issue 9) (September 2015) [6] Allison M Okamura, Stanford University: Arduino Programming language (2014) [7] Md. Nasimuzzaman Chowdhury, Md. Shiblee Nooman and Srijon Sarker. Access control of Door and Home security by RaspberryPi ThroughInternet.Internationl Journal of Scientific and Engineering Research (Volume4) (October 2013)