REMOTE CONTROL FOR SMART CLASSROOM WITH BLUETOOTH NETWORKS

On 21st Century, it is the rising up generation of smartphone. Smartphone is become indispensable in people's lives. It is whether in social network, e-learning or entertainment. For examples, you want to chat with other peoples, search information, playing electronic games or listen to music. Now, all can have done on the phone by one click, APPs (Applications) makes life be more convenient and excellent. In this project, I decided to build up a smart classroom model. This classroom operation is different to the tradition classroom. Traditionally classroom is facilitated with different type of electrical equipment or accessories to help teachers in the classroom. In the past, most of control devices and facilities in classroom are using mechanical on/off switch and wiring system. Sometimes, teacher often forgot to turn off the electrical device when he/she left the room. It is resulted waste energy as well. The electrical installation works in the classroom are very complicated. My designed system is a set of control through wireless system. It contained with an Apps, Bluetooth, Arduino and PLC. The first part is use smartphone platform, the second is signal transfer through Bluetooth transmit to Arduino. And the last is hard model with PLC control. Simply said, it use and Android platform to control all devices in the classroom. I hope, I can use this system in the classroom.


INTRODUCTION
A Smart classroom system is use wireless to connect between smartphone and devices and classroom facilities.This system can let teacher be more convenience when he/she are teaching in the class.Because teachers did not wait and go in front of the traditional switch to turn on and off the light or projector.He / She just use his/her smartphone devices to control.The advantage of wireless system made lessons more effectively and run smoothly.It does not only flexible, it is cost saving and it can reduce energy losses.
The traditional smart classroom systems are controlled and communicated through kinds of wiring works.They are very difficult to expand or upgrade the system compliant with some new appliances or devices.
The Wireless network not only can provide much more flexibility, mobility, save cost and less energy spent in synthesizing wiring.It can also correspond to communication to others classroom network.
It can make teaching in classroom: 1. Processing more effectively and 2. Running more smoothly 3.And it also saving energy and more safety.Energy saving and safety Teacher often forgot to power off devices when he/she left the classroom.It will make energy wasting and sometimes an overheat or temperature rise in electric device (i.e.Projector, computer, AV system etc.). 1.This system can reduce the power waste and eliminate the overheat harm.2. All the electrical devices in classroom will be POWER OFF automatically within 10 minutes while Bluetooth disconnected.

Aim and objective
In this work, I aim to build up an Android APK [1][2][3] via Bluetooth [4] to control four kinds of electrical devices in the classroom.But Bluetooth cannot operate devices.It is transmitting data only.It cannot control the devices on or off, up or down.That means a microcontroller is necessary to install.There are lot of different kinds of Micro-controller.The first choice is Arduino [5].Arduino is easy to learn and program.There had lot of example of wireless control.For example is intelligent home.It is most common in the market.But I through, the using times and frequency of teacher is larger than in home.But there is no one to design classroom for teacher.At the final, the topic of a smart classroom is decided.
The main parts are the Android, Bluetooth, Arduino and PLC platform [6][7][8][9].All of them need to develop their relative programs.In part of software, they are Android application package, Bluetooth encoding program and decoding program, Arduino instruction program and PLC ladder program.For the hardware, an Android phone, Bluetooth transmitter and receiver, Arduino main board, PLC, a relay PCB board and led test board were necessary.After built up, connected and testing and commissioning of completed above parts, this project will be finished.
The remote technology for class is through electronics and wireless.Used classroom hold electronic appliances was matured.Based on the Android application and through Bluetooth technology, this item on remote control classroom hold electronic appliances was put forward.
Using the Bluetooth transmission of the Bluetooth module, devices of the control network were well managed so that can plug and play.The functions of the control network devices and the interior commands were standardized.A set of classroom control which used Android device to transfer control data, decode control data and the port serial communication were designed in this item.Designed drive applications to operate the Bluetooth, thus the control system can be easily operated.title is to be written in 20 pt.Garamond font, centred and using the bold and "Small Caps" formats.There should be 24 pt.(paragraph) spacing after the last line.

Objective of Work
A The Android system has most mobile users using in the world.Build-up a modern remote classroom device system combinative with:

To control Classroom Device
The system can control the electrical devices such as Lighting system, Projector screen, Microphone system and Air conditioning system inside the classroom.

Looking Youtube for Mobile Apps
In the Video, I learnt i/ The design of initial contact to Android system; ii/ Know the background of writing the Android programming language.It is JAVA iii/ Some concept of OOP iv/ Doing some practical training guided by instructor.

Performance Test
The Remote classroom can operate in the classroom.The control distance about 20m.The Remote classroom can control nine functions.There are on/off up and down for difference electrical devices.Also, it can turn off all the power at the same time in Power off function.
To testing the Remote classroom without Android, it used the access port (figure 4.29) to send the character to the Arduino.The access port can download on internet free.It can connect the COM of the windows and send the data via Bluetooth.
To testing the Android apps output data, it can use the SSCOM.Plug-in the Bluetooth module to USB adapter, and then Plug-in the USB adapter to computer, then Run SSCOM.Ensure the Bluetooth module connected to the smartphone.Next run the Remote classroom apps and then press the button.

Test the setting
1. We use the phone or computer to scan the Bluetooth module 2. Test the name and password 1. Plug in the 5V battery to the socket.The Arduino will turn on immediately.The Arduino nano has a power led (blue).When the power led (blue) is on, it means the power of Arduino is switched on.The Bluetooth module also has signal led (red).The led (red) will flash in normal situation.The normal situation means not connected to any device.When the Bluetooth module had connected to the device, the led will light on instead of 2. Using the smartphone, click into Bluetooth device manager.Click the Bluetooth function to on.3. Scan the Bluetooth module of Remote class room.4.Then, click and connect 5.The message box will show on.It provides a text box for user to type in the key.6. Click the 'Remote classroom' icon to run the apps 7. Click the 'menu' on the smartphone.After that, the apps will show on the option menu on the below 8. Click 'connect device', the list of Bluetooth device will show on.9.If the connection was success.The text message will show the below.10.After above step, starting to control the Remote classroom.

CONCLUSIONS
In the process of my study, I bought two books because I was accustomed to reading books.One is the basic introduction to Google!This is an introduction to Android mobile apps.This book is written by Gasoline and it is very easy to understand.For beginners will be a great help, even if there is no Java basis can easily read this book, it also has some of the teaching can be found here, another is a more advanced Google Android SDK development examples.And, I search from the internet and found out a most useful tutorial video.They contain many the program examples will be helpful for writing programs.
The process of my study is based on the paradigm of the introductory book.Once done one by one, it is recommended that you must play the code yourself, because you can get familiar with the process of developing the program more quickly, and you may encounter many problems.When we solve, we will make a lot of progress.We can also know what kind of mistakes we are likely to make.After learning the basic programming, we must improve our programming capabilities.So, we should start developing a bigger program.
In the process of writing, many problems encountered, of course, is to rely on Google God to find answers, there will be many resources on the Internet can refer to, such as the Android official technical documents, in addition to an SDK inside API Demo.This example has many APIs to learn and it is also known what Android can do.It is highly recommended to learn from this paradigm.In this work, it had Four mains hardware was important for Remote classroom system.There are including body of Classroom, Arduino, electrical devices and relay circuit.For the software, the Android apps and Arduino program was needed.The main difficult is editing the Android program.It was never done before.To learn the Android, develop environment was hard for this project.All things were strange.Fortunately, it can finish on time.That is one of greatness on the project.The Remote could control by any Android smartphone via Bluetooth.The control distance is about 10m.It is enough length for control inside and classroom.

Figure: 2 . 3 - 1 1.
Figure: 2.3-1 1. Export Unsigned Application Package 2. Use right click on a mouse in an Android project (any file name you want), choice Android_Tools>Export_Unsigned_Application_Package from contextual menu.Browse Location_Save_APK and click the save button.Then click OK in the below window:

Figure: 2
Figure: 2.3-5 4. Finally, the first APK file is created.It is ready for installation in android device.

1 . 2 2. 5 .
Figure: 2.4-1 It is easily using in any Android devices, such as: Using in Difference kind of Devices

Figure: 2 .10- 1 1.
Figure: 2.10-1 1. Create an Android Application program (App).2. Edit the Bluetooth Module 3. Draw a relay circuit 4. Draw a a PLC control circuit 5. Make a simulation test 2.11.Button design of classroom for electrical devices