目录
摘 要.......................................................................................................................................I
Abstract .................................................................................................................................II
1 绪言....................................................................................................................................1
1.1 课题背景..................................................................................................................1
1.2 课题的研究方向......................................................................................................1
2 系统总体方案设计............................................................................................................2
2.1 系统方案确定..........................................................................................................2
2.2 模块器件选择..........................................................................................................2
2.2.1 STC89C52RC 单片机....................................................................................2
2.2.2 LCD1602 液晶显示屏...................................................................................5
2.2.3 DS1302 时钟芯片..........................................................................................5
3 系统硬件电路设计............................................................................................................6
3.1 单片机时钟电路......................................................................................................6
3.2 单片机复位电路......................................................................................................6
3.3 电源电路....................................................................................................................7
3.4 显示电路....................................................................................................................7
3.4.1 LCD1602 管脚介绍.......................................................................................8
3.4.2 LCD1602 操作时序.......................................................................................8
3.4.3 LCD1602 指令集...........................................................................................8
3.5 DS1302 时钟电路.......................................................................................................9
3.5.1 DS1302 简介................................................................................................9
3.5.2 DS1302 芯片引脚........................................................................................9
3.5.3 DS1302 内部寄存器..................................................................................10
3.5.4 DS1302 数据传输方式..............................................................................10
3.6 AT24C02 数据存储电路.......................................................................................11
3.6.1 AT24C02 简介...........................................................................................11
3.6.2 AT24C02 芯片引脚...................................................................................11
3.6.3 I2C 总线介绍.............................................................................................12
3.7 步进电机 28BYJ-48 电路 .....................................................................................13
3.7.1 28BYJ_48 电路图........................................................................................13
3.7.2 28BYJ_48 相关概念....................................................................................14
3.7.3 28BYJ_48 驱动时序....................................................................................14
3.7.4 28BYJ_48 特点............................................................................................15
3.7.5 28BYJ_48 驱动芯片 ULN2003...................................................................15
3.8 红外接收电路........................................................................................................16
3.8.1 红外接收电路图..........................................................................................16
3.8.2 红外接收探头 HS0038................................................................................16
3.9 光控电路................................................................................................................17
3.10 窗帘框架设计......................................................................................................17
4 系统软件设计..................................................................................................................18
4.1 LCD1602 显示程序...............................................................................................18