设计说明书
总字数:14000+
摘 要
体育赛事中,比赛的计分十分重要重要,观众可以根据比分的实时显示为自己支持的队伍呐喊助威,运动员更是要靠着计分器来把握比赛的节奏,包括攻防转换、替补换人以及赛间休息等等。因此,为了让比赛进行得更加专业化和流畅化,本文设计一款智能台球计分器。设计并开发了一套基于STM32 单片机的台球比赛计分器系统,总共使用12个按键,其中两个按键控制开关和模式选择;三个按键设置比赛时间,并控制球赛的启动和暂停;七个按键出杆、球权交换、进局、加1分、减1分、分数清零、复位。通过显示屏显示比赛时间、分数,当比赛时间结束后,蜂鸣器响起,通过语音提醒,并报出比分,借助 Keil编程工具实现了对控制程序的设计与调试,将程序拷贝到系统中,实现对系统功能的不同控制;经过实物测试,该设计可以满足台球赛场计分的需求,具有较好的推广和应用价值。
关键词:台球计分器;STM32;OLED;Keil编程工具
Abstract:
In sports events, the scoring of matches is very important. Viewers can cheer for their supported teams based on the real-time display of the scores. Athletes also rely on the scoring device to grasp the rhythm of the game, including offensive and defensive transitions, substitute substitutions, and breaks between matches. Therefore, in order to make the competition more professional and smooth, this article designs an intelligent billiards scorer.We have designed and developed a billiards game scorer system based on the STM32 microcontroller, which uses a total of 12 buttons, two of which control switches and mode selection; Three buttons set the game time and control the start and pause of the game; Seven key shots, ball rights exchange, entry, 1 point increase, 1 point decrease, score reset, reset. Display the competition time and scores on the display screen. After the competition time is over, the buzzer will sound, and a voice reminder will be given to indicate the score. With the help of Keil programming tool, the control program is designed and debugged, and the program is copied into the system to achieve different control of system functions;After physical testing, the design can meet the scoring needs of billiards courts and has good promotion and application value.
Key words: Billiards scorer; STM32; OLED; Keil programming tools
目录
1 绪论
1.1选题背景及实际意义
1.2国内外研究现状
1.3本文的组织结构以及研究目标
2 系统设计方案
2.1 主要模块方案选择
2.1.1 主控芯片方案选择
2.1.2 显示模块方案选择
2.1.3 按键模块方案选择
2.2 整体设计方案
3 硬件设计
3.1单片机最小系统
3.1.1 主控模块电路
3.1.2 晶振电路
3.1.3 复位电路
3.1.4 电源电路
3.1.5 下载电路
3.2显示模块电路
3.3语音输出模块电路
3.4 独立按键模块电路
3.5 蜂鸣器报警电路模块
3.6 指示灯电路模块
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
5实物测试
5.1 实物整体焊接测试
5.2 台球比赛时间设置实物测试
5.3 台球比赛过程实物测试
5.4 台球比赛结束实物测试
6结论
参考文献
致谢
附录1:原理图
附录2:PCB
附录3:主程序
购买后可查看具体内容!