Design and Implementation of a Non-Contact Control Panel Control System Based on STM32
DOI: https://doi.org/10.62381/I265503
Author(s)
Junhui Huang, Zhijian Chen, Siyi Liu
Affiliation(s)
Guangdong AIB Polytechnic, Guangzhou, Guangdong, China
Abstract
The non-contact control panel system introduced in this paper uses the STM32F103C8T6 microcontroller as the core controller, integrating four diffuse reflective photoelectric switches and an ultrasonic distance measurement module to allow gesture-based driving of a DC motor start/stop, forward/reverse rotation, and continuous speed adjustment. The system architecture follows a four-layer design: a sensing layer used to detect hand proximity and direction, a control layer for gesture recognition and command generation, an execution layer that uses the L298N dual H-bridge motor driver with PWM to control voltage between 3V and 10V, and a power management layer that supplies constant 3.3V, 5V and 12V to every module through DC-DC converters. A 128×64 OLED display is used to provide real-time feedback on operational status, set parameters, and distances measured. The detection range for start/stop control is between 5 to 30 centimeters. The system has a measuring error of less than 1 centimeter. The system not only provides timely but also accurate gesture recognition, meets design requirements for motor control precision, and operates stably and reliably without any physical contact. This design offers an efficient, hygienic, and cost-effective control solution for applications requiring non-contact human-machine interaction.
Keywords
STM32F103C8T6; Photoelectric Switch; Gesture Recognition; Non-Contact Control; Ultrasonic Distance Measurement; DC Motor Control; PWM Modulation
References
[1] Liu Xiang-yu, Cong Jin-ling, Kan Zhao, et al. Research on a System for Monitoring Seed Lapse in Precision Seed Planting Machines Based on Reflective Photoelectric Sensors. Jiangsu Journal of Agricultural Sciences, 2017, 45(11): 164-167.
[2] Yang Mengmeng, Zhao Zhi-Zheng, Zhao Jia-Hao, et al. Design and Implementation of an Autonomous Multi-Functional Cart. Modern Information Technology, 2024, 8(15): 10-14.
[3] Jia Pengfei. Design and Performance Testing of a DC Motor Speed Regulation Experiment System Driven by Single-Chip Microcontrollers. Automation Applications, 2026, 67(7): 241-243.
[4] STM32 Microcontroller Application Design and Practice. Beijing: Tsinghua University Press, 2020.
[5] Liu Wei-qin, Yu Hui-shan. The Working Principle and Application Design of Ultrasonic Distance Measurement Systems. Wireless Interconnection Technology, 2015, (19): 147-148.
[6] Yu Daqing, Wang Qingyang, Zhang Li, et al. Design and Implementation of STM32-PID Constant Speed Control for DC Motors. Journal of Xinyang Normal University (Natural Science Edition), 1-9.
[7] Ke Ruoyu, Hu Lifu. Gesture Control of Home Appliances: Low-Cost Gesture Recognition Enhances the Friendliness of Smart Homes. China Science and Technology Information, 2026, 38(11).
[8] Gu Minguo, Ye Yang, Hou Xianghui, et al. Experimental Scheme Design and Implementation of Modularly-Based Guided Program Design. Forum on Education and Teaching, 2016, (4): 262-263.
[9] Deng Ji-wei, He Yuan-wei. Design of an Intelligent Fan Control System. Electronic Craftsmanship, 2023, 31(10): 41-43.
[10]Huang Jinwen, Wang Jiaobin, Kong Xi. Basic Experiments in Electronic Technology. Chemical Industry Press: 2024.