电子测试
電子測試
전자측시
ELECTRONIC TEST
2014年
20期
4-6
,共3页
STC89C51%DHT11%LCD%自动浇水系统
STC89C51%DHT11%LCD%自動澆水繫統
STC89C51%DHT11%LCD%자동요수계통
STC89C51%DHT11%LCD%automatic watering system
利用STC89C51单片机设计了一款智能浇水系统,以温湿度传感器DHT11为感应部件,将检测到的空气温湿度值送入STC89C51单片机,再将其数值输出到LCD液晶显示屏上显示。通过单片机程序设定浇水的上下限值与DHT11送入单片机的空气湿度值相比较,当低于下限值时,单片机输出一个信号控制电磁阀打开,开始浇水,高于上限值时由单片机输出一个信号控制电磁阀关闭,停止浇水。实时时间的显示与定时控制是由单片机从时钟芯片DS1302读入,通过程序设定的定时浇水的时间与浇水的量进行浇水,可以实现花卉的自动浇水功能。
利用STC89C51單片機設計瞭一款智能澆水繫統,以溫濕度傳感器DHT11為感應部件,將檢測到的空氣溫濕度值送入STC89C51單片機,再將其數值輸齣到LCD液晶顯示屏上顯示。通過單片機程序設定澆水的上下限值與DHT11送入單片機的空氣濕度值相比較,噹低于下限值時,單片機輸齣一箇信號控製電磁閥打開,開始澆水,高于上限值時由單片機輸齣一箇信號控製電磁閥關閉,停止澆水。實時時間的顯示與定時控製是由單片機從時鐘芯片DS1302讀入,通過程序設定的定時澆水的時間與澆水的量進行澆水,可以實現花卉的自動澆水功能。
이용STC89C51단편궤설계료일관지능요수계통,이온습도전감기DHT11위감응부건,장검측도적공기온습도치송입STC89C51단편궤,재장기수치수출도LCD액정현시병상현시。통과단편궤정서설정요수적상하한치여DHT11송입단편궤적공기습도치상비교,당저우하한치시,단편궤수출일개신호공제전자벌타개,개시요수,고우상한치시유단편궤수출일개신호공제전자벌관폐,정지요수。실시시간적현시여정시공제시유단편궤종시종심편DS1302독입,통과정서설정적정시요수적시간여요수적량진행요수,가이실현화훼적자동요수공능。
One kind of intelligent watering system has been designed using STC89C51 MCU,temperature and hum idity sensor DHT11 is used as inductive component,detected air temperature and humidity value will be put into STC89C51 MCU,and then the value is ex-ported to display on the LCD.The up and low limited value which are set by MCU procedure are compared with air humidity value that has been put into MCU by DHT11,when it is under low limited value,solenoid valve is controlled to open by a output signal of MCU,and watering beg ins; while when it is above up limited value,solenoid valve is controlled to close by a output signal of M CU, and watering stops.Real time display and timing control is that MCU reads from the clock chip DS1302,t he time and number of timing watering are set by procedure,and watering is conducted,thus automatic waterin g function of flowers can be realized.