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

正文內容

畢業(yè)論文-基于stc12c5a16ad單片機與mq-3型氣體傳感器的酒精濃度探測儀設計(文件)

2024-12-10 18:45 上一頁面

下一頁面
 

【正文】 S3 直插 按鍵 1 D1 直插 紅色 發(fā)光管 1 D2 直插 紅色 發(fā)光管 1 D3 直插 紅色 發(fā)光管 1 Y1 直插 12M 晶振 1 U1 DIP40 STC12C5A16AD 單片機 1 U2 DIP8 24C04 EEPROM 1 U3 直插 MQ3 酒精測試模塊 1 液晶屏 綠屏 LCD1602 1 J1 SIP16 顯示接口 8腳插座 1 J2 SIP4 傳感器接口 4腳插座 1 單片機插座 DIP40 1 電路板 1 畢業(yè)設計用紙 第 22頁 共 28 頁 附附 錄錄 B 實實 物物 圖圖 畢業(yè)設計用紙 第 23頁 共 28 頁 附附 錄錄 C 程程 序序 //include include include include define uchar unsigned char define uint unsigned int //聲明常量 define ALCH 80 //醉駕標準 80mg/L //K_MG_MV和 K_ZERO為傳感器校準系數(shù),要根據(jù)每個 MQ3模塊校準 define K_MG_MV 160/66 //傳感器靈敏度系數(shù),每毫克 /L 對應的 10毫伏數(shù) define K_ZERO 0 //傳感器零點 漂移,約 130mV //定義按鍵 sbit Key_Up = P3^6。 //定義乙醇傳感器 TTL電平輸出引腳 sbit DOUT = P1^4。 //酒精濃度上限報警值 uint ALCounter。 //鍵值 char * pSave。 裝 訂 線 畢業(yè)設計用紙 第 24頁 共 28 頁 void ADC_Init()。 ALValue = 0。 keyUp = 1。 //定時器工作方式選擇 TL0 = 0xcc。 TH0 = 0xf8。 } } void Port_Init() { 畢業(yè)設計用紙 第 25頁 共 28 頁 P1M0 = 0x80。 //設 AD輸入 ADC_RES = 0。i) 。0xf8|0x07。 //延時 } //進行 AD轉換,得到當前酒精值 uchar GetADVal() { uint i。i0。 //ADC_Start=1, 啟動轉換 while((ADC_CONTRamp。 //清 ADC_FLAG和 ADC_START位,停止轉換 return ADC_RES。 //存醉酒閾值低 8位 DELAY(300)。 } //載入設定值 void Load_Setting() { pSave = (char *)amp。 if ((Threshold=255)||(Threshold0)) Threshold = 80。 break。 } void main() { uint i,j。 //定時器 0初始化 Port_Init()。 L1602_string(1,1,Wele to ALCT! )。i++) for (j=0。 L1602_string(2,1, )。 L1602_int(2,9,Threshold)。 ALValue = ALValue * K_MG_MV。 else Led_Warn1 = 1。 //鍵盤查詢,在彈起時響應 if ((Key_Up)amp。} else if ((Key_Down)amp。} if (FlagKeyPress == 1) { KeyProcess(keyvalue)。 if (!Key_Down) keyDown = 0。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。s antiracism taskforce, is in London for the Football Association39。s 21 win. Michel Platini, president of European football39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開頭的年 齡已經(jīng)到了尾聲。 The 。總覺得自己自己似乎應該去做點什么,或者寫點什么。s actions. CSKA said they were surprised and disappointed by Toure39。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。t charge you more than 35% of your pensation if you win the case. If you are thinking about signing up for a damagesbased agreement, you should make sure you39。 DELAY(100)。 } if (!Key_Up) keyUp = 0。(keyDown==0)) {FlagKeyPress = 1。(keyUp==0)) {FlagKeyPress = 1。 } //查詢乙醇傳感器 TTL電平,該指示燈為傳感器模塊報警 if (DOUT == 0) Led_Warn2 = 0。 if (ALValue Threshold) Led_Warn1 = 0。 //8 位 ADC,首先得到電壓值,單位 10毫伏 ALValue = ALValue K_ZERO。 L1602_string(2,1,Thresho: mg/L)。j++) {。 //延時 for (i=0。 //ADC初始化 EA = 1。 Data_Init()。 } L1602_int(2,9,Threshold)。 break。 畢業(yè)設計用紙 第 26頁 共 28 頁 *pSave++ = rdeeprom(0)。 wrteeprom(1, *pSave)。Threshold。 //等待轉換結束 ADC_FLAG=1 ADC_CONTRamp。 //待輸入電壓 穩(wěn)定后開始轉換 //ADC_RES = 0。=0xf7。i0。0xE0。 //POWER=1,打開 ADC電源 for(i=5000。 // } void ADC_Init() { uint i。 if (ALCounter = 500) { FlagStartAL = 1。 //定時器賦予初值,大約為 2毫秒中斷 1次 TR0 = 1。 } //定時器 0初始化,中斷時間約 2毫秒 //計算:晶振 ,定時器時鐘 11059200/12=921600,每毫秒 922個脈沖 // 16位定時器初值 655361844=63692=0xf8cc void Timer0_Init() { ET0 = 1。 Led_Warn2 = 2。 void KeyProcess(uint )。 void Timer0_Init()。 //酒精測量值 float ALtemp。 //開始轉換標志 volatile bit FlagKeyPress = 0。 //定義 LED報警燈 sbit Led_Warn1 = P3^4。在課程設計完成之際,謹向敬愛的宋朝暉老師表示忠心的感謝和誠摯的祝福。因此鞏固理論知識,提高動手能力是我們現(xiàn)在的當務之急,這次課程設計是給我提高的機會。 畢業(yè)設計用紙 第 19頁 共 28 頁 參考文獻 [1] 張毅剛 .單片機原理及應用 [M].高等教育出版社 [2] 黃惠媛 .單片機原理與接口技術 [M].海洋出版社 [3] 徐新民 .單片機原理與應用 [M].浙江大學出版社 [4] 何道清 .傳感器與傳感器技術 [M].科學出版社 [5] 電子制作 .2020年第 6期 [J].北京 :電子制作編輯部 ,42— 43 [6] 電子制作 .2020年第 12期 [J].北京 :電子制作編輯部 ,62 畢業(yè)設計用紙 第 20頁 共 28 頁 致謝 通過這次的課程 設計,我對于單片機的了解更加深入了。 圖 51 成功安裝 USB轉串口驅動示意圖 二、下載程序 打開 STC單片機下載軟件文件夾,點擊運行 ,出現(xiàn)如下界面。 一、 USB轉串口驅動安裝 畢業(yè)設計用紙 第 17頁 共 28 頁 打開 USB 驅動文件夾下的 安裝 文件,按提示安裝 USB 轉串口驅動程序。 //關閉數(shù)據(jù)輸出允許信號 if(AD0809=251) //電壓顯示不能超過 5V AD0809= //停止數(shù)據(jù)轉換 while(!EOC)。 //開 T/C0中斷 TR0=1。 //脈沖信號初始值為 0 TH0=(655362)/256。 //重裝計數(shù)初值 TL0=(655362)%256。 P2=wei[3]。 P2=wei[2]。 P2=wei[1]。 P2=wei[0]。 //求十位 v=date%10。 } } } 數(shù)碼管動態(tài)掃描 void xianshi() //顯示函數(shù) { uint z,x,c,v。i++) { for(j=13。 //時鐘脈沖 uint z,x,c,v,AD0809, date。 //位的控制端 //位控制碼 畢業(yè)設計用紙 第 15頁 共 28 頁 sbit ST=P3^0。 SCL 和 SDA 為 AT24C04和單片機 IIC 通信的時鐘線和數(shù)據(jù)線。 畢業(yè)設計用紙
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1