針對目前采用的熱敏電阻測量方法,提出了采用單總線數字式溫度傳感器ds18b20和單片機組成的新型溫度測量儀。介紹ds18b20的結構和工作原理,以及單總線工作原理,給出了由Mega8單片機和ds18b20構成的單總線溫度測量儀的硬件電路及軟件流程圖。經試驗基于單總線器件ds18b20的溫度測量儀,具有測量準確、測溫范圍寬、體積小、控制方便等優點。
Abstract:
This paper brings forward a new temperature meter composed of 1-Wire temperature sensor ds18b20 and MCU which has advantage of the thermistor. In the article, the ds18b20's structure and controlling principles are introduced and hardware circuit and software diagram of the temperature meter are given.After been tested,the temperature meter has the advantages of accurate measurement, wide temperature range, small volume and convenient controlling.
為了在工業生產及過程控制中準確測量溫度,設計了一種基于低功耗MSP430單片機的數字溫度計。整個系統通過單片機MSP430F1121A控制ds18b20讀取溫度,采用數碼管顯示,溫度傳感器ds18b20與單片機之間通過串口進行數據傳輸。MSP430系列單片機具有超低功耗,且外圍的整合性高,ds18b20只需一個端口即可實現數據通信,連接方便。通過多次實驗證明,該系統的測試結果與實際環境溫度一致,除了具有接口電路簡單、測量精度高、誤差小、可靠性高等特點外,其低成本、低功耗的特點使其擁有更廣闊的應用前景。
Abstract:
In order to obtain accurate measuring temperature in industrial production and process control, a digital thermometer based on MSP430 MCU is designed. The system uses MSP430F1121A MCU to control ds18b20, and gets the temperature data, which is displayed on the LED. The temperature sensor ds18b20 and MCU transmit data through serial communication. MSP430 series has ultra-low power and high integration, ds18b20 only needs one port to achieve data communication. Through many experimental results prove, this system is consistent with actual environment temperature. The system has characteristics of interface circuit simple, high measuring accuracy, minor error, high reliability, besides, the characteristics of low cost and low power make it having vaster application prospect.