International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 09 Issue: 06 | June 2022 www.irjet.net p-ISSN: 2395-0072 © 2022, IRJET | Impact Factor value: 7.529 | ISO 9001:2008 Certified Journal | Page 1002 Design of home automation base on internet Wahyudi 1 , Arifaldy Satriadi 2 , Imam Santoso 3 , Yuli Christyono 4 1,2,3,4 Department of Electrical Engineering, Diponegoro University, Semarang, Indonesia ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract -Technological advancement are now triggering the human mindset to be able to create innovations to facilitate work for better performance. At this time the Internet of Things (IoT) system has been developed which makes it easier for humans to access electronic devices through the internet. When traveling, sometimes someone forgets to turn off the lights or close the gate. Therefore, in this research created a NodeMCU-based home automation design which can control lights and determine the status of the light and a gate controlled by DC Motor through a web server. The web server uses the hosting site and uses the PHP web programming language and uses WiFi internet network as an internet connection on NodeMCU. Testing is done by pressing the light and gate button, afterwards examine the status and sensor value, as well as measuring the time response speed of the light switch and gate. Key Words: Internet of Things, home automation, web server, NodeMCU 1. INTRODUCTION Technological advances are now making people's mindsets to be able to produce innovations to make works for better performance. For example, to turn on and off the lights in the house, residents of the house must walk to the light switch. When traveling, residents of the house cannot check the state of the lights and the gate at home. Without a doubt, humans today can be said to be very close to smartphones that are facilitated everywhere. The problem is that we cannot turn on and turn off the lamp and open and close the fence without our involvement and we don’t know whether the lamp has been turned on, turned off, or it has been damaged also whether the gate is open or closed if we went outside. Many studies have developed the Internet of Things (IoT) technology that controls home appliances or can be called home automation. Some of those are research the control of lamp through the internet using an Android-based Arduino Uno microcontroller. In this study the lamp is controlled by Arduino Uno which has been installed ESP8266 WiFi module with a web server and IoT platform [1]. Another research discussed the implementation of the Wifi NodeMCU ESP8266 module to monitoring vehicle ventilation system. The system activated by mobile application and controlled using on/off [2]. This paper proposed to make a prototype of devices to turn on and turn off the lights, to open and close the gate driven by a DC motor, and to know the status on lights and gate. All this function controlled through a web page. 2. METHODOLOGY 2.1 Hardware Design The design of hardware is divided into controlling the lamp and the gate. The lamp control system requires an internet connection to connect communication between the microcontroller and the web server through NodeMCU, with the relay as the on/off controller. The gate using a DC motor to operate and controlled by the NodeMCU through commands given from the web server. The hardware design block diagram can be seen in Fig -1. Fig -1: Block diagram of hardware design The explanations of the hardware design block diagram are: 1. Web server, as an API that connects communication between databases and web page [3]. 2. Database, as a storage for login data, current sensor value, and the conditions for relay and limit switches. The current sensor value taken by the NodeMCU is sent to the database which will then be displayed on the web page. 3. A web page, as an interface that displays function button such as “Turn On” and “Turn Off” on the lamp section as well as “Open” and “Close” on gate section. It can also display status of the lamp and motorbike fence. The function buttons need PHP scripting so that it can be connected to the database, so the function of turning on and off the lamp can run. To display the current sensor