项目编号:mcuclub-dz-281
设计简介:
项目编号:mcuclub-dz-281(计分器)
单片机类型:STM32F103C8T6
具体功能:
1、通过按键可调整比赛时间(三个按键)
2、通过按键启停比赛时间(一个按键)
3、通过加分按键进行加分(每队3个,分别是1分,2分,3分),通过减分按70键进行减分(每队3个,分别是1分,2分,3分)
4、通过按键,可切换场地(一个按键)
5、每增加分数,可通过TTS语音播报比分
6、当比赛时间结束后,蜂鸣器响3s,通过语音提醒,并报出比分
7、通过显示屏显示比赛时间、各队分数
8、通过DHT11测量温湿度
总字数:13743
摘 要:在当今的体育赛事中,比赛的计分系统对观众和运动员尤为重要,观众可以根据比分的实时显示为自己支持的队伍呐喊助威,运动员更是要靠着计分器来把握比赛的节奏,包括攻防转换、替补换人以及赛间休息等等。因此,为了让比赛进行得更加专业化和流畅化,本文设计一款智能计分器。
设计并开发了一套基于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.
目录