设计说明书
总字数:13000+
摘 要
在当今的体育赛事中,比赛的计分系统对观众和运动员尤为重要,观众可以根据比分的实时显示为自己支持的队伍呐喊助威,运动员更是要靠着计分器来把握比赛的节奏,包括攻防转换、替补换人以及赛间休息等等。因此,为了让比赛进行得更加专业化和流畅化,本文设计一款智能计分器。设计并开发了一套基于STM32 单片机比赛计时计分器系统,通过DHT11测量球场温湿度,通过按键调整比赛时间(三个按键)、启停比赛时间(一个按键)、进行加分(每队3个,分别是1分,2分,3分)、进行减分(每队3个,分别是1分,2分,3分),切换场地(一个按键);每增加分数,可通过TTS语音播报比分。通过显示屏显示比赛时间、各队分数,当比赛时间结束后,蜂鸣器响3s,通过语音提醒,并报出比分,借助 Keil编程工具实现了对控制程序的设计与调试,将程序拷贝到系统中,实现对系统功能的不同控制;经过实物测试,该设计可以满足赛场计分的需求,具有较好的推广和应用价值。
关键词:篮球比赛计分;STM32;OLED;Keil编程工具
Abstract:
In today’s sports events, the scoring system of the game is particularly important to the audience and athletes, the audience can shout and cheer for their team according to the real-time display of the score, and the athletes must rely on the scorer to grasp the rhythm of the game, including offensive and defensive transition, replacement and rest between games. Therefore, in order to make the game more professional and smooth, this paper designs an intelligent basketball scorer.A set of basketball game timing and scoring system based on STM32 microcontroller is designed and developed to measure the temperature and humidity of the court through DHT11, adjust the game time (three keys), start and stop the game time (one button), add points (three points per team, respectively 1 point, 2 points), and subtract points (three points per team, respectively 1 point, 2 points). 3 points), change the venue (one button); With each additional score, the score can be announced via TTS voice. The display screen displays the game time and the scores of each team. When the game time is over, the buzzer rings for 3s, and the score is reported through voice reminder. With the help of Keil programming tool, the design and debugging of the control program are realized, and the program is copied to the system to realize different control of system functions.Through the real test, the design can meet the needs of the basketball court scoring, and has good promotion and application value..
Key words: basketball game scoring; STM32; OLED; Keil programming tool.
目录
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 蜂鸣器报警电路模块
4 系统程序设计
4.1 编程软件介绍
4.2 主程序流程设计
4.3 按键函数流程设计
4.4 显示函数流程设计
4.5 处理状态函数流程设计
5实物测试
5.1 实物整体焊接测试
5.2 篮球比赛时间设置实物测试
5.3 篮球比赛过程实物测试
5.4 篮球比赛结束实物测试
6结论
参考文献
致谢
附录1:原理图
附录2:PCB
附录3:主程序
购买后可查看具体内容!