项目编号:mcuclub-dz-362
设计简介:
项目名:计分器(实物)
项目编号:mcuclub-dz-362
单片机类型:STM32F103C8T6
具体功能:
1、通过RTC同步时间,并可按键修正时间
2、通过两个按键控制开关(打开电源,屏幕亮起)、模式选择(选择比赛模式、日常模式);通过三个按键设置RTC时间、比赛时间设置(调整时、分、秒)、启动(比赛倒计时和出杆计时开始)、暂停(比赛倒计时和出杆计时都暂停,使用时间和北京时间照常运行);通过七个按键出杆(判定选手是否出杆)、球权交换、进局(本局比赛结束,按照当前球权在谁进行加分)、加1分、减1分、分数清零、复位(进入模式选择界面)
3、蜂鸣报警,在出杆倒计时10s时需要进行提示
4、语音提示模块,在出杆倒计时5s时需要进行倒计时读秒,在比赛结束后播放双方总比分
5、球权,在双方选手总比分两边各安装一个灯,哪个灯亮起则表示该选手出杆计时开始,该选手可以击球,出杆结束后如果该局比赛没有结束,则球权交换到另一方选手,开始出杆倒计时;如果出杆后该局比赛结束,则顺势给该选手加分,如此循环往复
6、在日常模式比赛结束后,根据使用时间来显示所需支付金额
总字数:14143
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
摘 要:
体育赛事中,比赛的计分十分重要重要,观众可以根据比分的实时显示为自己支持的队伍呐喊助威,运动员更是要靠着计分器来把握比赛的节奏,包括攻防转换、替补换人以及赛间休息等等。因此,为了让比赛进行得更加专业化和流畅化,本文设计一款智能台球计分器。
设计并开发了一套基于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
2 系统设计方案 4
3 硬件设计 7
4 系统程序设计 21
5实物测试 25
6结论 29
参考文献 30
致谢 31