|
论文编号ZXX131 论文字数:12485,页数:37
摘要
随着科学技术的飞速发展,触摸屏技术在信息家电、公共信息查询、通信和办公自动化等领域的应用越来越广。触摸屏提供了一个计算机用户的输入接口,而不需要使用者有很专业的计算机技能或知识。
本文介绍了触摸屏的概念、分类、应用场合和性能的比较,重点介绍了利用触摸屏、单片机系统来完成触摸三子棋的设计。在棋盘的四边排列了6个红外线发射管及6个接收管,在棋盘表面形成一个的红外线网作为触摸感应器件。用户以手指触摸屏幕某一点时,会挡住经过该位置的横竖两条红外线,由此可以算出触摸点的位置,并点亮相应位置的LED,最终实现触摸三子棋的功能。
关键词:触摸屏,单片机,红外线,三子棋
ABSTRACT
With the rapid development of science and technology, touch-screen technology has become more and more popular in the information appliances, public information query, communications, office automation applications and so on. A touch screen provides a computer user with an input interface that doesn’t require extensive computer skills or literacy.
This thesis introduces the concept of touch screen, its classification, application and performance, emphasizing on the design of a touch sensitive noughts-and-crosses using a single-chip microcomputer(SCM) system. Each side of the chessboard is line with 3 infrared transmitters or 3 infrared receivers, thus create a 3 by 3 touch sensitive board for noughts-and-crosses. When user pressed on this touch sensitive board with his finger, the horizontal and vertical infrared will be blocked. So the SCM can immediately calculate the location of touch points, then turn on the corresponding LED. And a touch sensitive noughts-and-crosses is achieved finally.
Keywords: Touch-screen, single-chip microcomputer, infrared,noughts-and-crosses
目录
摘要 I
ABSTRACT II
第1章 引言 1
1.1 背景 1
1.2 研究内容 2
第2章 触摸三子棋系统概述 3
2.1 触摸屏的种类及其原理 3
2.1.1电阻式触摸屏 3
2.1.2 红外式触摸屏 4
2.1.3 电容式触摸屏 4
2.1.4 表面声波触摸屏 4
2.1.5 近场成象触摸屏 5
2.1.6 触摸检测技术方案的比较与选择 5
2.2 红外触摸技术分析 6
2.2.1 发射管的选择 7
2.2.2 接收管的选择 7
2.3 三子棋棋盘设计 8
第3章 三子棋硬件设计 9
3.1 红外触摸感应模块 9
3.1.1 红外发射管 9
3.1.2 红外接收管 10
3.1.3 红外发射接收电路 11
3.1.4电平处理模块 11
3.2 控制模块电路 13
3.2.1 AT89C52功能 13
3.2.2单片机管脚说明 14
3.3驱动模块电路 16
3.4 LED静态驱动 18
第4章 系统软件设计 19
4.1 系统软件模块 19
4.2 触摸信息检测 19
4.2.1触摸有效性判断 19
4.2.2 触摸位置判断 20
4.3 LED驱动 21
第5章 硬件测试 23
5.1 测试工具 23
5.2 测试步骤 23
5.2.1 发射接收对管测试 23
5.2.2 发射接收矩阵测试 23
5.2.3 红外矩阵电平兼容性测试。 24
5.2.4 显示LED矩阵的测试 24
第6章 结束语 25
致谢 26
参考文献 27
附录1 源代码 28
附录2 电路原理图 32
附录3 实物图 33 |
|