Vol. 9 No. 3 (2026)
Open Access
Peer Reviewed

DESIGN OF A PORTABLE COLORIMETRIC SYSTEM BASED ON THE COLOR SENSOR TCS3200 (GY-31) FOR DETECTING THE CONCENTRATION OF METHYLENE BLUE IN SOLUTIONS

Authors

Lalu Teguh Permana , Muhandis Siddiq , Husin Alatas , Erus Rustami

DOI:

10.29303/ipr.v9i3.648

Downloads

Received: Jan 16, 2026
Accepted: Jul 06, 2026
Published: Jul 31, 2026

Abstract

A low-cost colorimetric system based on an Arduino microcontroller and a TCS3200 (GY-31) RGB sensor was investigated to estimate the concentration of methylene blue (MB) in aqueous solutions. Measurements were conducted using a transmission-mode optical configuration, in which a white-light source passes through a cuvette with a fixed optical path length, and the transmitted light is detected as a frequency output. The frequency signal was used as a relative indicator of light intensity, and absorbance was calculated from the ratio of transmitted to reference frequency. Calibration was performed over a concentration range of 0.1–20 ppm, and the results were compared with those obtained using a UV–Vis spectrophotometer. The system showed an approximately linear response to MB concentration with a coefficient of determination (R²) of 0.9807. An average relative error of 18% was observed in the validation results, with limits of detection (LOD) and quantification (LOQ) of 3.95 ppm and 13.17 ppm, respectively. The relatively high LOQ is primarily due to the broadband RGB detection characteristics and signal variability of the low-cost sensor system, which limit sensitivity at low concentrations. Repeated measurements yielded a coefficient of variation below 3%, indicating acceptable short-term repeatability. These results demonstrate the feasibility of the proposed low-cost system for preliminary screening or indicative assessment of MB concentration, particularly at levels near regulatory limits. Further improvements in optical stabilization, spectral selectivity, and calibration procedures are required to enhance sensitivity and accuracy for broader analytical applications.

Keywords:

Optical colorimetry RGB sensor TCS3200 (GY-31) Methylene blue detection Calibration analysis

References

[1] A. Singh, R. Kumar, and P. Patel, “Portable RGB-based colorimetric sensing for chemical detection,” Sensors and Actuators B: Chemical, vol. 305, p. 127138, 2020.

[2] A. A. Alqadami, M. A. Khan, A. Oves, and M. H. Hussain, “Adsorptive removal of methylene blue from aqueous solution using eco-friendly biosorbents,” Journal of Cleaner Production, vol. 148, pp. 376–388, 2017.

[3] N. Zakaria, N. Rahmah, and M. Omar, “Colorimetric quantification methods for dye concentration analysis,” Journal of Color Science, vol. 18, no. 4, pp. 225–233, 2022.

[4] S. Mondol, M. H. Sheeru, F. J. Momo, A. N. Fowzia, N. Najibah et al., “Color-Based Agro Product Sorting and Disease Detection,” Proceedings of the 7th International Conference on Computing, Communication, Control and Automation (ICCUBEA), Bangladesh, pp. 1–6, 2023.

[5] F. Jefriyanto, R. Putra, and P. Wibowo, “Rancang bangun sistem pendeteksi warna menggunakan sensor TCS3200 (GY-31) berbasis Arduino UNO,” Jurnal Ilmiah Teknik Elektro, vol. 9, no. 2, pp. 45–52, 2017.

[6] M. S. Surbakti, M. Farhan, Z. Zakaria, M. Isa, E. Sufriadi, S. Alva, E. Yusibani, L. Heliawati, M. Iqhrammullah, and K. Suhud, “Development of Arduino Uno-Based TCS3200 Color Sensor and Its Application on the Determination of Rhodamine B Level in Syrup,” Indones. J. Chem., vol. 22, no. 3, pp. 630–640, 2022.

[7] L. J. Greenawald, G. R. Boss, R. G. Snyder, J. L. Reeder, and A. Bell, “Development of an inexpensive RGB color sensor for the detection of hydrogen cyanide gas,” ACS Sensors, vol. 2, no. 10, pp. 1458–1466, 2017.

[8] TAOS Inc., “TCS3200 (GY-31) Programmable Color Light-to-Frequency Converter Datasheet”, AMS-OSRAM, 2006.

[9] D. A. Skoog, F. J. Holler, and S. R. Crouch, “Principles of Instrumental Analysis”, ed. ke-7, Boston, MA, USA: Cengage Learning, 2017.

[10] A. C. Olivieri, “Practical guidelines for reporting results in single- and multi-component analytical calibration: A tutorial,” Analytica Chimica Acta, vol. 868, pp. 10–22, 2015.

[11] A. C. Olivieri, “Introduction to Multivariate Calibration: A Practical Approach”, ed. ke-1, Cham, Switzerland: Springer, 2018.

[12] T. G. Mayerhöfer, S. Pahlow, and J. Popp, “The Bouguer–Beer–Lambert law: Shining light on the obscure,” ChemPhysChem, vol. 21, no. 18, pp. 2029–2046, 2020.

[13] A. Y. Nasution, D. Pratiwi, Y. Frimananda, and A. Ardiansyah, “Validasi metode analisis vitamin C pada buah dan keripik nanas secara spektrofotometri UV–Vis,” Kartika Jurnal Ilmiah Farmasi, vol. 8, no. 1, pp. 16–24, 2021.

[14] K. Suhud, Z. Ula, M. Dayanti, M. S. Surbakti, et al., “Measurement of tartrazine levels in children’s snacks in Banda Aceh using an Arduino Uno-based TCS3200 color sensor,” International Journal of Design & Nature and Ecodynamics, vol. 20, no. 1, pp. 169–177, 2025.

[15] D. C. Montgomery, E. A. Peck, and G. G. Vining, “Introduction to Linear Regression Analysis”, ed. ke-6, Hoboken, NJ, USA: John Wiley & Sons, 2021.

[16] A. L. Pomerantsev, D. N. Vtyurina, and O. Y. Rodionova, “Limit of detection in qualitative analysis: Classification analytical signal approach,” Microchemical Journal, vol. 195, p. 109490, 2023.

[17] K. Laganovska, A. Zolotarjovs, M. Vázquez, K. McDonnelle, et al., “Portable low-cost open-source wireless spectrophotometer for fast and reliable measurements,” HardwareX, vol. 7, p. e00108, 2020.

[18] J. E. Agbokponto, A. P. S. Kpaibe, L. A. Yemoa, A. G. Assanhou, et al., “Simultaneous determination by HPLC–UV–Vis of tartrazine and sunset yellow in soft drinks sold in Benin,” American Journal of Analytical Chemistry, vol. 13, no. 8, pp. 277–288, 2022.

[19] M. Kumar, R. Singh, and V. Sharma, “Optimization of LED–detector distance for improved optical sensing accuracy,” Optics and Laser Technology, vol. 101, pp. 72–79, 2018.

[20] M. Naing and N. N. S. Hlaing, “Arduino-based smart home automation system,” International Journal of Trend in Scientific Research and Development, vol. 3, no. 4, pp. 276–280, 2019.

[21] D. C. Harris, “Quantitative Chemical Analysis”, ed. ke-8, New York, NY, USA: W. H. Freeman and Company, 2010.

[22] R. Shamey (Ed.), “Cone fundamentals, Stockman–Sharpe,” Eds. Encyclopedia of Color Science and Technology, Cham, Switzerland: Springer, 2023.

[23] P. M. Nowak and P. Kościelniak, “What color is your method? Adaptation of the RGB additive color model to analytical method evaluation,” Analytical Chemistry, vol. 91, no. 16, pp. 10343–10352, 2019.

[24] S. L. Oliveira, E. C. Lima, and M. J. Andrade, “Optical absorption characteristics of methylene blue solutions for analytical applications,” Journal of Applied Spectroscopy, vol. 83, no. 4, pp. 654–661, 2016.

[25] D. V. Snigur, A. N. Chebotarev, and K. V. Bevziuk, “Acid–base properties of azo dyes in solution studied using spectrophotometry and colorimetry,” Journal of Applied Spectroscopy, vol. 85, no. 1, pp. 21–26, 2018.

[26] G. de Carvalho Oliveira, C. C. S. Machado, D. K. Inácio, et al., “RGB color sensor for colorimetric determinations: Evaluation and quantitative analysis of colored liquid samples,” Talanta, vol. 241, p. 123244, 2022.

[27] F. Dupont, S. Stoukatch, P. Laurent, et al., “Design aspects for portable LED-based colorimetric characterisation systems targeting liquid analytes,” Sensors, vol. 24, no. 6, p. 1960, 2024.

[28] G. Gao, J. Qi, L. Fu, et al., “Portable instrument based on color sensor chip for on-site rapid detection of dissolved sulfides in environmental water samples,” Journal of Hazardous Materials, vol. 460, p. 132440, 2023.

[29] J. Samec, E. Štruc, I. Berzina, P. Naglič, and B. Cugmas, “Comparative analysis of low-cost portable spectrophotometers for colorimetric accuracy on the RAL Design System Plus color calibration target,” Sensors, vol. 24, no. 24, p. 8208, 2024.

[30] A. Fernández-Pérez and G. Marbán, “Visible-light spectroscopic analysis of methylene blue in water: What comes after dimer?” ACS Omega, vol. 5, no. 46, pp. 29801–29815, 2020.

[31] L. Khoshmaram, S. Tabaghchi, and F. Farshi Azhar, “Combination of a methylene blue–iodide system with a smartphone-based portable colorimeter for on-site determination of nitrite,” New Journal of Chemistry, vol. 46, pp. 3231–3235, 2022.

[32] A. Priye, C. S. Ball, and R. J. Meagher, “Colorimetric-luminance readout for quantitative analysis of fluorescence signals with a smartphone CMOS sensor,” ACS Sensors, vol. 3, no. 10, pp. 2091–2098, 2018.

[33] Y. Thipwimonmas, A. Thiangchanya, A. Phonchai, et al., “The development of digital image colorimetric quantitative analysis of multi-explosives using polymer gel sensors,” Sensors, vol. 21, p. 8041, 2021.

[34] S. Balbach, N. Jiang, R. Moredu, et al., “Smartphone-based colorimetric detection system for portable health tracking,” Analytical Methods, vol. 13, pp. 4361–4369, 2021.

[35] B. Coleman, C. Coarsey, M. A. Kabir, and W. Asghar, “Point-of-care colorimetric analysis through smartphone video,” Sensors and Actuators B: Chemical, vol. 282, pp. 225–231, 2019.

[36] D. V. Snigur, A. N. Chebotarev, and K. V. Bevziuk, “Acid–base properties of azo dyes in solution studied using spectrophotometry and colorimetry,” Journal of Applied Spectroscopy, vol. 85, no. 1, pp. 21–26, 2018.

[37] V. S. A. Piriya, P. Joseph, S. C. G. K. Daniel, S. Lakshmanan, et al., “Colorimetric sensors for rapid detection of various analytes,” Materials Science and Engineering: C, vol. 78, pp. 1231–1245, 2017.

[38] W. M. M. Hlaing, S. Kruanetr, and W. Ruengsitagoon, “RGB colorimetric method for the quantitative analysis of levocetirizine tablets,” Isan Journal of Pharmaceutical Sciences, vol. 16, no. 3, pp. 65–75, 2020.

[39] W. Souza, M. de Oliveira, G. de Oliveira, D. de Santana, and R. de Araujo, “Self-referencing method for relative color intensity analysis using mobile phone,” Optics and Photonics Journal, vol. 8, pp. 264–275, 2018.

[40] S. Shrivastava, T. Q. Trung, and N.-E. Lee, “Recent progress, challenges, and prospects of fully integrated mobile and wearable point-of-care testing systems for self-testing,” Chemical Society Reviews, vol. 49, no. 6, pp. 1812–1866, 2020.

[41] N. Reyes-Garcés, E. Gionfriddo, G. A. Gómez-Ríos, M. N. Alam, et al., “Advances in solid phase microextraction and perspective on future directions,” Analytical Chemistry, vol. 90, no. 1, pp. 302–360, 2018.

[42] F. Haque, S. Y. Bubli, and M. S. Khan, “UV–Vis spectroscopy for food analysis,” Eds., Techniques to Measure Food Safety and Quality, M. S. Khan and M. Shafiur Rahman, Eds., Cham, Switzerland: Springer, 2021.

[43] B. Kuswandi and M. A. Hidayat, “Low-cost diagnostics,” Eds., Low-Cost Diagnostics: Fabrication, Materials, and Applications, M. Rizwan, M. U. Ahmed, and G. Xu, Eds., Cambridge, UK: Royal Society of Chemistry, vol. 26, ch. 1, pp. 1–22, 2024.

[44] Y. Wu, J. Feng, G. Hu, E. Zhang, and H.-H. Yu, “Colorimetric sensors for chemical and biological sensing applications,” Sensors, vol. 23, p. 2749, 2023.

[45] Y. Wang, Y. Tian, C. Liu, et al., “High-sensitive detection of Li and Zn in aqueous solutions using capillary effect-enhanced laser-induced breakdown spectroscopy,” Talanta, vol. 288, p. 127707, 2025.

[46] X. Bian, M. Ling, Y. Chu, et al., “Spectral denoising based on Hilbert–Huang transform combined with F-test,” Frontiers in Chemistry, vol. 10, 2022.

[47] S. S. Hemdan, “The shift in the behavior of methylene blue toward the sensitivity of medium: Solvatochromism, solvent parameters, regression analysis and investigation of cosolvent on the acidity constants,” Journal of Fluorescence, vol. 33, pp. 2489–2502, 2023.

[48] I. Khan, et al., “Review on methylene blue: Its properties, uses, toxicity and photodegradation,” Water, vol. 14, 2022.

[49] J.-C. Bollinger, E. C. Lima, L. Mouni, et al., “Molecular properties of methylene blue, a common probe in sorption and degradation studies: A review,” Environmental Chemistry Letters, vol. 23, pp. 1403–1424, 2025.

[50] M. D. Permana, L. K. Sakti, A. Luthfiah, M. L. Firdaus, T. Takei, D. R. Eddy, and I. Rahayu, “A simple method for determination of methylene blue using smartphone-based digital image colorimetry,” Trends in Sciences, vol. 20, no. 4, p. 5149, 2023

Author Biographies

Lalu Teguh Permana, Department of Physics, Faculty Mathematics and Natural Science IPB University, Bogor

Author Origin : Indonesia

Muhandis Siddiq, Research Center for Photonics, National Research and Innovation Agency (BRIN), Tangerang Selatan

Author Origin : Indonesia

Husin Alatas, Department of Physics, Faculty Mathematics and Natural Science IPB University, Bogor

Author Origin : Indonesia

Erus Rustami, Department of Physics, Faculty Mathematics and Natural Science IPB University, Bogor

Author Origin : Indonesia

Downloads

Download data is not yet available.

How to Cite

Permana, L. T., Siddiq, M., Alatas, H., & Erus Rustami. (2026). DESIGN OF A PORTABLE COLORIMETRIC SYSTEM BASED ON THE COLOR SENSOR TCS3200 (GY-31) FOR DETECTING THE CONCENTRATION OF METHYLENE BLUE IN SOLUTIONS. Indonesian Physical Review, 9(3), 569–587. https://doi.org/10.29303/ipr.v9i3.648

Similar Articles

<< < 1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.