=Paper= {{Paper |id=Vol-3693/paper13 |storemode=property |title=Residential Trash Container Automation Alternatives |pdfUrl=https://ceur-ws.org/Vol-3693/paper13.pdf |volume=Vol-3693 |authors=José Esquicha-Tejada,Andrea Cornejo-Paredes,Tatyana Chávez-Barrios,Nadia Chavez-Salas,Aremi Paja-Medina,Jesus Ronquillo-Mallea |dblpUrl=https://dblp.org/rec/conf/jinis/Esquicha-Tejada23 }} ==Residential Trash Container Automation Alternatives== https://ceur-ws.org/Vol-3693/paper13.pdf
                         Residential Trash Container Automation Alternatives
                         José Esquicha-Tejada1,*,†, Andrea Cornejo-Paredes1,†, Tatyana Chávez-Barrios1,†, Nadia
                         Chavez-Salas1,†, Aremi Paja-Medina1,†, Jesus Ronquillo-Mallea1,†
                         1 Department of Formal and Physical Sciences and Engineering, Universidad Catolica de Santa Maria (UCSM), Arequipa,

                         Peru




                                        Abstract
                                        The process and organization of garbage collection in metropolitan cities is inefficient for the current
                                        requirements. Which has brought problems such as pollution, crime and bad appearance and
                                        consequently a tendency to develop a bad habit by the population. This article provides two alternative
                                        solutions for the automation of the garbage container by means of the NodeMCU and Raspberry Pi board
                                        with the help of ultrasound sensors, photovoltaic system, and instant messaging (Telegram). As a result,
                                        it allowed the municipality to know when the right time is to pick up the garbage in the residential. The
                                        SUS instrument was used as validation, which gave us a result of 80% and 75% in terms of usability and
                                        feasibility.

                                        Keywords
                                        IoT, NodeMCU, Garbage Container, Photovoltaic System, Mobile Application 1



                         1. Introduction
                         Technological advances such as the Internet of Things have been proven to improve the quality
                         of life of human beings [1]. This paradigm includes a set of sensors, microcontrollers,
                         communication technologies, and protocols that allow us to create connected solutions in an
                         automated way, giving us the possibility to monitor [2] or execute actions without the need for
                         human intervention [3]. These proposals are increasingly used in different essential areas such
                         as health [4], government, homes [5], among others. Continuously searching for those problems
                         with the highest impact, such as those that prevent us from guaranteeing the health of people and
                         the environment, as is the case of poor solid waste management [6].

                            Recently, population growth as well as current production and consumption habits have
                         resulted in an impressive increase in the generation of solid waste. This has resulted in an
                         overload of the often-scarce public cleaning services, due to the lack of infrastructure and
                         unsustainable practices that have resulted in the deterioration of waste management and
                         ultimately lead to environmental contamination [7]. In countries such as Peru, since containers

                         JINIS 2023: XXX International Conference on Systems Engineering, October 03–05, 2023, Arequipa, Peru
                         *Corresponding author.
                         † These authors contributed equally
                            jesquicha@ucsm.edu.pe (J. Esquicha-Tejada); 274048310@ucsm.edu.pe (A. Cornejo-Paredes);
                         tatyana.chavez@ucsm.edu.pe (T. Chávez-Barrios); nadia.chavez@ucsm.edu.pe (N. Chavez-Salas);
                         71768410@ucsm.edu.pe (A. Paja-Medina); 71437703@ucsm.edu.pe (J. Ronquillo-Mallea)
                             0000-0002-0191-7174 (J. Esquicha-Tejada); 0000-0001-6918-3616 (A. Cornejo-Paredes); 0000-0002-0680-4232
                         (T. Chávez-Barrios); 0000-0001-8034-0053 (N. Chavez-Salas); 0000-0002-6899-5046 (A. Paja-Medina);
                         0000-0003-0714-4579 (J. Ronquillo-Mallea)
                                   © 2023 Copyright for this paper by its authors.
                                   Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
                                   CEUR Workshop Proceedings (CEUR-WS.org)


CEUR
                  ceur-ws.org
Workshop      ISSN 1613-0073
Proceedings
are often filled beyond their capacity. There are frequent daily accumulations of garbage in public
places, which represent infectious foci with high health risks for people with consequences such
as the transmission of bacterial and parasitic diseases, skin infections and chronic diseases, as
well as being a significant problem for the environment [8]. This allows us to conclude that
environmental and sanitary problems are related to poor waste management [9], because even
in many residential areas of the country, they have a traditional service that operates on a single
schedule and does not provide adequate monitoring. Based on the problems presented above,
this paper shows an effective and efficient IoT-based solid waste management system that allows
the identification, tracking, and monitoring of garbage levels in containers in residential areas to
be emptied in a timely manner.


2. Motivation and background
One of the most essential services, especially when it comes to urban areas is solid waste
management services. In 2016, according to the World Bank, the world's cities generated 2.01
billion tons of solid waste, which was a footprint of 740 g. per person per day. However, due to
immense population growth, an increase in waste generation of 70% has been predicted,
resulting in the generation of more than 3400 million tons by 2050 [10]. It is even more
worrisome considering that in countries such as Peru, only in urban areas, more than 7 million
tons of solid waste are generated annually [11], i.e., about 20,000 tons per day and an average of
1000 tons per hour.
    Currently, solid waste is managed using garbage containers, which are cleaned 1 to 3 times
per week depending on the area; however, their inadequate management leads to the following
problems [12]:
    - On occasions the containers are almost empty generating waste of time, fuel and manpower.
    - When the containers exceed their capacity, which results in people leaving their garbage on
    top or on the sides, there is a risk of starting an infectious pole, which causes diseases and
    consequently increases the number of dogs or other stray animals that open the garbage bags
    and spread their contents.

   As a solution to these problems, the use of the Internet of Things (IoT) [13], [14] is proposed
for the construction of an automated container, which will also make use of a photovoltaic system,
making it a totally ecological proposal.


3. Garbage container automation
Knowing the problems that exist in garbage containers, two alternative solutions are proposed
using the NodeMCU board or the Raspberry Pi with different add-ons to automate the garbage
container (see figure 1).




               NodeMCU                         Raspberry Pi 3 B+
Figure 1: Alternatives of development boards for automation of garbage containers
        a) NodeMCU. - It is a module based on the ESP8266 microcontroller integrated with Wi-
        Fi [15].
        b) Raspberry Pi 3B. - It is a low-cost computer with Linux installed, based on a Broadcom
        BCM2837B0 microprocessor [15].
        c) Home Assistant. - It is a Home Automation System, which runs Linux [16].
        d) Adafruit IoT. - It is a system that allows connecting electronic devices to the cloud.
        e) Photovoltaic System. - It requires the following equipment [3]:
                 - Charge controller. - It controls the charge that will be made from our
                 photovoltaic panel to the battery charge, protecting the battery bank from
                 possible surges [17].
                 - Battery (AGM). -Supply energy to all our control system, has the function of
                 supplying energy collected from the photovoltaic panels.
                 - Photovoltaic panel. - Generates energy to power the electronic circuits [18].
        f) Ultrasonic sensor (mic-340/D/M). - These are proximity detectors that work free of
        mechanical friction and detect objects from a distance. The sensor emits a sound
        imperceptible to the human ear to calculate the distance. It will be used to know when the
        dumpster is full or empty [19].
        g) Temperature and humidity sensor (DHT11). - Measures the ambient temperature and
        humidity in the surrounding area [20].
        h) Voltage regulator module (Step Down). - It has the function of adjusting the incoming
        12V supply voltage to a voltage of 5V.
        i) Servomotor (S3003). - Rotary actuator that allows position and speed control of a
        rotating shaft.
        j) Capacitor. - It is a device that stores energy, it allows us to eliminate the bouncing of
        some sensors and actuators.




Figure 2. Proposal for the automation of the garbage container

   The proposal will start when the system is connected to the power supply to operate with the
photovoltaic system. then every time a user wants to open the container the system will check if
the container is full or not (see figure 2). If the garbage can is full, the system will close and send
a message to Telegram [21] that it is full and only the cleaning staff can open it with an RFID card
or the administrator of the automation platform (Adafruit IO [22] or Home Assistant [16]). When
the garbage is emptied from the container again, we start with the first initial step (see Figure 3),
where it will allow you to open the garbage container. In case the garbage container can is not
yet full the cleaning staff can ask the question and a message will be sent in Telegram indicating
the percentage that is full.




Figure 3. Process Diagram

We present two options that could be used for the automation of the garbage container.

    3.1. Option 1: Garbage container with NodeMCU, Adafruit IoT and Telegram

    It is necessary to have NodeMCU as the core, this board must communicate with the
    photovoltaic system (regulator, battery, photovoltaic panel, Step Down), which allows to
    provide daily electrical energy. To know the temperature of the circuits, a temperature and
    humidity sensor (DHT11) has been integrated, also a servo motor (S3003 Futaba) has been
    added to open the door of the garbage container. In addition, to detect the amount of garbage
    in the container, a precision ultrasonic sensor has been integrated to detect if the container
    is full (with respective 6.8 nF capacitor). Also, an RFID receiver has been incorporated to
    allow the cleaning personnel to use it when they want to empty the garbage container (see
    figure 4).

       For the monitoring configuration, the use of the Adafruit IO platform has been
    incorporated, which through its Dashboard allows integration to the proposed solution [15].
Figure 4. Proposed design with NodeMCU

3.2. Option 2: Garbage container with Raspberry Pi, Home Assistant and
     Telegram

With the Raspberry Pi board, it is necessary to use the same sensors and actuators of the
previous proposal, but now we will be using its GPIO of the Raspberry Pi, to connect the
ultrasonic sensor, temperature, and humidity sensor as well as the servomotor (see figure 5).




Figure 5. Proposed design with Raspberry Pi 3 B+
       For the implementation of the proposal, it is always necessary to place a 6.8 nF capacitor
   between the servomotor and the ultrasound as recommended by the manufacturer. For the
   power supply of the whole system is integrated with a photovoltaic system, which includes a
   20W photovoltaic panel, a regulator and a 12AH AGM battery. The entire solution will be used
   to power the automated system. To lower the voltage, a Step Down was required, which will
   allow powering all the electronic components.
       For the configuration, the Home Assistant must be installed on the Raspberry Pi 3 B+ [16],
   then the switch for each of the garbage containers must be created from the Home Assistant
   Dashboard. After that, use the Ngrok tool, to have to the Internet a URL that is displayed
   towards the central of the municipality in charge of the garbage collection [23]. By having the
   RFID card configured, the garbage cleaning personnel and the security guard of the
   residential are provided with it, so that every time the garbage truck is present, the cleaning
   personnel will be able to open the garbage container and perform the garbage emptying
   procedure.
       Finally, for both proposals, the instant messaging system Telegram has been integrated
   on the NodeMCU board [24] and on the Raspberry Pi [25].


4. Results and discussion
A small functional prototype was made to confirm the operation of the two options mentioned in
this article, in addition to showing the reference cost of each option, the comparative and energy
consumption of each proposal.

   4.1. Option 1: NodeMCU with Telegram and Adafruit IO

   Using the Adafruit IO platform allowed us with its dashboard to perform the process of
   enabling or disabling the dumpster lock (toggle block), as well as having the ability to monitor
   the container if it is full (Gauge block), also with Telegram instant messaging you can monitor
   the current status of how is the container from a smartphone, this could be useful for the
   garbage cleaning staff when performing the process of garbage collection (see figure 6). But
   there are also some disadvantages of using the Adafruit IoT platform because its free version
   has some limitations, such as data storage for 30 days and the use of 10 blocks in its
   dashboard.




   Figure 6. NodeMCU with Telegram and Adafruit IO
4.2. Option 2: Raspberry Pi with Telegram and Home Assistant

The Raspberry Pi board was used to install and configure the Home Assistant system, which
allows customization especially for home automation. For this research it was used because
of its versatility and the amount of compatible components that are used in this proposal.
Also, Telegram instant messaging has been integrated to know the current situation of
garbage containers. Like the previous proposal, this last alternative also has disadvantages
such as the complexity of the initial customization of the system, since it requires more
advanced technical knowledge, in addition when several components are used within the
platform it could require many more resources in the system that could generate slowness or
instability; but for the proposal it has been analyzed that each dumpster will have an
independent Home Assistant system, so it will not have any inconvenience (see figure 7).




Figure 7. Raspberry Pi with Telegram and Home Assistant

     The two proposals present three ways to open the garbage container door: by IoT
platforms (Adafruit IoT, Home Assistant), Telegram instant messaging or by using the RFID
card. The last option (RFID card) would be used in case the internet communication with the
garbage container is lost (see figure 8).




Figure 8. Using RFID card in the dumpster
     Table 1 shows the comparative prices (in US Dollars) of the two proposals analyzed in
this research, where option 1 is 13% cheaper than option 2, because this option has an
Operating System, i.e. it integrates a microprocessor, which will allow better resource
management, while the first option only has a microcontroller in its core for sequential
operation as programmed.

Table 1
Component price comparison
     Components                         Price ($) option 1           Price ($) option 2
     Total in U.S. Dollars              298.51                       344.58


    In Table 2, the comparison of the two boards is made, it is concluded that the NodeMCU
board is more economical and consumes less electricity in operation, while the Raspberry Pi
has better hardware features, in addition to having a better Wi-Fi antenna for wireless data
transmission.

Table 2
Comparison between NodeMCU and Raspberry Pi 3B+

   Features                  NodeMCU                         Raspberry Pi 3B+
      Price ($)               8.93                              55
        SoC                    -                               Broadcom BMC2837BO
        CPU                    -                               1.4Ghz (4 cores)
   Input voltage               5v                              5v
      RAM                      64KB                            1GB
        Wi-Fi                  Wi-Fi 802.11 b/g/n              Wi-Fi 802.11 b/g/n/ac
   Consumption                 90mA                            350 mA



     Analyzing the power consumption (see Table 3), option 1 consumes 15% less than option
2, since the board integrates a microcontroller, whereas when a board that integrates a
microprocessor is used, it requires more power consumption because it has an operating
system in operation

Table 3
Comparison of electricity consumption

    Option        Amperage   Voltage (V)       Power (W)     Wh/Day          Wh/Month
                  (mA)
    1             827 mA     5V                4.1375W       99.3Wh/D        2.98KWh/M
    2             1087mA     5V                4.8625W       116.7Wh/D       3.5KWh/M


     Finally, to inspect the results, the System Usability Scale (SUS) instrument was used (see
figure 9), which allows measuring on a scale between 1 and 100 the experience of usability
and user experience in the two proposals, with the result of the sample being 80% and 75%
respectively, since these show a higher result than the average of the instrument, meaning that
  they are a positive coefficient in terms of its assessment in functionality of both proposals by
  the population living in an urbanization.




  Figure 9. SUS Test Results


5. Conclusion
The two proposals were prototyped for dumpster automation, being the first option the most
economical because it allowed us to monitor up to 5 containers from its Adafruit IoT dashboard,
while the second option required the Home Assistant system independent for each container, this
could be favorable if you need to customize each one with more sensors, actuators or even video
surveillance camera, to be visualized by the operator in charge of the municipality. Also, the
energy consumption was analyzed, concluding that option 1 consumes less electricity by 15%
compared to option 2. Finally, by using the Brooke System Usability Scale (SUS) instrument, the
usability tests of both proposals were determined to be satisfactory with 80% and 75%,
respectively.


Acknowledgements
We would like to thank the Equipu Santa Maria Training Program of the Universidad Catolica de
Santa Maria.
References
[1]    S. Li and J. Huang, “GSPN-based reliability-aware performance evaluation of IoT services,”
       Proc.—2017 IEEE 14th Int. Conf. Serv. Comput, pp. 483-486, 2017, doi:
       10.1109/SCC.2017.70.
[2]    H. Montes Romero, A. Pacheco Huachaca, H. Ramos Jara y J. Esquicha Tejada, “Monitoring
       of domestic electrical energy consumption using Arduino“, Proceedings of the LACCEI
       international Multi-conference for Engineering, Education and Technology, pp. 1-5, 2017,
       doi: 10.18687/LACCEI2017.1.1.253.
[3]    J. D. Esquicha-Tejada, J. C. Copa-Pineda, Alternatives of iot irrigation systems for the
       gardens of arequipa, International Journal of Interactive Mobile Technologies 15 (2021)
       4–21. doi:10.3991/ijim.v15i22.22653.
[4]    B. Ghafour Mohammed y D. Salih Hasan, “Smart Healthcare Monitoring System Using IoT,”
       International Journal of Interactive Mobile Technologies, vol. 17, nº 1, pp. 141-152, 2023,
       doi: 10.3991/ijim.v17i01.34675.
[5]    J. Esquicha-Tejada y J. Copa-Pineda, “Integration of an IoT system - Photovoltaic system to
       optimize the consumption of drinking water in the irriga-tion of gardens in the City of
       Arequipa,” of Proceedings of the LACCEI interna-tional Multi-conference for Engineering,
       Education        and      Technology,      Buenos       Aires,    Argentina,        2020,    doi:
       10.18687/LACCEI2020.1.1.212.
[6]    E. Betanzo-Quezada, M. Á. Torres-Gurrola, J. A. Romero-Navarrete y S. A. Obregón-Biosca,
       “Assessment of solid waste collection routes assisted by Global Positioning Systems:
       Analysis and implications,” Rev. Int. Contam. Ambient, vol. 32, pp. 232-337, 2016, doi
       10.20937/RICA.2016.32.03.07.
[7]    J. J.R., J. Jambeck , R. Geyer , C. Wilcox , T. Siegler , M. Perryman , A. Andrady , R. Narayan y
       K. Law , “Plastic waste inputs from land into the ocean,” Science, vol. 347, pp. 768-771, 2015,
       doi: 10.1126/science.1260352.
[8]    R. C. Dávila Morán, E. D. C. Agüero Corzo , L. Dávila , D. Diaz , J. Palomino Quispe y J. Ruiz
       Nizama, “Management and disposal of solid waste in the Lurigancho industrial zone of
       Peru,” Boletin de Malariologia y Salud Ambiental, vol. 62, pp. 116-122, 2022, doi:
       10.52808/bmsa.7e5.621.016.
[9]    M. Blettler , E. Abrial , F. Khan , N. Sivri y L. Espinola , “Freshwater plastic pollution:
       Recognizing research biases and identifying knowledge gaps,” Water Research, vol. 143,
       pp. 416-424, 2018, doi: 10.1016/j.watres.2018.06.015.
[10]   N. Zeeshan, A. Birgitte K. y U. Hinrich, "Enhancing the hydrolysis process in a dry anaerobic
       digestion process for the organic fraction of municipal solid waste," Bioresource
       Technology Reports, vol. 11, nº 100542, 2020 doi:10.1016/j.biteb.2020.100542.
[11]   E. G. Estrada Araoz, K. H. Huaypar Loayza y H. J. Mamani Uchasara, “Environmental
       education and solid waste management in an educational institution in Madre de Dios,
       Peru,” Ciencia Amazonica Iquitos, vol. 8, nº 2, pp. 239-252, 2020, doi:
       10.22386/ca.v8i2.300.
[12]   E. Betanzo-Quezada, M. Á. Torres-Gurrola, J. A. Romero-Navarrete y S. A. Obregón-Biosca,
       “Assessment of solid waste collection routes assisted by Global Positioning Systems:
       Analysis and implications,” Rev. Int. Contam. Ambient, vol. 32, pp. 232-337, 2016, doi:
       10.20937/RICA.2016.32.03.07
[13]   N. Sathish Kumar, B. Vijayalakshmi, R. Jenifer Prarthana y A. Shankar, “IOT based smart
       garbage alert system using Arduino UNO,” de 2016 IEEE Region 10 Conference (TENCON),
       Singapore, 2016, doi: 10.1109/TENCON.2016.7848162
[14]   S. Ramson, D. Moni, S. Vishnu, T. Anagnostopoulos, A. Kirubaraj, X. Fan, An iot-based bin
       level monitoring system for solid waste management, Journal of Material Cycles and Waste
       Management 23 (2021) 516–525. doi:10.1007/s10163-020-01137-9.
[15] Y. Amri and M. A. Setiawan, “Improving Smart Home Concept with the Internet of Things
     Concept Using Raspberry Pi and NodeMCU,” IOP Conf Ser Mater Sci Eng, vol. 325, no. 1,
     2018, doi: 10.1088/1757-899X/325/1/012021.
[16] S. Boumerdassi, S. Bouzefrane, Renault, Toward a privacy guard for cloud-based home
     assistants and iot, Mobile, Secure, and Programmable Networking (2020) 177–194. doi:10.
     1007/978-3-030-67550-9_12.
[17] M. Rokonuzzaman et al., “Iot-enabled high efficiency smart solar charge controller with
     maximum power point tracking—design, hardware implementation and performance
     testing,” Electronics (Switzerland), vol. 9, no. 8, pp. 1–16, 2020, doi:
     10.3390/electronics9081267.
[18] C. S. Abella et al., “Autonomous Energy-Efficient Wireless Sensor Network Platform for
     Home/Office Automation,” IEEE Sens J, vol. 19, no. 9, pp. 3501–3512, 2019, doi:
     10.1109/JSEN.2019.2892604
[19] T. J. Sheng et al., “An Internet of Things Based Smart Waste Management System Using LoRa
     and Tensorflow Deep Learning Model,” IEEE Access, vol. 8, pp. 148793–148811, 2020, doi:
     10.1109/ACCESS.2020.3016255
[20] A. K. Podder et al., “IoT based smart agrotech system for verification of Urban farming
     parameters,” Microprocess. Microsyst., vol. 82, no. November 2020, p. 104025, 2021, doi:
     10.1016/j.micpro.2021.104025.
[21] A. Hashemi and M. A. Zare Chahooki, “Telegram group quality measurement by user
     behavior analysis,” Soc Netw Anal Min, vol. 9, no. 1, 2019, doi: 10.1007/s13278-019-0575-
     9.
[22] Kodali, R. K., & Mahesh, K. S., “A low cost implementation of MQTT using ESP8266”. 2016
     2nd International Conference on Contemporary Computing and Informatics (IC3I), 2016,
     doi:10.1109/ic3i.2016.7917998
[23] A. Sarah, T. Ghozali, G. Giano, M. Mulyadi, S. Octaviani, and A. Hikmaturokhman, “Learning
     IoT: Basic Experiments of Home Automation using ESP8266, Arduino and XBee,”
     Proceedings - 2020 IEEE International Conference on Smart Internet of Things, SmartIoT
     2020, pp. 290–294, 2020, doi: 10.1109/SmartIoT49966.2020.00051
[24] A. Anggrawan, S. Hadi, and C. Satria, “IoT-Based Garbage Container System Using NodeMCU
     ESP32 Microcontroller,” J. Adv. Inf. Technol., vol. 13, no. 6, pp. 569–577, 2022, doi:
     10.12720/jait.13.6.569-577.
[25] I. G. M. Ngurah Desnanjaya and I. N. A. Arsana, “Home security monitoring system with IoT-
     based Raspberry Pi,” Indones. J. Electr. Eng. Comput. Sci., vol. 22, no. 3, pp. 1295–1302,
     2021, doi: 10.11591/ijeecs.v22.i3.pp1295-1302.