Professional Documents
Culture Documents
BY
Samaa Saad Abd_Alwahab
Noor Sarmed Rafia
Supervised BY
Dr.Sinan Majid Abd_Alsatar
2017
Supervisor Certification
I certify that this project entitled " Design and Implement of Remote Control
System Based on Bluetooth Smart Mobile Phone" was prepared under my supervision
Signature:
Date: 9/5/2017
Acknowledgment
I have taken efforts in this project. However, it would not have been
possible without the kind support and help of many individuals and
information regarding the project & also for their support in completing the
project.
the project and people who have willingly helped me out with their ability
إلهي اليطيب الليل إال بشكرك واليطيب النهار إلى بطاعتك ..والتطيب اللحظات إال
بذكرك ..وال تطيب اآلخرة إال بعفوك ..وال تطيب الجنة إال برؤيتك
هللا جل جالله
إلى من بلغ الرسالة وأدى األمانة ..ونصح األمة ..إلى نبي الرحمة ونور العالمي
سيدنا محمد صلى هللا عليه وسلم
إلى من كلله هللا بالهيبة والوقار ..إلى من علمني العطاء بدون انتظار ..إلى من أحمل
أسمه بكل افتخار ..أرجو من هللا أن يمد في عمرك لترى ثماراً قد حان قطافها بعد طول
..انتظار وستبقى كلماتك نجوم أهتدي بها اليوم وفي الغد وإلى األبد
والدي العزيز
إلى مالكي في الحياة ..إلى معنى الحب وإلى معنى الحنان والتفاني ..إلى بسمة الحياة
وسر الوجود
إلى من كان دعائها سر نجاحي وحنانها بلسم جراحي إلى أغلى الحبايب
أمي الحبيبة
إلى توأم روحي ورفيقة دربي ..إلى صاحبة القلب الطيب والنوايا الصادقة
إلى من رافقتني منذ أن حملنا حقائب صغيرة ومعك سرت الدرب خطوة بخطوة وما
تزال ترافقني حتى اآلن
أختي
ABSTRACT
1.1 introduction 1
1.2 Remote Control Types and 3
Technology
1.2.1 Infrared Remote Control 4
1..2.2 Radio Frequency remote Control 5
1.2.3 Wired Remote Control 6
1.2.4 WI-FI Remote Control 7
1.2.5 Combination-IR,RF, Wi-Fi and 7
wired Remote Control
1.2.6 Dedicated Remote Control 8
1.2.7 Universal Remote Control 8
1.2.8 Learning Remote Control 9
1.2.9 Programmable Remote Control 10
1.3 Bluetooth Remote Control 11
Chapter Two Hardware Requirements 12
2.2.3 Relay 16
Contents
Chapter Three Software 17
3.1 Microcontroller 17
3.2 Arduino 18
3.3 Software 20
Chapter Four Implement of proposal 26
system
4.1 OS Android 26
4.1.1 Android Application on Mobile 27
Phones
4.1.2 Android Application Operated 28
Bluetooth
4.2 Application 28
4.3 Implement of remote control 29
Chapter Five Conclusion &Future work 33
5.1 Conclusion 33
Reference
INTRODUCTION
Chapter One
Introduction
1.1 Introduction
1|ch a p te r one
The aim of the proposed system is to develop a cost effective
solution that will provide controlling of home appliances remotely and
enable home security against intrusion in the absence of homeowner. The
home appliances control system with an affordable cost was thought to be
built that should be providing remote access to the appliances and
allowing home security. Though devices connected as home and office
appliances consume electrical power. These devices should be controlled
as well as turn on/off if required. Most of the times it was done manually.
Now it is a necessity to control devices more effectively and efficiently at
anytime from anywhere.
2|ch a p te r one
Remote controls use infrared often help users major equipment
ordered through some buttons to change various settings. In fact, all the
functions of most of today’s electronic devices can be adjusted via best
remote start, while the buttons on the main device only has a handful of
essential primary node.
There are many types of remote controls on the market today. Below is a
list and description of the most common types of remote controls and the
remote control technology used. Note that there are subcategories for
some types of remote control technology.
3|ch a p te r one
1.2.1 Infrared Remote Control (IR)
Line of sight -
Battery life -
Limited Regulatory Requirements
No Licensing Fees -
Common Devices.
Infrared Technology:
4|ch a p te r one
1.2.2 Radio Frequency remote control (RF)
No line-of-sight required -
Greater Distance.
Common Devices -
5|ch a p te r one
1.2.3 Wired Remote Controls
No interference
One-to-one control
Wired Technology:
6|ch a p te r one
1.2.4 Wi-Fi Remote control
7|ch a p te r one
also transmit RF signals to devices in another room or located behind a
cabinet yet connected to an RF to IR repeater.
8|ch a p te r one
with the television. These Universal Library remotes are also good if you
happen to lose, or break the original remote. You can at least control most
major functions. Keep in mind that typical library universal remotes are
one time programmed and not updateable (though some can be updated).
An older library remotes may not contain the infrared codes for a newer
device. Some major brands will reuse infrared codes so a "power on"
command may be the same "power on" command across multiple models
of the same brand. Some Universal Remote Controls also include a
learning function as shown below.
9|ch a p te r one
memory on the learning remote for later use. Most learning remotes use a
technology that ensures the memory is saved whenever you change the
batteries. Some learning remote controls also come with a pre-stored
'library' of infrared codes and these are selected using the same methods
used with standard URC or library remote controls. To use the learning
feature one must have the original remote, or, use a URC/library remote
to teach the codes. Most learning remote controls are designed to learn
infrared codes from standard infrared remote controls that are sold with
standard consumer devices. There are technical limits however so the
learning feature may not work with all infrared remotes. Keep in mind the
learning technology needs to ensure it is learning a real infrared code and
not some stray light from a light bulb or the sun. These technical filters
are sometimes set to ignore IR light outside typical infrared signals used
with consumer devices. For the most part however they are designed for
consumers using typical consumer infrared controlled devices.
10 | c h a p t e r o n e
1.3 Bluetooth Remote control
There is no need for extra training of that person who is using it.
All the control would be in your hands by using this home
automation system.
This project can provide the facility of monitoring all the
appliances with in the communication range through Bluetooth.
The schematic of Arduino is open source, for the future
enhancement of the project board can be extended to add more
hardware features.
It's cheap
Easy to use
11 | c h a p t e r o n e
Hardware Requirement
CHAPTER TWO
Hardware Requirement
2.1 Block design
In past few years, home automation & remote control and monitoring
systems have seen a rapid growth in terms of technology This system has
simple features designed with the objective of minimum power
consumption by using bluetooth and arduino.
12 | c h a p t e r T w o
2.2 Hardware requirements
In this project we used this hardware to implelment the remote control by
using bluetooth based in mobile :
13 | c h a p t e r T w o
different countries). Besides the information there are three channels of
voice available.
14 | c h a p t e r T w o
2.2.2 Arduino MEGA
Microcontroller ATmega1280
Operating Voltage 5V
Input Voltage 7-12V
(recommended)
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM
output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 128 KB of which 4 KB used by
bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
15 | c h a p t e r T w o
2.2.3 Relay
A relay is a simple electromechanical switch made up of
an electromagnet and a set of contacts. Relays are found hidden in all
sorts of devices. In fact, some of the first computers ever built used relays
to implement Boolean gates which can be turn on and off by an applying
the voltage across its contacts as shown in figure . In this project used a
12V 4-channel relay.
16 | c h a p t e r T w o
Software
CHAPTER THREE
Software
3.1 Microcontroller
17 | C h a p t e r T h r e e
3.2 Arduino
19 | C h a p t e r T h r e e
3.3 Software
20 | C h a p t e r T h r e e
Figure 3-2 A screenshot of the Arduino IDE showing the "Blink"
program, a simple beginner program
21 | C h a p t e r T h r e e
digitalWrite (LED_PIN, LOW); // turn off the LED
delay (1000); // wait one second
}
For the above code to work correctly, the positive side of the
LED must be connected to pin 13 and the negative side of the LED
must be connected to ground. The above code would not be seen by a
standard C++ compiler as a valid program, so when the user clicks the
"Upload to I/O board" button in the IDE, a copy of the code is written
to a temporary file with an extra include header at the top and a very
simple main() function at the bottom, to make it a valid C++ program.
22 | C h a p t e r T h r e e
Here the Arduino software of remote control of Bluetooth and
based on android mobile phone :
#include <SoftwareSerial.h>
#define relay1 2
#define relay2 3
#define relay3 4
#define relay4 5
char val;
void setup() {
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
pinMode(relay4,OUTPUT);
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
digitalWrite(relay4,HIGH);
mySerial.begin(9600);
Serial.begin(9600);
}
void loop() {
//cek data serial from bluetooth android App
if( mySerial.available() >0 ) {
val = mySerial.read();
Serial.println(val);
}
//Relay is on
23 | C h a p t e r T h r e e
if( val == '1' ) {
digitalWrite(relay1,LOW);
}
else if( val == '2' ) {
digitalWrite(relay2,LOW);
}
else if( val == '3' ) {
digitalWrite(relay3,LOW);
}
else if( val == '4' ) {
digitalWrite(relay4,LOW);
}
//relay all on
else if( val == '9' ) {
digitalWrite(relay1,LOW);
digitalWrite(relay2,LOW);
digitalWrite(relay3,LOW);
digitalWrite(relay4,LOW);
}
//relay is off
else if( Val == 'A' ) {
digitalWrite(relay1,HIGH);
}
else if( Val == 'B' ) {
digitalWrite(relay2,HIGH); }
else if( Val == 'C' ) {
24 | C h a p t e r T h r e e
digitalWrite(relay3,HIGH); }
else if( Val == 'D' ) {
digitalWrite(relay4,HIGH); }
//relay all off
else if( Val == 'I' ) {
digitalWrite(relay1,HIGH);
digitalWrite(relay2,HIGH);
digitalWrite(relay3,HIGH);
digitalWrite(relay4,HIGH);
}
}
25 | C h a p t e r T h r e e
Implement of proposal system
Chapter Four
26 | C h a p t e r F o u r
The connection diagram for Arduino is as shown below. For setting up
this system, wiring connections have to be made between the Arduino
and Bluetooth module and also with the relays. Here, the Bluetooth
Module’s Tx is connected to Arduino Rx (digital pin 0) and the
module’s Rx to Arduino Tx (digital pin 1). 5V and GND of the module
are connected to the Arduino’s 5V and GND.
27 | C h a p t e r F o u r
4.1.2 Android Application Operated Bluetooth
By the application that installed in the Android Smart phone now can
turn on the devices and turn off
29 | C h a p t e r F o u r
When Device1 is turned on by the application the figure is shown
below the blue light will turn on because of the relay1 will turn on .
30 | C h a p t e r F o u r
And when Device3 is turned on by the application the figure is shown
below the yellow light will turn on because of the relay3 will turn on.
31 | C h a p t e r F o u r
And when All Devices is turned on and turned off by using the
application in the figures is shown below
32 | C h a p t e r F o u r
Conclusion &Future Work
Chapter Five
5.1 Conclusion
33 | C h a p t e r F i v e
5.2 Future Work
In future this product may have high potential for marketing can added
more relay and connect the arduino with gsm that use when the Bluetooth
turned off
34 | C h a p t e r F i v e
Reference
[1] The official Bluetooth website from Bluetooth SIG: http://www.bluetooth.com
[2] Neng- Shiang Liang; Li-Chen Fu; Chao-Lin Wu. “An integrated, flexible, and Internet-based
control architecture for home automation system in the internet era”. Proceedings ICRA `02. IEEE
International Conference on Robotics and Automation, Vol. 2, pp.1101-1106, 2002.
[3] E. Yavuz, B. Hasan, I. Serkan and K. Duygu. “Safe and Secure PIC Based Remote Control
Application for Intelligent Home”. International Journal of Computer Science and Network Security,
Vol. 7, No. 5, May 2007.
[4] B. Koyuncu. “PC remote control of appliances by using telephone lines”. IEEE Transaction on
Consumer Electronics, Vol. 41, Issue 1, pp.201-209, 1995.
[5] S. Schneider, J. Swanson and Peng-Yung Woo. “Remote telephone control system”. IEEE
Transaction on Consumer Electronics, Vol.43, Issue 2, pp.103-111, 1997.
[6] K.Tan, T.Lee and C.Yee Soh. “Internet-Based Monitoring of Distributed Control Systems-An
Undergraduate Experiment”. IEEE Transaction on Education, Vol. 45, No. 2, May 2002.
[7] N. Swamy, O. Kuljaca and F. Lewis. “Internet-Based Educational Control Systems Lab Using
Net-meeting”. IEEE Transaction on Education, Vol. 45, No. 2, pp.145- 151, May 2002.
[8] P. Lin and H. Broberg. “HVAC Applications”. IEEE Industry Applications Magazine,
pp.49-54, January 2002.
[10] N. Sriskanthan and Tan Karand. “Bluetooth Based Home Automation System”. Journal of
Microprocessors and Microsystems, Vol. 26, pp.281-289, 2002.
[12] http://en.wikipedia.org/wiki/Bluetooth_Special_Interest_Group
ابستخدام التكنولوجيا احلالية اليت سوف تكون مفيدة حلياة اآلخرين هو مسامهة كبرية
للمجتمع .يعرض هذا املشروع تصميم وتنفيذ منخفضة التكلفة ولكن بعد مرنة وآمنة اهلاتف
اخلليوي نظام التشغيل اآليل للمنزل .ويستند التصميم على قائمة بذاهتا اردوينو بت اجمللس
وترتبط األجهزة املنزلية ملنافذ اإلدخال /اإلخراج من هذا اجمللس عرب التبديالت .التواصل
بني اهلاتف اخلليوي وجملس اردوينو بت الالسلكية .مت تصميم هذا النظام لتكون منخفضة
التكل فة وقابلة للتطوير السماح جمموعة متنوعة من األجهزة اليت ميكن السيطرة عليها مع احلد
األدىن من التغيريات على جوهرها .يتم استخدام محاية كلمة املرور للسماح فقط
تصميم وتنفيذ نظام التحكم عن بعد على أساس بلوتوث اهلوات الذيية
احملمولة
يف اجلامعة التكنلوجية كجزء من متطلبات نيل درجة البكلوريوس يف انهنسةة
االلكرتونية
من قبل
مساء سعد عبد الوهاب
نور سرمد رافع
باشراف