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

正文內(nèi)容

畢業(yè)設(shè)計(jì)-基于單片機(jī)的智能溫室大棚監(jiān)控系統(tǒng)的設(shè)計(jì)-閱讀頁(yè)

2024-12-22 14:26本頁(yè)面
  

【正文】 . [8]徐愛(ài)鈞 .智能化測(cè)量控制儀表原理與設(shè)計(jì) [M].北京:北京航空航天大學(xué)出版社, 2021,3436. [9]賴(lài)麒文 .8051單片機(jī) C語(yǔ)言開(kāi)發(fā)環(huán)境實(shí)務(wù)與設(shè)計(jì) [M].北京:科學(xué)出版社, 2021,7880. [10], and validation of a greenhouse climate control ,(406):4661. [11]V. Yu. Teplov,A. V. Anisimov. Thermostatting System Using a SingleChip Microputer and Thermoelectric Modules Based on the Peltier Effect[J] ,2021. [12]Yeager to troubleshoot your electronic scale[J]..Powder and Bulk . 湖南人文科技學(xué)院畢業(yè) 設(shè)計(jì) 23 附錄 include include //Keil library (is used for _nop()_ operation) include //Keil library include //Keil library define uchar unsigned char define uint unsigned int define lcd P0 //液晶屏端口定義 typedef union { unsigned int i。 } value。 define noACK 0 define ACK 1 define STATUS_REG_W 0x06 //000 0011 0 define STATUS_REG_R 0x07 //000 0011 1 define MEASURE_TEMP 0x03 //000 0001 1 define MEASURE_HUMI 0x05 //000 0010 1 define RESET 0x1e //000 1111 0 /************引腳定義 **********************/ sbit SCK=P3^6。 sbit SPK = P1^7。 sbit k1=P2^2。 sbit rs=P3^0。 int tem,humi。 uint set=600。 uchar code table1[]= Temp= 。 /*************************延時(shí)程序 *********************/ void delay(uint count) //1ms 延時(shí) { uint k,j。kcount。j110。 } /*************************液晶驅(qū)動(dòng)程序 *************************/ void w_cmd(uchar ) //lcd1602 寫(xiě)命令 { rs=0。 en=1。 en=0。 lcd=dat。 delay(5)。 湖南人文科技學(xué)院畢業(yè) 設(shè)計(jì) 25 } void w_str(uchar *s) //lcd1602 寫(xiě)字符串 { while(*s) w_data(*s++)。 w_cmd(0x38)。 w_cmd(0x06)。 w_cmd(0x80+0x00)。 w_cmd(0xc0+0x00)。 } /*溫濕度傳感器驅(qū)動(dòng)程序 */ // char s_write_byte(unsigned char value) // // writes a byte on the Sensibus and checks the acknowledge { unsigned char i,error=0。i0。 value) DATA=1。 SCK=1。_nop_()。 //pulswith approx. 5 us SCK=0。 //release DATAline SCK=1。 //check ack (DATA will be pulled down by SHT11) SCK=0。 //error=1 in case of no acknowledge } // char s_read_byte(unsigned char ack) // // reads a byte form the Sensibus and gives an acknowledge in case of ack=1 { unsigned char i,val=0。 //release DATAline for (i=0x80。i/=2) //shift bit for masking { SCK=1。 //read bit SCK=0。 //in case of ack==1 pull down DATALine SCK=1。_nop_()。 //pulswith approx. 5 us SCK=0。 //release DATAline return val。 SCK=0。 SCK=1。 DATA=0。 SCK=0。_nop_()。 SCK=1。 DATA=1。 SCK=0。 DATA=1。 //Initial state for(i=0。i++) //9 SCK cycles { SCK=1。 } s_transstart()。 unsigned int i。 //transmission start switch(mode){ //send mand to sensor case TEMP : error+=s_write_byte(MEASURE_TEMP)。 case HUMI : error+=s_write_byte(MEASURE_HUMI)。 default : break。i65535。 //wait until sensor has finished the measurement if(DATA) error+=1。 //read the first byte (MSB) *(p_value+1)=s_read_byte(ACK)。 //read checksum return error。 // for 12 Bit const float C2=+。 // for 12 Bit const float T1=+。 // for 14 Bit 5V 湖南人文科技學(xué)院畢業(yè) 設(shè)計(jì) 29 float rh=*p_humidity。 // t: Temperature [Ticks] 14 Bit float rh_lin。 // rh_true: Temperature pensated humidity float t_C。 //calc. temperature from ticks to [癈 ] rh_lin=C3*rh*rh + C2*rh + C1。 //calc. temperature pensated humidity [%RH] if(rh_true100)rh_true=100。 //the physical possible range *p_temperature=t_C。 //return humidity[%RH] } // float calc_dewpoint(float h,float t) // // calculates dew point // input: humidity [%RH], temperature [癈 ] // output: dew point [癈 ] { float logEx,dew_point。 dew_point = (logEx )*(+)。 } /******************主函數(shù) *******************************/ void main() { uchar error,checksum。 float dew_point。 lcd_int()。 w_data(0xdf)。 w_str(C)。 while(1) { error=0。,amp。 //measure humidity error+=s_measure((unsigned char*) amp。checksum,TEMP)。 //in case of an error: connection reset else { =(float)。 //converts integer to float calc_sth11(amp。)。 //calculate dew point tem=*10+11。 table2[0]=humi/100+0x30。 湖南人文科技學(xué)院畢業(yè) 設(shè)計(jì) 31 table2[3]=humi%10+0x30。 w_str(table2)。 table2[0]=tem/100+0x30。 table2[3]=tem%10+0x30。 w_str(table2)。 i 200。 for (j = 0。 j++)。 for (j = 0。 j++)。 } else { SPK = 1。 } } } }
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1