【正文】
第 16 頁 附圖 1 第 17 頁 附圖 2 溫 控電機(jī)調(diào)速的 Proteus 仿真圖 第 18 頁 設(shè)定溫度 度時,電機(jī)正傳速度為 附圖 3 第 19 頁 設(shè)定溫度 度時,電機(jī)正傳速度為 147r/min 附圖 4 第 20 頁 設(shè)定溫度 度時,電機(jī)正傳速度為 122r/min 附圖 5 。 把溫度傳感器 DS18B20 溫度表設(shè)置為 35 攝氏度,待一段時間后,觀察電機(jī)的轉(zhuǎn)速 ,見后面附圖 5。 deal(last/10)。 while(1) { tmstart()。 digitalshow(shi,ge,xiaoshu,sheding/10,sheding%10)。q++) { dianji=0。amp。amp。 } while(!key1)。 y3=8。 tmreset()。 i++。 i++。 uchar j。 } uchar tmrbyte(void) { uchar i,j,dat。 DQ=0。 第 10 頁 Delay(90)。 P2=0xff。 P2=0xff。 P2=0xff。 uchar dispbitcode[]={ 0xfe,0xfd,0xfb,0xf7, 0xef,0xdf,0xbf,0x7f}。 sbit key1= P1^3。 其硬件接線圖如下: 第 6 頁 第四章 電路的設(shè)計(jì) 開關(guān)復(fù)位與晶振電路 : 在單片機(jī)系統(tǒng)中,處于單片機(jī)本身需要復(fù)位意外,外部擴(kuò)展 I/O 端口電路同樣需要復(fù)位,因此需要一個包括上電按鈕復(fù)位在內(nèi)的系統(tǒng)同步復(fù)位電路。數(shù)碼管實(shí)際上是由七個發(fā)光管組成 8 字形構(gòu)成的,加上小數(shù)點(diǎn)就是 8 個。耐磨耐碰,體積小,使用方便,封裝形式多樣,適用于各種狹小空間設(shè)備數(shù)字測溫和控制領(lǐng)域 。 調(diào)速方式 通過 8052 系列單片機(jī) AT89C52 作為控制器,采用 DALLAS 公司的溫度傳感器 DS1820 作為溫度采集元件,并通過一個反向驅(qū)動器 ULN2803 驅(qū)動電機(jī)的轉(zhuǎn)動。并通過兩個按鍵改變預(yù)設(shè)溫度的大小,一個提高預(yù)設(shè)溫度,另一個降低預(yù)設(shè)溫度。而隨著溫控技術(shù)的發(fā)展,為了降低風(fēng)扇運(yùn)轉(zhuǎn)時的再引及節(jié)省能源等,溫度控制電機(jī)轉(zhuǎn)速這一方案越來越受到重視并廣泛的被應(yīng)有。 15 第七章 參考文獻(xiàn) 2 溫度傳感器的選擇 s internal heat, thus ensuring the normal operation of the work. In recent years, the rapid development of microputers, foreign Digital ACDC system has reached the practical stage due to the high degree of standardization of microprocessor core digital control system hardware circuit, low production costs, and the device is not affected by temperature drift, which SCM the most popular. SCM (Single chip microputer) singlechip microputers referred to, is a typical embedded microcontroller (Microcontroller Unit), monly used abbreviations in alphabetical said MCU MCU, microcontroller, also known as singlechip microcontroller, it is not pleted a certain logic chips , but to a puter system integrated into a chip. SCM consists of puting, controller, memory, input and output devices, the equivalent of a miniputer (minimum system), and a puter pared to the lack of a singlechip peripherals. Speaking in general terms: a chip has