SIMULATION SLIDING DOOR IMULATION USING ATMEGA32 MICROCONTROLLER

: Most people consider the door only as medium to enter or exit the room. But when observed in more detail again when this door is used by people in public places such as supermarkets, hospitals, offices and malls to open and close of a large size doors by manually feels less effective and efficient. So for that required a control system that can sup-port the function and usefulness of the door in order to provide convenience to the community when using it. This automatic door simulation uses an ATMEGA32 type microcontroller as the controlling center on the automatic door control system. Also use Infrared sensors to detect when someone is about to enter a room, then move the door using DC motor automatically and limit switch as stopper. How this device works is based on microcontroller. The programming language used is the C language programming language. Based on the design, testing and operation can be stated that simulation of automatic sliding doors using microcontroller based Infrared sensor ATMEGA32 work in accordance with expected conditions. This indicates that the simulated sliding door can be implemented to the actual shape.


INTRODUCTION
Most people think of the door only as a medium to enter or exit a room (Alonso et al., 2022).But when considered in more detail when this door is used by many people in public places such as supermarkets, hospitals, offices or malls, to open and close large doors if done manually may feel less effective and efficient (Elsaid et al., 2021).Therefore, a control system is needed that can sup-port the function and usability of the door in order to provide convenience to the community when using it (Li et al., 2013).Therefore, to achieve this, this research will design a system that can make the door open and close itself automatically (Hasibuan et al., 2021).
In the design of this automatic door will use an ATmega32 type microcontroller as the control center in the automatic door control system (Kasmawan et al., 2022).The advantage of using this microcontroller is because of its smaller size when compared to using a PLC as the center controller (Mukendi & Adonis, 2017).In addition, this design will also use an Infrared sensor to detect when there are people who want to enter a room (Wibowo et al., 2017).There have been several studies that have been conducted in the design of automatic sliding door simulations (KoÇ et al., 2022).
The first research con-ducted by Of all the studies, no one has examined the ATMega32 Microcontroller-Based Automatic Sliding Door (Dollas, 2022).So the author will discuss Sliding Doors Using ATMega32 Microcontroller Based Infrared Sensors (Carminati & Scandurra, 2021).So this sliding door can be used automatically and manually if when the automatic sliding door does not function properly, it will be operated manually by pressing the bottom push button.

System Design
In system design there is a circuit schematic that will be a guideline in making the entire system circuit (Mukherjee et al., 2017).All the work of this sliding door simulation system is controlled by a control module, namely a microcontroller (Amole et al., 2020).In the overall circuit using the ATmega 32 microcontroller.

Figure 1 Blok Diagram circuit
The ATmega 32 microcontroller works with a TTL voltage level, in this case a voltage of 5 volts is used.All ports, namely digital pins 0 to 13 and analog pins 0 to 5, are bidirectional I/O with internal pull-ups.To generate the working frequency in this design using a Page 349 Asian Journal of Engineering, Social and Health Volume 2, No. 5 May 2023 crystal oscillator of 16 MHz.with input in the form of infrared sensors, timers, push buttons, and outputs in the form of servo motors.

Sensor system testing
This test is carried out by using objects to block the sensor as a marker of the maximum distance according to the setting, namely by means when the sensor is blocked by an object, the infrared sensor will be active.This test is intended to determine the voltage when the infrared sensor is blocked and unobstructed, then the output of the infrared sensor is measured using a measuring aid, namely by using a volt meter.From the results of measuring the input voltage from the sensor, a stable voltage measurement result of 5Vdc has been obtained.Then in testing sensor sensitivity in accordance with the data obtained in Table 4.5 it can be explained that this infrared sensor is functioning properly.So for the ideal distance used or set on the sensor is 20 cm because it matches the width of the door simulation of this device.

Testing of device by adjusting the input voltage
In this test, the input voltage of the cooperation national of electrical government (PLN) mesh will be set at 110 and 220 VAC intended whether there are changes to the circuit that has been made.And this test will be measured at the input voltage of IC7805 and Infrared Sensor.

CONCLUSION
Based on the results of testing and analysis on the application of the ATMega32 micro-controller for this automatic sliding door simulation, it can be concluded as follows: (1) From the results of the design and testing of the circuit that the author did, for each circuit made can work in accordance with the program that has been made.Where the author has tested the work of the infrared sensor, and the test results show the sensor can function.Furthermore, in testing the power supply circuit that the author did, the rectifier circuit whose voltage is not yet stable l and the LM7805 regulator IC is needed to obtain a stable voltage of 5V DC, so the output voltage of the LM7805 Regulator IC is measured to be stable at 5V DC.So with the results of the tests that the author has done, it can prove that the circuit made has worked in accordance with the desired device work description.So that the purpose of the re-search is in accordance with the test results.(2) This sliding door simulation device based on a microcontroller can be operated automatically and manually.When the automatic position of the door can shift (open or close) if the sensor detects the distance of objects that will pass through the door.Sensor 1 detects, the door will shift (open), and then sensor 2 detects, the door will shift (close).Or if sensor 2 detects movement, the door can shift (open) and if sensor 1 to shift then the door close.Furthermore, for manual positions when the sensor does not work / cannot detect people to enter or exit, manual positions are used.Red button to open the door and green button to close the door.

Figure 3
Figure 3System design display Figure 4Arduino software testing

Table 1 .
Sensitivity sensor testing

Table 2 .
Testing on circuits