基于MSP430单片机的智能晾衣架的设计
基于MSP430单片机的智能晾衣架的设计(论文14400字)
摘要:日常生活中,一般我们晾衣服都是在白天,但由于工作和其他事情导致我们白天一般不在家里,我们可以避免在下雨天晾衣服,但是意料之外的下雨会带来相当大的麻烦,造成衣服被打湿的不良后果,但如果只在室内晾衣服会有滴水,衣服晾不干等麻烦,晚上并不适合晾衣服。
本设计采用MSP430平台,制作一个基于MSP430单片机的智能晾衣架系统,通过单片机对雨滴传感器和光照传感器的数据接收和处理。通过实践,得到用于单片机数据处理的阈值,做到对天亮天黑,晴天雨天的精确判断,同时也要通过对距离的精确测量和良好的反馈机制做到单片机对机械传动结构的精确控制。
本设计可以进行进一步的优化和升级。在单片机基础上添加无线模块等,实现智能手机的远程控制等功能。
关键字:MSP430;雨滴传感器;步进电机
The design of the intelligent clothes-horse based on MSP430
Abstract: In our daily life, we always dry the clothes in the daytime, but we are not at home during the daytime because of the work or other things. We can avoid dry clothes in rainy days, but the unexpected rain will bring a very big trouble. Causing the adverse consequences that the clothes will be wet. But if we only dry the clothes indoors, the water would be dropped and the clothes could not be dried. So it is not suitable for us to dry the clothes at night. [资料来源:www.doc163.com]
This design made an intelligent clothes rack system based on MSP430 microcontroller, receiving and processing the data of the rain sensor and the light sensor by the MSP430 microcontroller. We got the threshold of data processing which is used for the microcontroller by practicing. We can judge if it is daytime or night, rain day or sun day precisely. Also, we can control the mechanical transmission structure precisely by measuring distance precisely and good feedback mechanism.
This design can be further optimized and upgraded like adding wireless module and so on,realizing the remote control of the smart phones.
Key words: MSP430; rain sensor; stepper motor
目 录
1 绪论 1
1.1课程应用背景 1
1.2 方案论述 1
1.3 本设计工作 3
2 系统设计方案 3
2.1 光强度检测方案的选择 4
2.2 单片机的选择与论证 4
2.4 电机的选择与论证 5 [资料来源:Doc163.com]
3 硬件设计 5
3.1 单片机MSP430概述 5
3.2 光照检测模块 7
3.3 雨滴检测模块 8
3.3.1 雨滴检测模块参数 8
3.3.2 雨滴检测电路 8
3.4 电机驱动电路ULN2003 9
3.5 步进电机 11
4 软件系统设计 12
4.1 软件开发环境介绍 12
4.2 程序设计 13
5 调试与检测 15
5.1 硬件的焊接 15
5.2 实物的调试 16
5.2.1 雨滴传感器的调试 17
5.2.2 光照检测模块的调试 17
5.2.3 电机驱动及电机的调试 18
5.3 调试结论 18
6 总结与展望 19
6.1 总结 19
6.2 展望 19
参考文献 19
致谢 21 [资料来源:http://Doc163.com]