基于MSP430单片机窗帘控制系统的设计
基于MSP430单片机窗帘控制系统的设计(论文11000字)
摘要:本设计是一种利用单片机MSP430来控制窗帘的设备。这个设备分为自动档位和手动档位两档,当选择自动档时,设备会通过光明检测元件对设备外部的光线强度进行检测,并根据外部光线的强弱大小来控制电机来带动窗帘的开闭。当选择手动挡时,可以按下定时按钮,设定自己需要的时间来让系统定时开闭窗帘;也可以通过采用红外线遥控的遥控器来手动控制窗帘的位置。单片机通过已经收集到的信号来分析判断,从而控制步进电机来达到不同的转动状态实现窗帘的开闭,并通过LED灯来显示不同的工作状态。整个设计的电路架构较为简单,实用性也较强。焊接完成后的实物调试结果表示,电机运行平稳,可靠性高,在长时间工作中没有出现问题,窗帘控制器的整体性能良好。
关键词:单片机;MSP430;智能窗帘控制系统;红外线;步进电机。
The design of a MSP430 microcontroller based on Curtain control system
Abstract:This design is a kind of equipment with MSP430 microcontroller to control the curtain. This equipment is divided into two files: automatic gear and manual gear. When choosing automatic gear, the equipment will be tested through the detection of light components to the external light intensity, and according to the size on the strength of the external light to control the motor to drive the opening and closing of the curtain. When selecting manual gear, you can press the time button, set the required time to make the system timing open and close the curtain. You can also control the position of the curtain manually by using infrared ray remote control. Microcontroller through the collected signals analyzes and judges to control the rotation of the stepper motor to achieve different states to realize the open and close of the curtains, and through the LED lights shows the different working conditions. The whole design of the circuit structure is simple, practical and strong. The welding of debugging results reflect the motor operates smoothly with high reliability, and no problems appear in working long hours. The overall performance of the curtain controller is good. [资料来源:http://doc163.com]
Key words: Microcontroller; MSP430; Intelligent curtain controller; Infrared; Stepping motor.
[资料来源:https://www.doc163.com]
目录
1 绪论 1
1.1 课题应用背景 1
1.2 单片机的一般硬件特性 2
1.3 课题的研究内容 2
2 系统方案设计 3
2.1 系统总体方案设计 3
2.2 系统各模块的功能与设计 3
2.2.1.单片机模块 3
2.2.2 光强检测模块 4
2.2.3 显示模块 4
2.2.4 时钟模块 4
2.2.5 驱动模块 4
2.2.6 红外接收模块 4
2.2.7 按键模块 4
3 硬件设计 5
3.1 MSP430单片机简介 5
3.2 各个功能模块电路 7
3.2.1 光强检测电路 7
3.2.2 红外接收电路 8
3.2.3 万年历电路 8
3.2.4 晶振电路 9
3.2.5 显示电路 9
4 系统软件设计 12
4.1 软件开发环境介绍 12
4.2 主程序设计 13
4.3 步进电机程序设计 13
4.4 时间程序设计 15
4.5 延时程序设计 15
5调试与检测 16
5.1 硬件的焊接 16
5.2 实物调试 16
5.3 实验结果 18
6 总结与展望 19
6.1 总结 19
6.2 展望 19
参考文献: 20
附录总体电路连接图 21
致谢 22