中文题目:基于单片机的自动浇花器设计摘要本次自动浇花器设计,系统是用AT89C51单片机作为控制核心,使用YL-69作为土壤湿度传感模块,光敏电阻作为光照量传感模块,LCD1602作为显示数据的模块,按键用来设定数值。本系统有三种模式的功能,一是可以通过YL-69湿度传感器进行土壤湿度的采集,利用单片机AT89C51对信息进行处理,输出控制信号,控制信号通过控制继电器控制水泵电源是否通断,从而完成自动浇水。二是利用单片机精确控制,在设定时间内实施浇水。三是在系统中加入一个光敏电阻,当检测到有光照的时候即白天的时候系统检测到土壤湿度低于设定值时才运行完成浇水,当检测到无光照即黑夜时即使检测到土壤湿度低于设定值系统也不会运行。关键词:YL-69;湿度;光敏电阻;AT89C51单片机;水泵;LCD1602AbstractTheautomaticwateringdevicedesign,systemusesAT89C51microcontrollerascontrolcore,useYL-69asasoilhumiditysensormodule,photosensitiveresistanceastheamountoflightsensingmodule,LCD1602asdatadisplaymodule,buttonisusedtosetthevalue.Thissystemhasthefunctionofthethreemodes,oneisthesoilmoisturebyYL-69humiditysensoracquisition,processingtheinformationusingmicrocontrollerAT89C51outputcontrolsignal,thecontrolsignalthroughthecontrolrelaytocontrolthepumppowerisonandoff,soastocompletetheautomaticwatering.Twoistheuseofsingle-chipprecisioncontrol,theimplementationofwaterwithinthesettime.Thethreeistoaddaphotosensitiveresistanceinthesystem,whenthedetectedlighttimeduringthedaywhenthesystemdetectsthesoilhumidityislowerthanthesetvaluebeforeoperationfinishedwatering,whenthedetectedlightisdarkeventodetectsoilmoistureislowerthanthesettingvalue,thesystemwillnotberunning.Keywords:YL-69;humidity;photosensitiveresistance;AT89C51singlechip;waterpump;LCD1602目录1绪论.............................................................................................................................61.1研究背景..................................................................................................................61.3主要设计内容..........................................................................................................72系统设计.....................................................................................................................92.1方案论证..................................................................................................................92.1.1总体方案设计.......................................................................................................92.1.2土壤湿度测量方案...............................................................................................92.2硬件的选择............................................................................................................102.3系统结构................................................................................................................103系统硬件设计...........................................................................................................123.1AT89C51主要性能参数.......................................................................................123.2时钟电路................................................................................................................133.3AT89C51的复位电路...........................................................................................143.4YL-69土壤湿度传感器........................................................................................153.5ADC0832转换芯片.....