JOURNAL TECH-E VOL. 8 NO. Online Version Available at: https://jurnal. id/index. php/te JOURNAL OF TECH-E | 2581-1916 (ONLINE) | 2598-7585 (PRINTED) | Article Implementation and Monitoring Water Drinking Necessary on Smart Dispenser with IoT-Based Rahmat Novrianda Dasmen1. Yahya2* 1, 2 Bina Darma University. Computer Engineering. South Sumatera. Indonesia SUBMISSION TRACK A B S T R A C T Recieved: 01, 29, 2024 Final Revision: 07, 24, 2024 Available Online: 08, 08, 2024 Conventional dispensers have limitations in providing drinking water tailored to user preferences and do not focus on efficient resource use. This research aims to address these issues by designing and implementing a smart, efficient automatic dispenser. An experimental method was used to develop an Arduino-based prototype consisting of several components: flow sensor, color sensor, fingerprint sensor, proximity sensor. DC pump, motor driver. NodeMCU, and LCD. The flow sensor measures water volume, the color sensor detects glass color, the fingerprint sensor identifies the user, and the proximity sensor detects the presence of the glass. The DC pump flows water from the tank to the glass, relays and solenoids control the water flow. NodeMCU processes sensor data and connects to IoT, and the LCD displays the required information. A battery backup ensures functionality during power outages. The research results show that the automatic dispenser performs well and meets the research objectives. It provides drinking water according to user preferences: warm water for red glasses, cold water for blue glasses, and room temperature water for green glasses. Additionally, it identifies users through fingerprints and sends notifications via Telegram This smart dispenser offers a more efficient and user-friendly solution compared to conventional KEYWORD Conventional Dispenser. Color Sensor. Fingerprint Sensor. IOT CORRESPONDENCE E-mail: yahyaya068@gmail. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. INTRODUCTION Dispensers are devices that have become an integral part of our daily routine, used to collect drinking water easily and quickly . , . However, conventional dispensers often only provide water at one specific temperature, which may not suit user preferences. In addition, these dispensers often do not consider efficiency in the use of water, energy and other resources. As a result, there is significant waste in water and energy use, which not only harms users, but also has a negative impact on the environment. The limitations of conventional dispensers are the main motivation for the development of smarter and more efficient dispensers. In order to overcome this problem, this research aims to design and implement an automatic dispenser that utilizes flow, proximity and color sensor technology where when someone places a glass, the dispenser will automatically fill water according to the predetermined amount of water that will be filled by the dispenser. This depends on the color of the glass, if the glass tends to be red then the dispenser will fill warm water if the glass tends to be blue then the dispenser will fill cold water, if not both then the dispenser will fill water at normal temperature, all of these systems are connected to IoT to be able to monitoring system and also this system has backup power that comes from the battery. If the power goes out, the system can still be used. II. LITERATURES REVIEW Flow Meter Sensor A sensor is a component used to detect a physical quantity into an electrical quantity so that it can be analyzed using a certain electrical circuit. A flow sensor is a sensor device used to measure fluid flow. Flow sensors are parts used in flow meters . These sensors are generally used in various applications, including automatic dispensers, to measure the amount of flowing water and regulate the water filling process. Flow sensors work by measuring changes in pressure or fluid flow speed and converting them into data that can be used by the control system. Color Sensor TCS 3200 is an IC (Integrated Circui. converting light color to frequency. There are two main components that make up this IC, namely the photodiode and the current to frequency converter. The photodiodes on the TCS3200 IC are arranged in an 8 x 8 array with a configuration: 16 photodiodes to filter red, 16 photodiodes to filter green, 16 photodiodes to filter blue, and 16 photodiodes without a filter . Color sensors can be interpreted as a special spectrum found in ideal or perfect white light. There are two main categories of color, namely basic colors and derived Basic colors refer to basic colors, while derived colors are the result of mixing two basic colors in a color space. For example, it can be seen below. In the context of graphics equipment, there are three basic colors of light: (R = Re. red, (G = Gree. green, and (B = Blu. blue, which is better known as RGB. When combined in a certain composition, these three colors can produce a variety of colors. Finger Print Sensor A fingerprint sensor is a device that utilizes the unique principles of each human fingerprint for identification and authentication purposes . The way it works focuses on creating a digital image of a person's fingerprint pattern. There are several types of technology used in fingerprint sensors, one of which is capacitive technology. In capacitive sensors, the sensor surface is coated with a small number of capacitors whose capacitance will change when a fingerprint touches the surface. The fingerprint sensor working process has several stages, namely data acquisition, processing and verification . In the data acquisition stage, the sensor collects fingerprint information by scanning the surface of the finger placed on the sensor. The resulting data is converted into a digital representation in the form of a fingerprint template. After that, at the processing stage, this fingerprint template is compared with the existing template in the database. If there is sufficient similarity, authentication is granted. This process is very effective because the fingerprint pattern is unique to each individual, thereby enabling a high level of security in a variety of applications, such A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. as device locking, access to buildings, or even individual identification in security and forensic NodeMCU NodeMCU is an electronic board based on the ESP8266 chip with the ability to carry out microcontroller functions and also an internet connection (WiF. There are several I/O pins so that it can be developed into a monitoring and controlling application for IoT projects. The NodeMCU ESP8266 can be programmed with the Arduino compiler, using the Arduino IDE. The physical form of the NodeMCU ESP 8266 has a USB port . ini USB) so it will make programming easier . By default, the term NodeMCU actually refers to the firmware used in the NodeMCU development kit hardware, which can be analogous to the ESP8266 Arduino board . The history of the birth of NodeMCU is close to the release of the ESP8266 on December 30 2013. Espressif Systems as the maker of the ESP8266 started production of the ESP8266 which is a Wi-Fi SoC integrated with the Tensilica Xtensa LX106 processor . Meanwhile. NodeMCU started on October 13, 2014 when Hong committed the first nodemcu-firmware file to Github. DC Pump A DC pump is a device used to flow water from a reservoir to the user's glass or container . This pump works on the principle of moving water through a pipe system using energy from a DC electricity source. DC Water Pump is a type of pump that relies on a DC motor and uses direct voltage as a power source . Its working principle involves applying a voltage difference to the two terminals of the motor. so, the motor will rotate in one direction. Conversely, if the voltage polarity is reversed, the direction of rotation of the motor will change. Therefore, the direction of rotation of the motor on a DC water pump is determined by the polarity of the voltage applied to the two motor terminals . Driver Motor The driver is an arrangement of transistors that functions to drive a DC motor . , . Even though the motor can rotate with DC power, a driver is needed to control the movement of the This driver circuit plays a role in controlling the motor's work. A DC . irect curren. motor is a basic electromechanical device that converts electrical energy into mechanical energy. DC motors use direct voltage as a power source. By applying a voltage difference to the two motor terminals, the motor will rotate in one direction. If the voltage polarity is reversed, the direction of rotation of the motor will also be reversed. The direction of rotation of the motor is determined by the polarity of the voltage on the two terminals, while the magnitude of the voltage difference determines the motor speed. In this context, the driver plays an important role in regulating voltage differences and controlling the direction and speed of rotation of the DC i. FRAMEWORK IoT-Based Water Use Control and Monitoring System Using the ESP8266 Module . This research aims to overcome challenges in controlling water usage costs for households and The author took inspiration by taking the concept of calculating flow and use of clean IV. METHODS The following is a system block diagram of the circuit used. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. Figure 1. Block Diagram System Making an automatic dispenser can be described in three stages, namely input, process and These three stages are interrelated and complement each other. Flow sensor which functions to calculate the volume of water that has been released. Color sensor which functions as a glass color detector to become a reference for the water that will be dispensed by the dispenser. The proximity sensor functions as an indicator for the system to find out if there is a glass. Finger sensor to identify who drinks the water. Water level float to find out whether the system still has enough water. It works the same as a This system has a data processor from the input, namely nodemcu which will control the DC pump based on the input data and display the data to the LCD and IoT. This system has 4 outputs namely: Motor driver which functions to control the DC pump. DC pump which functions to suck water from the reservoir that has been prepared. The LCD functions to display the required data. IoT which will send information data from the system. Figure 2. Flow chart sistem A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. This automatic dispenser uses a flow meter sensor, wanra sensor, finger print sensor, water level float and proximity sensor. The main source is using PLN electricity and backup from the How the tool works is as follows. When the device is turned on, the dispenser will check the finger print sensor. If a fingerprint is detected, the system will check whether the fingerprint has been previously saved. If yes, the proximity sensor will detect the object and then the system will identify the color of the object. If the color tends to be red then the pump on the warm water motor will be active or if it tends to be blue then the cold water pump will be active otherwise the pump will activate the water at normal temperature. When the pump is active the hose on the pump has been modified by adding a flow sensor so that when the flow meter has finished calculating the flow of water provided the system will stop and send data to IoT. The following is a schematic of the smart dispenser series that has been created. Figure 3. Circuit Schematic RESULT . asil perhitunga. To get the desired results the author conducted experiments first on each component. Following are the results of the experiments that the author has made. Color Sensor Testing In this test, prepare 3 glasses to be tested, namely red, green and blue glasses. Place the glasses in front of the sensor. The data obtained is the RGB value of the color detected. Figure 4. Color Sensor Testing Below are the sensor reading results for each glass color. Table 1. Red Glass Color Sensor Test Results Sensor Results A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. Sensor Results Table 2. Green Glass Color Sensor Test Results Sensor Results Table 3. Blue Glass Color Sensor Test Results Sensor Results The results obtained from testing each glass 5 times will give you the range of each glass color A Red = ((R > 100 && B < . && (B < 100 && G < . ) A Green = ((G > 50 && G < . && (B < 90 && R < . ) A Blue = ((B > 100 && B < . && (R < 100 && G < . ) After getting the sensor range, the author carried out experiments on the glass 10 times, and here are the results. Table 4. Glass Testing Glass Sensor RED RED Succeed RED Green Fail RED RED Succeed RED RED Succeed Blue Blue Succeed Blue Green Fail Blue Blue Succeed Green Green Succeed Green Green Succeed Green Green Succeed After testing 10 times, there were 8 successes and 2 failures when detecting the blue color, it was detected as green and when the red glass was detected as green. Flowmeter Sensor Testing In this test, prepare a measuring cup to be a barometer for the success of measuring the volume of water on the flow meter sensor, then activate the system to fill the glass with water and pour the water in the glass into the measuring cup and compare the measurement results with the measuring cup and sensor. Below are the test results. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. Figure 5. Sensor Flow meter In the picture above are the flowmeter and solenoid valve which function to open or close the water output connected to the flow meter because it matches the color of the glass which is detected if red = hot, blue = cold, green = normal. Table 5. Flow Meter Test Results Sensor . Measuring cup . Difference After carrying out 10 experiments, the data obtained is that the sensor can read the volume of water supplied but gets a difference of 20 - (-. , then from this data the system is good for use. Fingerprint Sensor Testing In this test, prepare 3 fingers to be registered on the finger print as registered fingers, then prepare the sensor to carry out the test. The author carried out 10 experiments with a combination of the 3 identified fingers. After registering according to the ID data above, the following are the results of the experiment. that the author created. Table 6. Fingerprint Sensor Testing Results Jari Sensor Keterangan Father . Succeed Father . Succeed Father . Not detected Mother . Succeed Mother . Misrecognition Mother . Succeed Adult Child . Succeed Adult Child . Succeed Adult Child . Succeed 10 Adult Child . Succeed A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. Of the 10 experiments that the author has made, there were 8 successful attempts, 1 attempt was misrecognized and 1 attempt was not detected. From these results the author can draw the conclusion that this sensor can be used for the system he created. IoT Testing In this test the author created a Telegram chat bot which will provide notifications if someone uses this system to carry out testing. Figure 6. Telegram Results From 10 attempts the results were the same as the detection and were sent to the Telegram chat. The following is an example of the results from Telegram. After ensuring that all components are running well, in this test the author installed all the components and simulated the use of the system, carrying out 5 trials. The following are the results Table 7. Whole System Testing Glass Color Fingers IOT Color Sensor Father Red Red Sent accordingly Adult Blue Blue Sent accordingly Child Blue Wrong glass Mother Green Father Red Red Sent accordingly Adult Sent accordingly Blue Blue Child From the 5 experiments above, there was one error during the 3rd experiment, namely inserting a green glass but the system detected a blue glass so the water that came out was cold water and in IoT an error also occurred. The following are the results of the tool. A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. Figure 7. Smart Dispanser VI. CONCLUSION An intelligent and efficient automatic dispenser was successfully designed and implemented by utilizing flow, proximity, color and fingerprint sensor technology, and connected to the Internet of Things (IOT) for real-time monitoring. This automatic dispenser can provide drinking water according to user preferences, depending on the color of the glass used. If the glass is red, the dispenser will fill warm water. if the glass is blue, the dispenser will fill cold water. if the glass is green, the dispenser will fill normal temperature water. This automatic dispenser can also identify users based on fingerprints and provide notifications via Telegram chat bots. This can increase the family's attention to drinking enough water every day. From the discussion on "Implementation and Monitoring of Drinking Water Needs with IoTBased Smart", it can be concluded that this automatic dispenser can replace conventional dispensers which have limitations and waste in the use of water and energy, as well as providing a positive impact on the environment by adding sensors to the dispenser. Making the system even more A THE AUTHORS. PUBLISHED BY Buddhi Dharma University DOI: 10. 31253/te. RAHMAT NOVRIANDA DASMEN / JOURNAL TECH-E VOL. NO. REFERENCES