1、 内容摘要内容摘要 随着人们生活水平的提高,智能窗帘已成为现代人们的室内家居的一部分, 它使人们的生活更加便捷,改善了人们日常生活的质量。传统的窗帘需要手动, 但一些大型写字楼、高档办公室、展览馆的窗帘多、长且重,手动比较困难,所 以本设计解决了此问题, 实现了全自动。 主要设计理念是通过检测窗外光线强弱, 控制百叶窗摆动角度,调节室内光照,创造舒适的工作生活环境。 论文设计的核心控制选用的是 MCS-51 单片机,光线采集选用光敏电阻。由 于单片机只能读入数字信号, 所以模拟信号处理采用 ADC0809 八路八位转换器。 转换成数字信号后,根据数据大小相应地驱动电机,调节其转动角度。电机选用
2、 比较容易进行角度调节的步进电机,单片机与步进电机之间的连接采用 ULN2003 达林顿驱动器。 本文分为四部分:第一部分总述基于 MCS-51 单片机的智能窗帘设计思想及 结构内容;第二部分主要介绍 MCS-51 单片机结构特点及单片机的 C 语言编程 -C51;第三部分详细论述了信号处理系统的设计,包括光线的采集和 AD 转 换;第四部分详细论述了步进电机控制系统的设计。第五部分展示了硬件电路 实体。 通过此次毕业设计,使我进一步熟悉MCS-51单片机和步进电机的工作原理 及应用,对于 C51 程序设计的编写也较熟练了,锻炼了独立思考与团队合作的 能力。 关键词:关键词:MCS-51 单片
3、机;单片机;ADC0809;步进电机;步进电机;ULN2003 驱动器驱动器 ABSTRACT With peoples living standards improved, the Smart curtains have become a part of peoples indoor furniture now. It has made peoples living more convenient, has improved the quality of peoples daily lives. The traditional curtain need to manual, but some
4、 large office buildings、high-end office、exhibition hall, their curtains are large, long and heavy, its difficult to manual. Therefore, this design can solve this problem and achieve a fully automatic. The mainly concepts of the design is through detect the intensity of outdoor light, to control the angle of the electric motor. Adjust the indoor light to create a comfortable working environment. The core controlling of this thesis design is MCS-51 Microcontroller. Photoresistor gather the