编号 D-26 南京航空航天大学电子电路设计大赛作品报告书基于 ATMega328P 单片机的智能窗帘控制系统二〇一六年十一月第十一届“中航津电杯”电子电路设计竞赛作品报告 i 基于 ATMega328P 单片机的智能窗帘控制系统摘要本课题的研究目的是开发出基于 ATMega328P 单片机的智能窗帘控制系统,以常见的百叶窗为硬件平台,采用 28BYJ48 四相五线步进电机与 ULN2003 集成达林顿管驱动阵列进行驱动。通过光敏传感器采集光强度,经由采样/ 保持电路、 AD 转换电路输出数字量,与预设参量比较,单片机输出信号控制电机的正、反转以达到开闭窗帘的目的。同时使用矩阵键盘实现手动开闭窗帘以及设置开闭系数的功能。关键词: ATMega328P ,百叶窗,智能窗帘第十一届“中航津电杯”电子电路设计竞赛作品报告 ii Intelligent curtain control system based on single-chip ATMega328P Abstract The purpose of this project is to develop an intelligent control system based on ATMega328P microcontroller, mon ly-seen shutters as hardware platform, using 28BYJ48 four phase five wire stepper motor integrated with ULN2003 Darlington arrays as driver section . With the collection ofl ight intensity by photosensitive sensor, followed by sampling / holding circuit, AD conversion circuit, the system will give a digital output. Next, the signal pare with preset parameters, and use the positive and the negative output signal to control the motor in order to achieve the purpose of opening and closing the curtains. At the same time using the matrix keyboard to achieve manual open and close of curtain s and s et the function of opening and closing coefficient . Key Words : intelligent control system, ATMega328P , shutters 第十一届“中航津电杯”电子电路设计竞赛作品报告 iii 目录摘要.......................................................................................................................................... ⅰ Abstract ........................................................................................................................................ ⅱ一、引言................................................................................................................................... 1 课题背景.......................................................................................................................... 1 课题的研究工作.............................................................................................................. 1 二、电路与程序及机械结构设计.