Article Details

Title · Authors · Abstract · Keywords · DOI · References

Design and Implementation of an STM32-Based Tic-Tac-Toe Human-computer Gaming Device

ZHANG Yixun, MIAO Wennan

(School of Electronic and Information Engineering, Guangzhou City University of Technology, Guangzhou 510800, China)

Section:Robot Technology · Vol. 2026, Issue 15 · Pages:65-70 · 2096-4706(2026)15-0065-06 · CLC number:TP24 · Document code:A · DOI:10.19850/j.cnki.2096-4706.2026.15.013

Abstract

With the global innovation of educational concepts, edutainment has become the core paradigm of educational tool innovation. This study proposes and implements an embedded Tic-Tac-Toe human-computer gaming device, which can automatically identify the positions of the chessboard and pieces, support real-time human-computer game interaction, and complete misoperation detection and correction. With the STM32F103VET6 microcontroller as the main control unit, the device adopts a V831 camera module matched with the improved Canny algorithm to realize high-precision identification of the chessboard and pieces. Drawing on the structural design of 3D printers, it is equipped with an XYZ three-axis precision motion platform driven by closed-loop stepper motors, and places chess pieces via a pneumatic suction nozzle. On the software side, an OLED interactive interface is developed, and a double verification mechanism and built-in referee system are introduced to realize misoperation detection and real-time human-computer game functions. The device finally realizes complex multimodal interaction on a low-computing-power embedded platform, with a repeat positioning accuracy of ±0.15 mm for piece placement and a single-step operation cycle controlled within 3.5 s. It has good stability, and provides a feasible technical reference for the development of low-cost intelligent educational equipment.

Keywords

STM32F103VET6; V831 Camera; closed-loop stepper motor; Tic-Tac-Toe; edutainment

References

  1. [1] Xiong Jinhua, Yu Hui, Li Fei, etc Research on Sliding Edge Detection Based on Improved Canny Algorithm [J]. Information Technology and Informatization, 2025 (2): 174-178
  2. [2] Zhang Longyu, Zheng Yuqi, Fu Rui Design of Three Axis Robot Arm Control System Based on PLC [J]. Technological Innovation and Application, 2023, 13 (17): 54-57
  3. [3] Zhang Haoyu, Zhou Xuan, Ma Kai, etc Design of Control System for Pipeline Dredging Robot Based on STM32 [J]. Industrial Control Computer, 2026, 39 (1): 149-150153
  4. [4] Zhang Tingting, Sun Guixin, Dong Jianxun, etc Design of Ultra Low Power Collapse Monitoring Sensor Based on STM32 [J]. Wireless Interconnection Technology, 2025, 22 (2): 21-25, 34
  5. [5] Zhen Guoyong, Chen Xiaojin, Wang Di Design of High Speed Long Line LVDS Transmission Based on CRC+ECC Double Check [J]. Fire and Command Control, 2021, 46 (8): 149-154
  6. [6] Su Wende, Zhu Kai, Guan Yao, etc Design of PID Speed Loop Control System for Stepper Motor Based on STM32 [J]. Industrial Control Computer, 2022, 35 (7): 37-38, 41
  7. [7] Baina, Zhu Feifan, Xu Yaohua, etc High speed SerDes testing based on universal asynchronous receiver/transmitter [J]. Electronics and Packaging, 2023, 23 (10): 18-24
  8. [8] Lai Shiwu Design of Multi Slave Process Controller Based on Serial Modbus Communication Protocol [J]. Network Security and Informatization, 2024 (11): 106-108
  9. [9] Wei Heyu, Xu Jian A combined braking method for unmanned vehicles on downhill slopes using the least squares method with segmented fitting [J]. Hydraulic, Pneumatic, and Sealing, 2025, 45 (2): 79-85
  10. [10] Luo Hongping, Ma Hongbing, Wang Hongwei Image edge detection based on fractal features and threshold analysis [J]. Computer Applications and Software, 2024, 41 (4): 200-204

Funding

2025 Guangdong Province Ordinary University Characteristic Innovation Project (2025KTSC231)

About the authors

Zhang Yixun (1994-), male, Han ethnicity, from Changchun, Jilin, is an experimenter and master's student. His research interests include wireless communication and robot control; Corresponding author: Miao Wennan (1985-), male, Han ethnicity, from Heyuan, Guangdong, associate professor, master's student, research direction: robot control.