Main Article Content

Andre Suwardana Adiwidya
Achmad Zuchriadi
Sargi Ginting
Silvia Angraeni

Abstract

Plastic waste has become a major environmental issue due to its increasing generation and the limited effectiveness of waste management systems. In recycling activities, sorting plastic materials by color is essential because it influences both the quality and economic value of recycled products. However, plastic bottle caps in waste banks and small-scale recycling facilities are still commonly sorted manually, making the process labor-intensive, time-consuming, and often inconsistent. This study presents an embedded system for real-time sorting and counting of plastic bottle caps based on color using an ESP32 microcontroller and a TCS3200 color sensor. The developed system integrates a conveyor mechanism, five servo motors, five infrared sensors, and a 16×2 LCD functioning as a human–machine interface. Plastic bottle caps were classified into five color categories: red, yellow, green, blue, and white. System performance was evaluated through 500 integrated experimental trials, with each color category tested 100 times. During each trial, color detection, object sorting, counting, and data visualization were performed simultaneously. The TCS3200 sensor correctly identified 487 out of 500 samples, resulting in an average accuracy of 97.4%. No counting errors were observed during the experiments, yielding 100% accuracy for the infrared-based counting system, while all servo actuations operated successfully throughout the testing process. The counting values displayed on the LCD were fully consistent with the readings obtained from the infrared sensors. These findings indicate that low-cost embedded components can be effectively integrated to support automated sorting and counting applications. The developed system offers a practical solution for waste banks and small-scale recycling facilities and may contribute to improving operational efficiency and promoting sustainable plastic waste management

Downloads

Download data is not yet available.

Article Details

How to Cite
Adiwidya, A. S. ., Zuchriadi, A., Ginting, S. and Angraeni, S. . (2026) “Real-time color-based sorting and counting system for plastic bottle caps using esp32 and tcs3200 sensor”, Jurnal Mantik, 10(2), pp. 396-406. doi: 10.35335/mantik.v10i2.7305.
References
Apriadi, B. F., Setiawan, R. P., & Firmansyah, I. (2024). Policy scenario of plastic waste mitigation in Indonesia using system dynamics. Waste Management and Research, 42(11), 1008–1018. https://doi.org/10.1177/0734242X241231396
Balestra, V., & Bellopede, R. (2022). Microplastic pollution in show cave sediments: First evidence and detection technique. Environmental Pollution, 292. https://doi.org/10.1016/j.envpol.2021.118261
Chindasiriphan, P., Punyasuth, C., Hamcumpai, K., Kongmalai, N., Jongvivatsakul, P., Chompoorat, T., Tanapalungkorn, W., & Likitlersuang, S. (2025). Repurposing plastic bottle cap waste in controlled low-strength material for pavement base applications. Cleaner Materials, 17. https://doi.org/10.1016/j.clema.2025.100335
Farjana, M., Fahad, A. B., Alam, S. E., & Islam, M. M. (2023). An IoT- and Cloud-Based E-Waste Management System for Resource Reclamation with a Data-Driven Decision-Making Process. Internet of Things, 4(3), 202–220. https://doi.org/10.3390/iot4030011
Fontaine, F., Pinto Ferreira, J., Valcarce, A., Kabali, E., & Song, J. (2026). Risk of antimicrobial resistance spreading via food loss and waste. In Infectious Diseases of Poverty (Vol. 15, Number 1). BioMed Central Ltd. https://doi.org/10.1186/s40249-025-01405-6
Hanifah, M., & Arumsari, A. (2020). Pengolahan Limbah Botol Plastik untuk Produk Fesyen dengan Hot Textile. Agustus, 7(2), 3446.
Hidayat, A., Sawitri, D. R., A’yuni, D. Q., Safitri, I., & Ida, Y. E. N. (2026). Penerapan Teknologi Pembuatan Produk dari Limbah Tutup Botol Bekas. Journal of Approriate Technology for Community Services, 7(1), 38–49. https://doi.org/10.20885/jattec.vol7.iss1.art5
Imanuel, G., Panie, E., & Mutiara, A. B. (n.d.). Development of Robotic Arm for Color Based Goods Sorter in Factory Using TCS3200 Sensor with a Web-Based Monitoring System.
Juliano, A., Hendrawan, A. H., & Ritzkal. (2020). Information system prototyping of strawberry maturity stages using arduino Uno and TCS3200. Journal of Robotics and Control (JRC), 1(3), 86–91. https://doi.org/10.18196/jrc.1319
Lackner, M., Mukherjee, A., & Koller, M. (2023). What Are “Bioplastics”? Defining Renewability, Biosynthesis, Biodegradability, and Biocompatibility. In Polymers (Vol. 15, Number 24). Multidisciplinary Digital Publishing Institute (MDPI). https://doi.org/10.3390/polym15244695
Liu, J., Chen, X., & Yu, S. (2024). From Junk to Genius: Robotic Arms and AI Crafting Creative Designs from Scraps. Buildings, 14(12). https://doi.org/10.3390/buildings14124076
Maddalene, T., Youngblood, K., Abas, A., Browder, K., Cecchini, E., Finder, S., Gaidhani, S., Handayani, W., Hoang, N. X., Jaiswal, K., Martin, E., Menon, S., O’Brien, Q., Roy, P., Septiarani, B., Trung, N. H., Voltmer, C., Werner, M., Wong, R., & Jambeck, J. R. (2023). Circularity in cities: A comparative tool to inform prevention of plastic pollution. Resources, Conservation and Recycling, 198. https://doi.org/10.1016/j.resconrec.2023.107156
Magester, S., Barcelona, A., Colomer, J., & Serra, T. (2021). Vertical distribution of microplastics in water bodies causes sublethal effects and changes in Daphnia magna swimming behaviour. Ecotoxicology and Environmental Safety, 228. https://doi.org/10.1016/j.ecoenv.2021.113001
Mansour, N. K., Callera, A., Potere, F., Micalizzi, S., Costantino, M. L., De Gaetano, F., & Oliva, P. (2025). Circular economy and 3D printing in the healthcare sector. Frontiers in Bioengineering and Biotechnology, 13. https://doi.org/10.3389/fbioe.2025.1548550
Morchid, A., Muhammad Alblushi, I. G., Khalid, H. M., El Alami, R., Sitaramanan, S. R., & Muyeen, S. M. (2024). High-technology agriculture system to enhance food security: A concept of smart irrigation system using Internet of Things and cloud computing. Journal of the Saudi Society of Agricultural Sciences. https://doi.org/10.1016/j.jssas.2024.02.001
Moshood, T. D., Nawanir, G., Mahmud, F., Mohamad, F., Ahmad, M. H., & AbdulGhani, A. (2022). Sustainability of biodegradable plastics: New problem or solution to solve the global plastic pollution? In Current Research in Green and Sustainable Chemistry (Vol. 5). Elsevier B.V. https://doi.org/10.1016/j.crgsc.2022.100273
Nayanathara Thathsarani Pilapitiya, P. G. C., & Ratnayake, A. S. (2024). The world of plastic waste: A review. In Cleaner Materials (Vol. 11). Elsevier Ltd. https://doi.org/10.1016/j.clema.2024.100220
Nur-A-Alam, Ahsan, M., Based, M. A., Haider, J., & Rodrigues, E. M. G. (2021). Smart monitoring and controlling of appliances using lora based iot system. Designs, 5(1). https://doi.org/10.3390/designs5010017
Phelan, A. (Anya), Meissner, K., Humphrey, J., & Ross, H. (2022). Plastic pollution and packaging: Corporate commitments and actions from the food and beverage sector. Journal of Cleaner Production, 331. https://doi.org/10.1016/j.jclepro.2021.129827
Prabawati, A., Frimawaty, E., & Haryanto, J. T. (2023). Strengthening Stakeholder Partnership in Plastics Waste Management Based on Circular Economy Paradigm. Sustainability (Switzerland), 15(5). https://doi.org/10.3390/su15054278
Raharjo, S., Ruslinda, Y., Bachtiar, V. S., Regia, R. A., Fadhil, M., Rachman, I., & Matsumoto, T. (2018). Investigation on Municipal Solid Waste Characteristics from Commercial Sources and Their Recycling Potential in Padang City, Indonesia. IOP Conference Series: Materials Science and Engineering, 288(1). https://doi.org/10.1088/1757-899X/288/1/012134
Sari, D. A. A., Suryanto, Sudarwanto, A. S., Nugraha, S., & Utomowati, R. (2021). Reduce marine debris policy in Indonesia. IOP Conference Series: Earth and Environmental Science, 724(1). https://doi.org/10.1088/1755-1315/724/1/012118
Sari, M. I., Handayani, R., Siregar, S., & Isnu, B. (2018). Pemilah Benda Berdasarkan Warna Menggunakan Sensor Warna TCS3200. TELKA, 4(2), 85–90.
Shekdar, A. V. (2009). Sustainable solid waste management: An integrated approach for Asian countries. Waste Management, 29(4), 1438–1448. https://doi.org/10.1016/j.wasman.2008.08.025
Suvarnamma, A., & Pradeepkiran, J. A. (2021). SmartBin system with waste tracking and sorting mechanism using IoT. Cleaner Engineering and Technology, 5. https://doi.org/10.1016/j.clet.2021.100348
Taiwo, O., Ezugwu, A. E., Oyelade, O. N., & Almutairi, M. S. (2022). Enhanced Intelligent Smart Home Control and Security System Based on Deep Learning Model. Wireless Communications and Mobile Computing, 2022. https://doi.org/10.1155/2022/9307961
Vetricha Wulandari, E. W. (2020). Automated Trash Sorting Design Based Microcontroller Arduino Mega 2560 with LCD Display and Sound Notification. IOP Conference Series: Materials Science and Engineering, 725(1). https://doi.org/10.1088/1757-899X/725/1/012054
Zhang, J., Ren, S., Xu, W., Liang, C., Li, J., Zhang, H., Li, Y., Liu, X., Jones, D. L., Chadwick, D. R., Zhang, F., & Wang, K. (2022). Effects of plastic residues and microplastics on soil ecosystems: A global meta-analysis. Journal of Hazardous Materials, 435. https://doi.org/10.1016/j.jhazmat.2022.129065