【文章內容簡介】
air conditioning, and cannot cooling fault。 Therefore the tele room belongs to electronic products fever faster, in a short time, room temperature beyond normal temperature, cause the system equipment or produce fire, then paralyzed temperature alarm system will play its function.This paper is to use temperature sensor DS18B20 temperature alarm, automatic measuring current environmental temperature by a single chip microputer AT89C2051 control, and through three seven segment digital pipe display, if the current environmental temperature over this temperature, system warning.Keywords:Microcontroller Temperature alarm Temperature sensor leds Temperature display一、功能說明該溫度報警器電路是由18B20溫度傳感器作為溫度傳感器材,由AT89C2051 單片機進行數(shù)據處理。可由電腦USB接口供電,也可外接6V~16V的直流電源。溫度顯示(和控制)的范圍為:55186。C到125 186。C之間,精度為1186。C,也就是顯示整數(shù)。如果設定報警的溫度為20186。C,則當環(huán)境溫度達到21186。C時,報警發(fā)光二極管發(fā)光,同時繼電器動作。如果不需要對溫度控制(報警),可以將報警溫度值設置高些。如果控制的是某局部的溫度,可將18B20用引線引出,但距離不宜過大,注意其引腳絕緣。二、電路操作說明①如電路正常,接通電源后,只顯示“186。C”符號,無溫度值;②按下AN3,先顯示上次存貯下來的設定溫度(報警