freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機(jī)的溫控風(fēng)扇的設(shè)計(jì)_本科畢業(yè)論文-資料下載頁

2025-06-30 17:51本頁面

【導(dǎo)讀】機(jī)作為控制平臺(tái)對(duì)風(fēng)扇轉(zhuǎn)速進(jìn)行控制??捎捎脩粼O(shè)置高、低溫度值,測得溫度值在高低。度小于所設(shè)定的溫度時(shí)自動(dòng)關(guān)閉風(fēng)扇,控制狀態(tài)隨外界溫度而定。所設(shè)高低溫值保存在

  

【正文】 ](第三版) .北京:清華大學(xué)出版社 .— 65. [10] 孫號(hào) . Proteus 軟件在設(shè)計(jì)電子電路中的應(yīng)用 [J].儀表技術(shù), 20xx, 8:74— 75 [11] 樓俊軍 .基于 Proteus 和 Keil 的單片機(jī)演奏樂曲的實(shí)現(xiàn) [J] .科技信息, 20xx,23:第 50 頁 [12] 王文海,周歡喜 .用 Proteus 實(shí)現(xiàn) 51 單片機(jī)的動(dòng)態(tài)仿真調(diào)試 [J].IT 技術(shù), 20xx,20:10— 11 [13] 丁建軍,陳定方,周國柱 . 基于 AT89C51 的智能電風(fēng)扇控制系統(tǒng) [J].湖北工學(xué)院學(xué)報(bào),20xx,18(2):60— 63. [14] 王會(huì)明,侯加林 . 智能電風(fēng)扇控制器的研制 [J]. 電子與自動(dòng)化, 1998,5(4): 25— 26. [15] 劉進(jìn)山 . 基于 MCS51 電風(fēng)扇智 能調(diào)速器的設(shè)計(jì) [J]. 廣州:電子質(zhì)量, 20xx,10(10): 71. [16] YU Qihao,CHENG Guodong,NIU Fujun. The application of autotemperaturecontrolled ventilation embankment in QinghaiTibet Railway [J]. Science in China Ser. D Earth Sciences, 20xx,1(47):168— 176. [17] YLai, Y, Wang. Three— dimensional nonlinear analysis for temperature characteristic of ventilated embankment in permafrost regions [J]. Cold Regions Science and Technology, 20xx,38(2):165— 184. [18] Cheng Guodong. Linearity engineering in permafrost areas [J]. Journal of Glaciology and Geocryology(in Chinese), 20xx,23(3): 213— 217. [19] B Schneier. Applied Crytography: Algorithms, and Source Code in C[J]. New York: Jone Wileyamp。 Sons. 1994. 301— 307. [20] Intel: Benjamin Jun, Paul Kocher. The lntel Random Number Generator[J]. White Paper Prepared for lntel Corporation, April 22, l999: 4— 5. 29 附錄 1:電路總圖 附圖 1 電路總圖 30 附錄 2:程序代碼 include define uchar unsigned char define uint unsigned int sbit DQ=P1^7。 sbit key1=P1^3。 sbit key2=P1^4。 sbit dianji=P3^1。 float ff。 uint y3。 uchar shi,ge,xiaoshu,sheding=20,gaonum,dinum。 uchar code dispcode[]={ //段碼 0x3f,0x06,0x5b,0x4f, 0x66,0x6d,0x7d,0x07, 0x7f,0x6f,0x77,0x7c, 0x39,0x5e,0x79,0x71}。 uchar code tablel[]={ //帶小數(shù)點(diǎn)的段碼 0xbf,0x86,0xdb,0xcf, 0xe6,0xed,0xfd, 0x87,0xff,0xef}。 uchar dispbitcode[]={ //位選 0xfe,0xfd,0xfb,0xf7, 0xef,0xdf,0xbf,0x7f}。 uchar dispbuf[8]={0,0,0,0,0,0,0,0}。 void Delay(uint num)// 延時(shí)函數(shù) { while( num )。 } void digitalshow(uchar a4,uchar a3,uchar a2,uchar a1,uchar a0) { dispbuf[0]=a0。 dispbuf[1]=a1。 dispbuf[2]=a2。 dispbuf[3]=a3。 dispbuf[4]=a4。 P2=0xff。 P0=dispcode[dispbuf[0]]。 P2=dispbitcode[5]。 Delay(1)。 P2=0xff。 P0=dispcode[dispbuf[1]]。 31 P2=dispbitcode[4]。 Delay(1)。 P2=0xff。 P0=dispcode[dispbuf[2]]。 P2=dispbitcode[2]。 Delay(1)。 P2=0xff。 P0=tablel[dispbuf[3]]。 P2=dispbitcode[1]。 Delay(1)。 P2=0xff。 P0=dispcode[dispbuf[4]]。 P2=dispbitcode[0]。 Delay(1)。 } void dmsec(uint count) { uint i。 // 1ms 延時(shí) while(count) { for(i=0。i125。i++){} } } void tmreset(void) { DQ=0。 Delay(90)。 // 精確延時(shí) 大于 480us DQ=1。 Delay(4)。 // 90, 4 可以小范圍變化 } void tmpre(void) { while(DQ)。 while(~DQ)。 Delay(4)。 } bit tmrbit(void) { 32 uint i。 bit dat。 DQ=0。 i++。 // i++。大概 1us DQ=1。 i++。 i++。 dat=DQ。 Delay(8)。 return(dat)。 } uchar tmrbyte(void) //讀一個(gè)比特 { uchar i,j,dat。 dat=0。 for(i=1。i=8。i++) { j=tmrbit()。 dat=(j7)|(dat1)。 } return(dat)。 } void tmwbyte(uchar dat) //寫一個(gè)比特 { uint i。 uchar j。 bit testb。 for(j=1。j=8。j++) { testb=datamp。0x01。 dat=dat1。 // 從低位開始 if(testb) // Write 1 { DQ=0。 // 先拉低 i++。 i++。 // 1us DQ=1。 Delay(4)。 } else // Write 0 { DQ=0。 33 Delay(4)。 DQ=1。 i++。 i++。 // 再拉高 } } } void tmstart(void) //ds1820 開始轉(zhuǎn)換 { dmsec(1)。 tmreset()。 tmpre()。 dmsec(1)。 tmwbyte(0xcc)。 // skip rom tmwbyte(0x44)。 // 轉(zhuǎn)換 } uchar tmrtemp(void) //讀取溫度 { uchar a,b。 tmreset()。 tmpre()。 dmsec(1)。 tmwbyte(0xcc)。 // skip rom tmwbyte(0xbe)。 // 轉(zhuǎn)換 a=tmrbyte()。 // LSB 低 8 位 b=tmrbyte()。 // MSB 高 8 位 y3=b。 y3=8。 y3=y3|a。 ff=y3*。 y3=ff*10+。 return(y3)。 } void keyscan(void) { if(key1==0) { dmsec(5)。 if(key1==0) { sheding++。 if(sheding==100) sheding=20。 } 34 while(!key1)。 } else if(key2==0) { dmsec(5)。 if(key2==0) { sheding。 if(sheding==0) sheding=20。 } while(!key2)。 } } void deal(uint tmp) //溫度處理 { if(tmp=sheding) { gaonum=0。 dinum=4。 } else if((tmpsheding)amp。amp。(tmp=(sheding+5))) { gaonum=1。 dinum=3。 } else if((tmp(sheding+5))amp。amp。(tmp=(sheding+10))) { gaonum=2。 dinum=2。 } else if((tmp(sheding+10))amp。amp。(tmp=(sheding+15))) { gaonum=3。 dinum=1。 } else { gaonum=4。 dinum=0。 } } void dianjik() //電機(jī)控制 { 35 uchar q,i。 for(q=0。qdinum。q++) { dianji=0。 digitalshow(shi,ge,xiaoshu,sheding/10,sheding%10)。 for(i=255。i0。i) { digitalshow(shi,ge,xiaoshu,sheding/10,sheding%10)。 } } for(q=0。qgaonum。q++) { dianji=1。 digitalshow(shi,ge,xiaoshu,sheding/10,sheding%10)。 for(i=255。i0。i) { digitalshow(shi,ge,xiaoshu,sheding/10,sheding%10)。 } } } void main(void) { uint last。 dianji=0。 tmstart()。 dmsec(450)。 // 初始化 ds18b20 while(1) { tmstart()。 // ds1820 開始轉(zhuǎn)換 dmsec(2)。 last=tmrtemp()+256。 // 讀取溫度 shi=last/100。 ge=(last%100)/10。 xiaoshu=(last%100)%10。 keyscan()。 dmsec(2)。 deal(last/10)。 dianjik()。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1