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

正文內(nèi)容

基于at89s51單片機(jī)的家用煤氣報警器(參考版)

2024-12-11 00:58本頁面
  

【正文】 gas concentration 。 Technology, Electronic Science and Technology, Nanjing 210044 ABSTRACT In this thesis, the gas alarm using alarm AT89S51 MCU core ponent to control the gas alarm. By MQ2 semiconductor gas sensor to detect the gas, the concentration values obtained as a percentage of the forms, and the percentage of the set concentration pared to be bias. The error signal processing by gain control signals, alarm signals, the gas concentration using the corresponding analog A / D converted to digital, and joined the keyboard input control alarm limit, enabling the monitoring of leakage of household gas. Hardware design of the system is reasonable, safe and reliable performance. Keywords: 51 MCU。 [14]Paul F. Lister. Singlechip microputers [M]. McGrawHill, 2021 [15]Paul M252。 [9]趙亮、候國銳:單片機(jī) C語言編程與實例 [M],北京人民郵電出版社 2021年。 [7]何道清、張禾:傳感器與傳感器技術(shù) [M],科學(xué)出版社 2021年。 [5]李全釗、遲榮強(qiáng):單片機(jī)原理及接口技術(shù) [M],高等教育出版史 2021年。 [3]周捷:有毒可燃?xì)怏w報警器原理及設(shè)計 [J],科技信息 2021年總第 5期。 參考文獻(xiàn) [1]姚豐、劉念聰:一種單片機(jī)智能煤氣系統(tǒng)的設(shè)計 [J],天津職業(yè)大學(xué)學(xué)報 2021年 6月 第 13卷 第13期。 通過對偏差信號的處理 29 獲得控制信號, 進(jìn)而發(fā)出 報警信號,并加入了鍵盤輸入控制報警 的 上限 濃度 , 從而實現(xiàn)對煤氣泄露 的監(jiān)控。)。j++) { write_Data(39。 for(j=0。)。j++) { write_Data(39。 for(j=0。 } void Clear() { uchar j。 } 28 void Getxy(uchar x,uchar y) { if(y==0) write_(0x80|x)。 write_(0x01)。 write_(0x06)。 write_(0x0c)。 write_(0x38)。 Rs=0。 En=0。 P0=dat。 En=1。 En=0。 _nop_()。 } void write_Data(uchar dat) { rw=0。 _nop_()。 delay_ms(1)。 delay_ms(1)。 delay_ms(1)。 Rs=0。 Rs=1。 sbit Rs=P1^0。 } } 1602 頭文件 ifndef LCD1602 define LCD1602 define uint unsigned int 26 define uchar unsigned char include sbit En=P1^2。 key_scan()。 if(ad_data999)ad_data=999。//暫時不選擇 AD 芯片 clk_tlc1549=0。 write_(0x01)。)。 write_Data(39。g39。)。 write_Data(39。s39。)。 write_Data(39。D39。)。 write_Data(39。y39。)。 write_Data(39。 39。)。 write_Data(39。i39。)。 write_Data(39。T39。 Getxy(0,1)。 led1=1。 key1=1。 } } int main(void) { Init()。 speak=0。 led1=0。 if(temp2dat1) { led2=1。%39。 write_Data(number[dat1%10])。 write_Data(number[(dat1%100)/10])。)。 write_Data(39。e39。)。 write_Data(39。l39。)。 write_Data(39。v39。)。 write_Data(39。a39。)。 write_Data(39。)。 write_Data(39。 write_Data(0x2e)。 write_Data(number[temp2/100])。)。 write_Data(39。e39。)。 write_Data(39。o39。)。 write_Data(39。s39。)。 write_Data(39。k39。)。 write_Data(39。m39。)。 write_Data(39。 } void display() { uint temp2。 cs_tlc1549=1。 23 clk_tlc1549=0。 clk_tlc1549=1。i10。 io_tlc1549=1。//。 unsigned int j=0。 。 if(dat11) dat1=0。 } dat1。 } if(0==key2) { delay_ms(2)。 if(0==key1) { while(!key1)。 void key_scan(void)。 sbit led1=P2^5。 sbit key2=P2^2。//TLC1549 數(shù)據(jù)線 sbit cs_tlc1549=P3^5。 sbit clk_tlc1549=P3^3。 uint ad_data=0。 20 圖 41 主程序流程圖 主程序清單 include include include include 開始 數(shù)據(jù)初始化 采樣子程序 采樣數(shù)據(jù) 設(shè)定值? 初始化程序 報警 /控制子程序 判斷按鍵是否按下 按鍵處理程序 設(shè)置值+ 設(shè)置值 Y N 結(jié)束 21 define ulong unsigned long define uint unsigned int define uchar unsigned char uchar number[]=0123456789。根據(jù)系統(tǒng)工作特點(diǎn),程序采用結(jié)構(gòu)化的軟件設(shè)計方法 [9]。當(dāng)精確測量時,報警點(diǎn)的設(shè)定應(yīng)考慮溫 濕度的影響。 19 圖 317 MQ2 氣敏元件的溫濕度特性 MQ2型氣敏元件對不同種類、不同濃度的氣體有不同的電阻值。 Ro: 20℃, 33%RH條件下, 1000ppm氫氣中元件電阻。 R0: 元件在潔凈空氣中的電阻值。 12345678REST9RXD/10TXD/11INT0/12INT1/13T0/14T1/15WR/16RD/17XTAL118XTAL019GND202122232425262728PSEN29ALE/PROG30EA/Vpp313233343536373839VCC40U7AT89S51REF+1ANLG IN2REF3GND4CS5DO6I/O CLK7VCC8U8TLC549ID2 x 16 Liquid Crystal Display1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16U6TC1602123456789R7Res PackVCC12Y3XTALGNDC830PC930PGNDGNDVCCVCCP34P33P35GNDP21 P22 P23 P24P33 VCCKEY1SWPBKEY3SWPBKEY4SWPBKEY2SWPBP21P22P23GNDVCC VCCGNDP34P35P36P37P24P10 P11 P12P10P11P1210KR1310KR1410KR11D17LED0D18LED01KR101KR9P27Q32N39041KR15P27LS3SpeakerVCCGND123456MQ1Header 3X2GNDVCC1KR1210KR810UFC7VCCRESTS10SWPB 18 圖 314 MQ2 管腳圖 圖 315 測量電路 傳感器靈敏度特性 如圖 316 給出了 MQ2型氣敏元件的靈敏度特性。封裝好的氣敏元件有6只針狀管腳,其中4個用于信號取出,2個用于提供加熱電流 [8]。 MQ2與 TLC549的管腳連接 如 圖 313所示。 電路的連接圖 312如下。就利用12345678REST9RXD/10TXD/11INT0/12INT1/13T0/14T1/15WR/16RD/17XTAL118XTAL019GND202122232425262728PSEN29ALE/PROG30EA/Vpp313233343536373839VCC40U7AT89S51REF+1ANLG IN2REF3GND4CS5DO6I/O CLK7VCC8U8TLC549ID2 x 16 Liquid Crystal Display1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16U6TC1602123456789R7Res PackVCC12Y3XTALGNDC830PC930PGNDGNDVCCVCCP34P33P35P23 P22P33 VCCKEY1SWPBKEY2SWPBP22P23GNDVCC VCCGNDP34P35P36P37P10 P11 P12P10P11P1210KR1310KR1410KR11D17LED0D18LED01KR101KR9P27Q32N39041KR15P27LS3SpeakerVCCGND123456MQ1Header 3X2GNDVCC1KR1210KR810UFC7VCCRESTS10SWPBGND12
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1