乒乓球发球机控制器软件设计及实现

0 下载量 184 浏览量 更新于2023-12-10 收藏 887KB DOC 举报
本文针对乒乓球发球特点,设计了一种乒乓球发球机控制器。该发球机控制器由8位单片机STC89C51为核心的硬件电路和相关软件编程组合而成。通过改变发球速度、发球高度和角度等功能,满足练习者不同的技术需求。同时,还设置了随机发球模式,实现了落球点的随机变化。 本课题的软件设计采用了主函数调用各状态子程序的方法,完成功能包括按键控制、液晶显示和电机调速等。同时,配合本组同学的硬件设计完成了单片机外围硬件电路的设计,包括电动机驱动模块、键盘模块和液晶显示模块。 在完成硬件电路的分析和软件模块调试的基础上,进行了联机调试,对各模块电路实行软硬件检测,有效地将两者结合起来,完成了系统的整体控制。 关键词:乒乓球发球机,控制器,发球模式,单片机。 ABSTRACT:Considering the characteristics of table tennis serve, the thesis designs a table tennis serving controller. It is consist of 8-bit microcontroller STC89C51 as the core hardware circuit and related software programming. By changing the serving speed, height and angle, it meets the different skill requirements of the practitioner. At the same time, a random serving mode is also set up to achieve random variation of the landing point. The software design of this project adopts the method of calling subroutines in the main function, which completes functions including key control, LCD display and motor speed control. In addition, with the cooperation of our group's hardware design, we have completed the design of the peripheral hardware circuit of the microcontroller, including the motor drive module, keyboard module and LCD display module. Based on the analysis of the hardware circuit and the debugging of the software modules, online debugging was carried out to perform software and hardware testing on the circuits of each module, effectively combining the two and completing the overall control of the system. Keywords: table tennis serving machine, controller, serving mode, microcontroller.