Development of Smart Home Applications Based on Arduino and Android Platforms: An Experimental Work
Abstract
:1. Introduction
- Most of the methods were developed for local use only. Therefore, remote sensing technology should be taken into accounts (e.g., Bluetooth for controlling systems from a short range and Wi-Fi, IoT, or Cloud for controlling systems remotely from anywhere on the globe).
- Most of the developed smart home applications in prior research are limited to one, two, or three functions. This is not enough. Smart home systems are very beneficial for daily life; therefore, many different applications in the smart home should be developed, controlled, and monitored.
- The required cost for developing the smart applications is often unclear and rarely presented by previous researchers. Therefore, associated costs should be stated clearly to show if the method is cost effective or not.
- Using the Arduino platform compared with other platforms is preferable because the hardware is affordable and easy to program.
- A cost-effective concept ($110) for a smart home has been developed and controlled herein via an Android mobile phone and Arduino platform.
- The interface circuit between the Android platform and the mobile phone using Bluetooth Module HC-06.
- Five different applications for this smart home have been developed which control the lighting and electrical sockets, fan speed, the display for temperature and humidity settings, the fire alarm system, and the toxic gas alarm system.
- For all applications, a graphical user interface has been created based on the RemoteXY website.
- The components, the controls, and the wiring circuit are presented for each application and system. In addition, the system was investigated experimentally, and its effectiveness is proven through this research.
- The system may relieve elderly populations, those with injuries, and people with disabilities from routine stresses and can provide these groups with increased independence.
- The system efficiently manages energy consumption and helps with reducing the household’s carbon footprint.
2. Control Unit and Bluetooth Network
3. Smart Home Applications and Their Control Circuits
3.1. Lighting and Sockets Control
3.2. Fan Speed Control
3.3. Temperature and Humidity Measurement
3.4. Fire Alarm System
3.5. Toxic Gas Leak Warning System
4. Experiments
5. Conclusions and Future Work
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Appendix A. The Executed Code Used to Control Lighting and Sockets
Appendix B. The Executed Code Used to Control Fan Speed
Appendix C. The Executed Code for Programming the Heat and Humidity Sensor
Appendix D. The Executed Code for the Fire Alarm System
Appendix E. The Executed Code for the Toxic Gas Leak System
References
- Alaa, M.; Zaidan, A.A.; Zaidan, B.B.; Talal, M.; Kiah, M.L.M. A review of smart home applications based on Internet of Things. J. Netw. Comput. Appl. 2017, 97, 48–65. [Google Scholar] [CrossRef]
- Rosslin, J.R.; Tai-Hoon, K. Applications, Systems and Methods in Smart Home Technology: A Review. Int. J. Adv. Sci. Technol. 2010, 15, 37–48. [Google Scholar]
- Suresh, S.; Sruthi, P.V. A review on smart home technology. In Proceedings of the 2015 Online International Conference on Green Engineering and Technologies (IC-GET), Coimbatore, India, 27 November 2015; pp. 1–3. [Google Scholar]
- Geraldo Filho, P.R.; Villas, L.A.; Gonçalves, V.P.; Pessin, G.; Loureiro, A.A.; Ueyama, J. Energy-efficient smart home systems: Infrastructure and decision-making process. Internet Things 2019, 5, 153–167. [Google Scholar] [CrossRef]
- Sarhan, Q.I. Systematic Survey on Smart Home Safety and Security Systems Using the Arduino Platform. IEEE Access 2020, 8, 128362–128384. [Google Scholar] [CrossRef]
- Sasikala, S.; Chitranjan, O.R.; Muthulakshmi, K. Implementation of home automation safety control using programmable logic controller. Middle East J. Sci. Res. 2014, 20, 492–501. [Google Scholar]
- Yilmaz, C. Implementation of programmable logic controller-based home automation. J. Appl. Sci. 2010, 10, 1449–1454. [Google Scholar] [CrossRef] [Green Version]
- Barz, C.; I Deaconu, S.; Latinovic, T.; Berdie, A.; Pop-Vadean, A.; Horgos, M. PLCs used in smart home control. IOP Conf. Ser. Mater. Sci. Eng. 2016, 106, 1–6. [Google Scholar] [CrossRef] [Green Version]
- Hasirci, Z.; Cavdar, I.H.; Suljanović, N.; Mujčić, A. An Application of the Broadband PLC for Smart Homes in Turkey. In Proceedings of the 2013 36th International Conference on Telecommunications and Signal Processing (TSP), Rome, Italy, 2–4 July 2013; pp. 1–5. [Google Scholar]
- Cheng, Y.H.; Chao, P.J.; Liang, H.Y.; Kuo, C.N. Smart home environment management using programmable logic controller. Eng. Lett. 2020, 28, 1174–1181. [Google Scholar]
- Bingol, O.; Tasdelen, K.; Keskin, Z.; Kocaturk, Y.E. Web-based Smart Home Automation: PLC- controlled Implementation. Acta Polytech. Hung. 2014, 11, 51–63. [Google Scholar]
- Sarangapani, E.; Narmadhai, N.; Santhosh, N. Industry 4.0 technologies incorporated with Delta PLC based Smart Home Automation for Rural Development. IOP Conf. Ser. Mater. Sci. Eng. 2021, 1084, 012112. [Google Scholar] [CrossRef]
- Naing, M.; Hlaing, N.N.S. Arduino Based Smart Home Automation System. Int. J. Trend Sci. Res. Dev. 2019, 3, 276–280. [Google Scholar] [CrossRef]
- Majhi, A.K.; Dash, S.; Barik, C.K. Arduino based smart home automation system. Accent. Trans. Inf. Secur. 2021, 6, 7–12. [Google Scholar]
- Raza, A.; Baloch, M.H.; Hussain, S.; Malik, M.Z.; Ali, I.; Ali, A.; Ali, A. A Home Automation through Android Mobile App by Using Arduino UNO. In Proceedings of the 2020 23rd IEEE International Multi-Topic Conference, INMIC 2020, Bahawalpur, Pakistan, 5–7 November 2020; pp. 1–6. [Google Scholar]
- Chandramohan, J.; Satheeshkumar, K.; Gopinath, P.A.; Ajithkumar, N.; Ranjithkumar, S. Implementation of Smart Home Automation and Security System Using Arduino and Wi-Fi through Android Application. Int. J. Eng. Res. Technol. 2017, 5, 13–17. [Google Scholar]
- Budiyanto, S.; Silalahi, L.M.; Silaban, F.A.; Salamah, K.S.; Rahayu, F.; Wahyuddin, M.I.; Andryana, S. Design of control and monitoring tools for electricity use loads, and home security systems with internet of things system based on Arduino Mega 2560. IOP Conf. Ser. Mater. Sci. Eng. 2020, 909, 012020. [Google Scholar] [CrossRef]
- Singh, S.; Patra, A.; Shrivastav, T. Home Automation using Arduino With Bluetooth Module. Int. J. Innov. Res. Electr. Electron. Instrum. Control Eng. 2021, 9, 318–320. [Google Scholar]
- Balasingam, S.; Zapiee, M.K.; Mohana, D. Smart Home Automation System Using IOT. Int. J. Recent Technol. Appl. Sci. 2022, 4, 44–53. [Google Scholar] [CrossRef]
- Islam, F.; Hasan, I.; Akter, M.; Uddin, M.S. Implementation and Analysis of an IoT-Based Home Automation Framework. J. Comput. Commun. 2021, 9, 143–157. [Google Scholar] [CrossRef]
- Yar, H.; Imran, A.S.; Khan, Z.A.; Sajjad, M.; Kastrati, Z. Towards Smart Home Automation Using IoT-Enabled Edge-Computing Paradigm. Sensors 2021, 21, 4932. [Google Scholar] [CrossRef] [PubMed]
- Arduino Uno. Available online: https://datasheet.octopart.com/A000066-Arduino-datasheet-38879526.pdf (accessed on 7 October 2022).
- Arduino For Beginners. Available online: https://www.makerspaces.com/wp-content/uploads/2017/02/Arduino-For-Beginners-REV2.pdf (accessed on 7 October 2022).
- Sharkawy, A.-N.; Abdel-Jaber, G.T. Design and Implementation of a Prototype of Elevator Control System: Experimental Work. SVU Int. J. Eng. Sci. Appl. 2022, 3, 80–86. [Google Scholar] [CrossRef]
- HC-06 Bluetooth Module. 2018. Available online: https://components101.com/wireless/hc-06-bluetooth-module-pinout-datasheet (accessed on 3 November 2018).
- RemoteXY. Available online: https://remotexy.com/en/ (accessed on 7 October 2022).
Researchers | Year | Number of Developed Smart Home Applications | Controlled Applications | Controller | Interface | Gaps and Disadvantages |
---|---|---|---|---|---|---|
Sasikala et al. [6] | 2014 | 1 | - ON and OFF status | PLC | HMI | - Few developed applications [1 or 3 only]. - Local use only and remote sensing technology was not considered. - The required cost is not clear. |
Yilmaz, [7] | 2010 | 3 | - Gas sensing - Voltage control of power socket - Circuits of valve control | PLC | Not stated | |
Barz et al. [8] | 2016 | 3 | - Lighting - Room temperature - Irrigation systems | PLC | HMI Weintek eMT3070a touchscreen | |
Naing and Hlaing, [13] | 2019 | 3 | - Light - Room temperature - Alarms and security system | Arduino Nano | SMS | |
Majhi et al. [14] | 2021 | 3 | - Electric bulb—Fans - Alerts if there was a fire breakout | Arduino unit | SMS using the GSM Module | |
Raza et al. [15] | 2020 | 1 | - Only the light | Arduino unit | Bluetooth (HC-05) Module | - Few developed applications [1 or 2 only]. - The required cost is not clear. |
Chandramohan et al. [16] | 2017 | 2 | - Lamps - Fans | Arduino unit | Wi-Fi |
Component | Definition | Technical Specifications |
---|---|---|
Lamps | These are used in the normal lighting of the smart home | - Operating voltage: 220V. - Power: 10 Watt. - Life span: 25,000 H. |
Module Relay | It is used to amplify the signal from the Arduino unit so that it can operate the high voltage components | - Operating voltage: 5V. - Electric current: 10 A. |
Component | Definition | Technical Specifications |
---|---|---|
Fans | Two fans are used to ventilate the rooms of the smart house. | - Operating voltage: 5V. - Electric current: 200 mA. - Size: 5 cm × 5 cm. |
Transistor | It is used to amplify the signal, and it consists of three terminals: base, emitter, and collector. | - Type: 2N2222 (PNP) - Operating voltage: 0.7 V. - Collector current (DC): 800 mA. - Total power dissipation: 500 mW. |
Component | Definition | Technical Specifications |
---|---|---|
Heat and Humidity Sensor (DHT11 Module) | - This sensor gives a digital signal that is in line with temperature and humidity and these signals are easy to read by the Arduino unit. - It consists of three pins as follows: (1) the VCC, which is the positive voltage connected to 3.3 V and 5.5 V. (2) the GND which is connected to the Arduino’s ground. (3) the OUT which sends temperature and humidity data to the Arduino. | - Operating voltage from 3.3–5.5 volts. - Digital reading and using a single exit. - Temperature reading from 0 to 50 °C and relative humidity from 20–90%. - Accuracy: ±5% for humidity and ±2°C. - Standard measurement indicator: 1% for humidity and 1 °C for heat. - Measurement changes factor over sensitive age: ±1% for humidity/year. |
Component | Definition | Technical Specifications |
---|---|---|
Flame Sensor | -It is used to detect fire or light sources of wavelength in the range of 760–1100 nm. This sensor is of a YG1006 type which is a light transistor. -It can detect infrared radiation from the flame and detect fire in a range of 60 degrees Celsius. - This sensor has four pins as follows: (1) the VCC which is the voltage supply from 3.3 V to 5.5 V. (2) the GND which should be grounded. (3) the OUT-D which is responsible for the digital output of the signal. (4) the OUT-A which is responsible for the analog output of the signal. | - The ability to output digital signals (high and low). - The output capacity of an analogue signal (voltage signal) can be measured with more accuracy and is suitable in case there is a need for high accuracy. - Operating voltage: 3.3–5 V. - After detection: 20 cm (4.8 volts)–100 cm (1 volts). - The detection angle is approximately 60 degrees. |
Component | Definition | Technical Specifications |
---|---|---|
Gas Sensor (MQ2) | - It is used in the MQ series sensor. - It is a metal oxide sensor (MOS) and known as Chemiresistors because detection depends on changing the resistance of the sensor when the gas comes into contact with the substance. - Using a simple voltage divider network, gas leakage can be detected. - This sensor detects many types of toxic gases such as LPG, smoke, alcohol, propane, hydrogen, methane, and carbon monoxide. - The sensor consists of four pins as follows: (1) the VCC which is connected to a positive voltage of 5 V. (2) the GND which should be grounded. (3) the OUT-D which is responsible for outputting the digital signal. (4) the OUT-A which is responsible for the analog output of the signal. | - Power consumption: mW > 800 - Sensor resistance: 5% ± 33 Ω - Operating voltage: 5 V - Focus range: 200–10,000 ppm |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sharkawy, A.-N.; Hasanin, M.; Sharf, M.; Mohamed, M.; Elsheikh, A. Development of Smart Home Applications Based on Arduino and Android Platforms: An Experimental Work. Automation 2022, 3, 579-595. https://doi.org/10.3390/automation3040029
Sharkawy A-N, Hasanin M, Sharf M, Mohamed M, Elsheikh A. Development of Smart Home Applications Based on Arduino and Android Platforms: An Experimental Work. Automation. 2022; 3(4):579-595. https://doi.org/10.3390/automation3040029
Chicago/Turabian StyleSharkawy, Abdel-Nasser, Mahmoud Hasanin, Mohamed Sharf, Mahmoud Mohamed, and Ahmed Elsheikh. 2022. "Development of Smart Home Applications Based on Arduino and Android Platforms: An Experimental Work" Automation 3, no. 4: 579-595. https://doi.org/10.3390/automation3040029
APA StyleSharkawy, A. -N., Hasanin, M., Sharf, M., Mohamed, M., & Elsheikh, A. (2022). Development of Smart Home Applications Based on Arduino and Android Platforms: An Experimental Work. Automation, 3(4), 579-595. https://doi.org/10.3390/automation3040029