基于單片機的室內環境監測設計
陳達
(隨州職業技術學院,湖北隨州,441300)
摘要:本文設計了基于STC12C5A60S2單片機的室內環境監測系統,該系統由室內環境監測模塊以及顯示模塊構成,通過 DHT21溫濕度傳感器以及MS1100甲醛傳感器,實現了對室內環境的監測功能,并將監測數據通過STC12C5A60S2單片機進行轉換,從而在顯示模塊中直觀地顯示出來。該系統不僅能夠有效監測室內環境,更具有輕量、小巧、低耗等諸多優點。
關鍵詞:單片機;室內環境監測;甲醛傳感器;溫濕度傳感器
Indoor environment monitoring design based on single chip microcomputer
Chen Da
(Suizhou Vocational and Technical College,Suizhou Hubei,441300)
Abstract:This paper introduces the design Of the indoor environment monitoring system based on STC12C5A60S2 MCU, the system consists of indoor environment monitoring module and display module, the DHT21 temperature and humidity sensor MS1100 and formaldehyde sensor,realizes the monitoring function Of the indoor environment, and the monitoring data is converted by STC12C5A60S2 microcontroller, which display in the display module out. The system can not only effectively monitor the indoor environment, but also have many advantages,such as I ight,small, IOW consumption and SO on.
Key words: single chip microcomputer;indoor environment monitoring;formaldehyde sensor;temperature and
在本室內環境監測系統設計方案完成理論設計后,通過實驗對其性能等進行驗證分析。首先,依照本設計方案中的硬件設計部分,將STC12C5A60S2單片機、DHT21傳感器、MS1100一P111傳感器以及液晶顯示器等硬件連接制成實驗板;然后,使用Keii u Vision4根據軟件設計方案編寫出相應的二進制程序,并將編寫好的程序通過STC ISP寫入STC12C5A60S2單片機;最后對實驗板進行上電運行測試。