目录
摘要 ....................................................................................................................................................................2
关键词 ................................................................................................................................................................2
1.1 课题研究的背景 ..................................................................................................................................6
1.2 课题研究的意义 ..................................................................................................................................6
1.3 课题研究内容和结构 .........................................................................................................................6
第二章 总体设计 ..............................................................................................................................................7
2.1 系统的工作原理 ..............................................................................................................................7
2.2 各模块方案选择 ..............................................................................................................................7
2.2.1 单片机主控制模块 ................................................................................................................7
2.2.2 驱动模块 ..................................................................................................................................8
2.2.3 显示模块 ................................................................................................................................8
第三章 系统硬件电路设计与实现 ..................................................................................................................8
3.1 硬件电路设计 ...................................................................................................................................8
3.2 单片机最小系统 .................................................................................................................................9
3.2.1 时钟电路 ...................................................................................................................................9
3.2.2 P0 口外接上拉电阻 ...............................................................................................................10
3.3 驱动模块的设计 ................................................................................................................................11
3.4 光立方整体设计思路 .......................................................................................................................12
3.4.1 LED 灯排序方式设计 ............................................................................................................12
3.4.2 LED 灯接法方式设计 ............................................................................................................13
3.5 光立方搭建方法 ................................................................................................................................13
3.5.1 将 LED 从点到线的搭建 .......................................................................................................13
3.5.2 将 LED 从线到面的搭建 .......................................................................................................14
3.5.3 将 LED 从面到体的搭建 .......................................................................................................15
3.6 PCB 板的焊接....................................................................................................................................15
3.6.1 PCB 板的制作.........................................................................................................................15
3.6.2 主板的焊接 ............................................................................................................................16
3.6.3 主芯片的焊接 .........................................................................................................................16
3.6.4 开关及按键的焊接 .................................................................................................................16
3.6.4 排插及晶振的焊接 .................................................................................................................17
第四章 软件设计 ............................................................................................................................................18
4.1 主程序的设计 ...................................................................................................................................18
4.2 显示程序的设计 ...............................................................................................................................19
4.2.1 显示模块的原理 .....................................................................................................................19
4.2.2 显示程序的设计 ....................................................................................................................19
4.3 软件调试 ...........................................................................................................................................20
第五章 成品测试和问题分析 ........................................................................................................................21
5.1 成品测试 .........................................................................................................................................21
5.1.1. 硬件调试 .............................................................................................................................21
5.1.2. 软件系统 ...............................................................................................................................22
5.2 结果分析 .........................................................................................................................................22
第六章 结论 ....................................................................................................................................................23