Full text
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 DOI: 10.5121/ijcsit.2018.10406 65 R EMOTE C ONTROL F OR S MART C LASSROOM W ITH B LUETOOTH N ETWORKS Tony Tsang 1 and Leung Ming Kit 2 1,2 Centre of International Education, Hong Kong College of Technology, Hong Kong. A BSTRACT 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. K EYWORDS Smartphone, PLC Control, Bluetooth, Android, Arduino. 1. I NTRODUCTION 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
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 66 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. Figure: 1-1. 2. DESIGN T ENDENCE 2.1. Aim and objective In this work, I aim to build up an Android APK [1-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-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. 2.2. Research will be cover 1. Learning and develop Android App
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 67 2. Bluetooth module application. 3. PLC program design and application 2.3 Android The Android application package files (APKs) are program binaries for distributing and installing Android applications onto the Android operating system. Here, we will see the making of an Android Apps [15-17] file step by step to install on a smartphone. The tools & software used in this article: i/ JDK1.6 ii/ Eclipse3.7.2 iii/ Android_SDK It had two methods to export application packages in Eclipse using the tools of Android. The tutorial of making a simple APK as below shown: 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:
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 68 Figure: 2.3-2 3. Export_Signed_Application_Package Click Right_ click in the Android project, choice Android_Tools> Export_Signed_ Appliaction_ Package from the context menu. Choice the project to export it and then in Project blank input the name of a new Android project(for example `AndroidHello’). Then click `Next’. Figure: 2.3-3 4. Keystore_selection To create and post an APK. Create a digitally signed apk. 1. The first step is to create a selfsigned_certificate/keystore. And then choice the Create_new_keystore, input the expected file location and password in this part. 2. Click Next.
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 69 Figure: 2.3-4 3. Key_Creation Fill up the Key_Creation form starting from the first line `Alias’ to create a key, password. And then click Next. Figure: 2.3-5 4. Finally, the first APK file is created. It is ready for installation in android device.
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 70 Figure: 2.3-6 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. 2.4. 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: 1. Android mobile, 2. Wireless Bluetooth Technology and 3. Programmable Logic Controller. Android Smart Classroom via Bluetooth and PLC Figure: 2.4-1 It is easily using in any Android devices, such as: Using in Difference kind of Devices Figure: 2.4-2
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 71 2.5. Design and Developing an APK An APK (Android_application_ package) file are for installing or distributing applications. The file included application code, manifest, resources and assets files. In following figure shown the apk icon. Figure: 2.5-1 2.6.1. Turn on the Bluetooth function Figure: 2.6.1-1 2.6.2. Touching APP Icon on the Android device Design the key of different function on screen.
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 72 Figure: 2.6.2-2 2.7. Touch to control classroom device Figure: 2.7-1 2.8. Apply Bluetooth module and PLC Figure: 2.8-1 2.9. 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.
International Journal of Computer Science & Information Technology (IJCSIT)Vol 10, No 4, August 2018 73 Figure: 2.9.1 2.10. Control Schematic The control schematic is shown below: 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