设计说明书
总字数:13000+
摘要
在台球比赛中,精准的计分和高效的裁判流程是保障比赛公平性与流畅性的关键。传统人工计分方式易出现误差,且裁判工作量大,难以实时准确记录比赛数据,影响比赛体验与公正性。因此,研发一种自动化的计分与裁判系统具有重要的实用价值。
本设计提出一种基于 STM32F103C8T6 单片机的智能台球比赛计分与裁判系统。系统主要功能包括:通过按键实现击球人切换,灵活适配比赛人员轮换需求;借助红外避障管检测小球进袋状态,进球后通过 TCS3472 颜色传感器识别球色(红球计 1 分、黑球计 7 分),自动完成分数统计;通过 DS1302 时钟模块获取实时时间,支持按键修正时间功能,精准记录比赛时长;通过按键触发比赛结束指令,由 CN-TTS 模块播报最终比分,并可切换斯诺克和黑 8 两种比赛模式;OLED 显示屏实时显示比赛时间、参赛人员姓名、当前比分及比赛模式。
该系统的作用在于构建了 “自动识别 – 精准计分 – 智能播报” 的台球比赛辅助体系。通过自动化检测与计分减少人工干预,提升计分准确性;多样化的交互功能满足不同比赛模式需求;实时数据显示与语音播报增强了比赛的直观性与观赏性。为台球比赛提供了高效、精准的辅助工具,助力提升比赛专业性与公平性。
关键词:STM32;台球比赛;自动计分;裁判系统;
Design of Scoring and Referee System for Intelligent Billiards Competition
Abstract
Accurate scoring and efficient refereeing processes are key to ensuring fairness and smoothness in billiards competitions. The traditional manual scoring method is prone to errors, and the workload of referees is heavy, making it difficult to accurately record game data in real time, which affects the game experience and fairness. Therefore, developing an automated scoring and referee system has significant practical value.
This design proposes an intelligent billiards game scoring and refereeing system based on STM32F103C8T6 microcontroller. The main functions of the system include: switching between hitters through buttons and flexibly adapting to the rotation needs of players; By using an infrared obstacle avoidance tube to detect the status of the ball entering the bag, the TCS3472 color sensor is used to identify the color of the ball (1 point for red balls and 7 points for black balls) after scoring, automatically completing score statistics; Obtain real-time time through DS1302 clock module, support button correction time function, and accurately record the duration of the game; Trigger the end command of the game by pressing the button, and the CN-TTS module will report the final score, with the ability to switch between snooker and Black 8 game modes; The OLED display screen displays the real-time match time, participant names, current score, and match mode.
The function of this system is to construct an auxiliary system for billiards competitions that includes automatic recognition, precise scoring, and intelligent broadcasting. Reduce manual intervention and improve scoring accuracy through automated detection and scoring; Diversified interactive functions meet the needs of different competition modes; Real time data display and voice broadcasting enhance the intuitiveness and viewing experience of the competition. Provided efficient and accurate auxiliary tools for billiards competitions, helping to enhance the professionalism and fairness of the competition.
Keywords: STM32; Billiards competition; Automatic scoring; Judgment system
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 红外避障检测模块电路设计
3.4 TCS3472 颜色传感器模块电路设计
3.5 DS1302 时钟模块电路设计
3.6 按键模块电路设计
3.7 OLED 显示模块电路设计
3.8 CN-TTS 语音播报模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 颜色模块子流程设计
4.6 时钟模块子流程设计
4.7 语音播报模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 击球人切换功能测试
5.3 红外避障与颜色识别计分功能测试
5.4 时钟与时间修正功能测试
5.5 比赛控制与语音播报功能测试
5.6 显示功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!