Design and Implementation of an IoT-Enabled Automatic Token Counting Machine for Metro Systems
Received: 24 January 2026 | Revised: 13 February 2026 and 26 February 2026 | Accepted: 28 February 2026 | Online: 4 April 2026
Corresponding author: Phi Van Lam
Abstract
This study presents the design, implementation, and experimental validation of an Internet of Things (IoT)-enabled automatic token counting system based on a synchronized optical–Radio Frequency Identification (RFID) dual-verification architecture. Unlike conventional optical-only systems, which are vulnerable to token overlap and vibration, or RFID-only systems, which suffer from read collisions and duplicate Unique Token Identification (UID) detection, the proposed approach introduces a temporally synchronized validation window in which optical interruption events trigger controlled RFID UID acquisition. This mechanism establishes a deterministic one-to-one mapping between physical token movement and digital identification, significantly improving robustness under high-density batch conditions. The system integrates an ESP32-based embedded controller, opto-electronic sensing, ISO/IEC 14443-compliant passive RFID tags, and a cloud-connected MariaDB database with an ASP.NET monitoring dashboard for real-time supervision and data logging. Design parameters, including motor speed, token spacing, and RFID verification window timing, are analytically justified and experimentally optimized to ensure stable operation. Experimental evaluation conducted with batch sizes of up to 250 tokens demonstrates 100% counting accuracy across repeated trials, with an average throughput of 500 tokens/min and stable real-time data synchronization. A comparative analysis confirms that the proposed synchronized dual-verification strategy improves accuracy, collision robustness, and traceability relative to optical-only, RFID-only, and vision-based approaches while maintaining low implementation costs. The results validate the feasibility and scalability of the proposed architecture for practical metro fare management systems and provide a deployable framework for secure and large-scale Automated Fare Collection (AFC)infrastructures.
Keywords:
automatic fare collection, optical–RFID fusion, embedded IoT systems, real-time token counting, smart metro systems, applied transportation engineeringDownloads
References
M. Bieler, A. Skretting, P. Budinger, and T.-M. Gronli, "Survey of Automated Fare Collection Solutions in Public Transportation," IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 9, pp. 14248–14266, Sep. 2022. DOI: https://doi.org/10.1109/TITS.2022.3161606
M. Chen and S. Chen, "An Efficient Anonymous Authentication Protocol for RFID Systems Using Dynamic Tokens," in IEEE 35th International Conference on Distributed Computing Systems, Columbus, OH, USA, Jun. 2015, pp. 756–757. DOI: https://doi.org/10.1109/ICDCS.2015.94
T. C. Thanuja and S. R. Vakare, "Automated Fare Collection System Using ARM," International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, vol. 6, no. 6, pp. 4535–4542, Jun. 2017.
S. Karthikeyan and M. Nesterenko, "RFID Security Without Extensive Cryptography," in Proceedings of the 3rd ACM workshop on Security of ad hoc and sensor networks, Alexandria, VA, USA, Nov. 2005, pp. 63–67. DOI: https://doi.org/10.1145/1102219.1102229
M. S. Malkar, M. Mundada, A. Patil, G. Phatak, S. Vaidya, and A. Salunke, "Automated Bus e-Ticketing Service," International Journal of Advanced Research in Science, Communication and Technology, vol. 4, no. 2, pp. 281–284, Jan. 2024. DOI: https://doi.org/10.48175/IJARSCT-15245
A. A. Ajmi and M. Jose, "IoT Based Counting System," Journal of Xidian University, vol. 15, no. 8, pp. 375–381, 2021.
S. Sudhakaran, R. Maheswari, and V. Kanchana Devi, "An Improvised Analysis of Smart Data for IoT-Based Railway System Using RFID," Automatika, vol. 65, no. 1, pp. 361–372, Jan. 2024. DOI: https://doi.org/10.1080/00051144.2023.2295141
N. Ma, A. Waegel, M. Hakkarainen, W. W. Braham, L. Glass, and D. Aviv, "Blockchain + IoT Sensor Network to Measure, Evaluate and Incentivize Personal Environmental Accounting and Efficient Energy Use in Indoor Spaces," Applied Energy, vol. 332, Feb. 2023, Art. no. 120443. DOI: https://doi.org/10.1016/j.apenergy.2022.120443
K. S. Gill, A. Sharma, V. Anand, and S. Gupta, "Automated Fare Collection System for Public Transport Using Intelligent IoT Based System," in International Conference on Artificial Intelligence and Knowledge Discovery in Concurrent Engineering, Chennai, India, Jan. 2023, pp. 1–7. DOI: https://doi.org/10.1109/ICECONF57129.2023.10083627
S. Sandra, C. Subarna, L. Parameshwari, B. Pallapu, and U. Chaitanya, "IoT-Based Automatic Ticketing System for Public Transportation Using RFID, GPS and Android Integration," Journal of Emerging Technologies and Innovative Research, vol. 12, no. 3, pp. 757–762, Mar. 2025.
A. Radovan, L. Mršić, G. Đambić, and B. Mihaljević, "A Review of Passenger Counting in Public Transport Concepts with Solution Proposal Based on Image Processing and Machine Learning," Eng, vol. 5, no. 4, pp. 3284–3315, Dec. 2024. DOI: https://doi.org/10.3390/eng5040172
C. Furtado and J. Rebello, "RFID Based Metro Train Ticketing System," International Journal of Science Technology & Engineering, vol. 3, no. 9, pp. 619–622, Mar. 2017.
M. ElZeweidy and B. Sayed, "Smart Ticketing System in Metro Rail Using RFID Tag," Journal of the ACS Advances in Computer Science, vol. 13, no. 1, pp. 11–19, Jun. 2022. DOI: https://doi.org/10.21608/asc.2023.171571.1010
Y. Zhan, F. Yuan, R. Shi, G. Shi, and C. Dong, "PriTKT: A Blockchain-Enhanced Privacy-Preserving Electronic Ticket System for IoT Devices," Sensors, vol. 24, no. 2, Jan. 2024, Art. no. 496. DOI: https://doi.org/10.3390/s24020496
D. Das, S. Banerjee, P. Chatterjee, U. Ghosh, and U. Biswas, "Blockchain for Intelligent Transportation Systems: Applications, Challenges, and Opportunities," IEEE Internet of Things Journal, vol. 10, no. 21, pp. 18961–18970, Nov. 2023. DOI: https://doi.org/10.1109/JIOT.2023.3277923
N. K. Majji, V. N. Madhavareddy, G. Immadi, N. Ambati, and S. M. Aovuthu, "Analysis of a Compact Electrically Small Antenna with SRR for RFID Applications," Engineering, Technology & Applied Science Research, vol. 14, no. 1, pp. 12457–12463, Feb. 2024. DOI: https://doi.org/10.48084/etasr.6418
K. Mekki, O. Necibi, C. Boussetta, and A. Gharsallah, "Miniaturization of Circularly Polarized Patch Antenna for RFID Reader Applications," Engineering, Technology & Applied Science Research, vol. 10, no. 3, pp. 5655–5659, Jun. 2020. DOI: https://doi.org/10.48084/etasr.3445
M. N. Prabhakaran and A. Sampath, "Prototype Designing of Coin Based Sensing Water Filling System," International Journal of Engineering Research & Technology, vol. 5, no. 22, pp. 1–4, 2017.
Downloads
How to Cite
License
Copyright (c) 2026 Phi Van Lam, Tran Thi Lan, Trinh Luong Mien

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.
