Using the 32-bit STM32F103 ARM as the control core, a sailboard control system is designed and realized in this paper. Under the condition of the assumed pattern and space between the sailboard and the fan, for the control of the angle of the sailboard, a detailed experimental analysis and discussion are given. In order to control the angle of the sailboard, the wind power of the fan is modulated by using the pulse-width modulation ( PWM) technique and the proportional-integral-derivative (PID) controller. The whole experimental circuit contains the minimum control system of the STM32F103 ARM, the drive circuit of the fan, the angle detection circuit, the reference voltage module the angle sensor, the ultrasonic ranging module, the optical alarm circuit, the keyboard and the LCD display circuits and so on. PWM and PID are realized by the ARM, and some parameters, such as the angle, the duty cycle, the wind power, the control time and the test distance, etc. , are displayed by the LCD. The hardware and software of the whole system are designed reasonably, and the operation of the system is simple, convenient, and precise. Experimental results prove that the design of the system has certain theoretical research significance and practicality.%以32 bit ARM STM32F103为控制核心,设计并实现了一个帆板自动控制系统.在设定的模式和间距(风扇与帆板之间的距离)下,对帆板转角的控制进行了实验分析与讨论.实验中采用PWM技术和PID控制器来调节风扇风力的大小,从而实现对帆板转角的控制.整个系统软硬件设计合理、操作简单、方便,控制精度较高.实验结果进一步验证了设计方案的正确性,证实了所设计的系统具有一定的理论研究意义和实用性.
展开▼