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

正文內(nèi)容

基于單片機的電子秤設(shè)計hx(參考版)

2024-11-06 08:13本頁面
  

【正文】 } 附錄3 實物圖 40 。} displayprice()。//得到重量 if(weight0) {weight_shuzhi(weight)。 displaywpm()。 } }void main(){ get_pizhong()。j++) { delayms(1)。 for(j=0。 spk=!spk。j200。 }}void sound(){uint j。j++) write_date(bufferprice[j])。 //price for(j=0。 if(ii=3)ii=3。 } else { bufferprice[ii]=button。 bufferprice[ii]=39。) //清零 { ii=ii1。 } else if(button==39。 write_(0x80+0x0c)。j++) bufferprice[j]=39。)//單價 { for(j=0。 } else if(button==39。j4。//將浮點型轉(zhuǎn)換為字符串 write_(0x80+0x46)。) { money=atof(bufferprice)*weight/1000。) //如果有鍵按下 { if(button==39。 if(button!=39。 static char ii。 //把bufferprice定到能保存4個字符型數(shù)據(jù),主要是為了在做清零時方便 static uchar buffermoney[4]。 39。 39。 39。 } } } return key。 tem=temamp。 break。 case 0xe7: key=39。p39。 break。 case 0xb7: key=39。.39。 if(tem!=0xf0) { tem=P3。 tem=temamp。 P3=0xf7。0xf0。 tem=P3。0xf0。 } while(tem!=0xf0) { tem=P3。 39。 break。 case 0xdb: key=39。939。 break。 switch(tem) { case 0x7b: key=39。0xf0。 tem=P3。 if(temp!=0xf0) { delayms(10)。 tem=temamp。 } } } P3=0xfb。 tem=temamp。break。 case 0xed:key=39。639。break。 case 0xbd:key=39。439。 if(tem!=0xf0) { tem=P3。 tem=temamp。 P3=0xfd。0xf0。 tem=P3。0xf0。 } while(tem!=0xf0) { tem=P3。339。 break。 case 0xde: key=39。139。 break。 switch(tem) { case 0x7e: key=39。0xf0。 tem=P3。 if(tem!=0xf0) { delayms(10)。 tem=temamp。 P3=0xfe。 uchar key=39。 weight=(uint)((float)aa/+)。 } } a=ReadCount()。 //HX711AD輸出數(shù)據(jù)處理 get=(uint)(hx711_data/100)。 weight_shuzhi(weight)。 //HX711AD轉(zhuǎn)換數(shù)據(jù)處理 get=(uint)(hx711_data/100)。 uint get,aa。 //HX711AD轉(zhuǎn)換數(shù)據(jù)處理 temp=(uint)(hx711_dat/100)。j++) delayms()。 for(j=0。}////////////////////////////////////////////////////////////////////////////////皮重,獲得重量的程序////////////////////////////////////void get_pizhong() //獲取皮重,秤盤重量{ uint j。 hx711_sck=0。 } hx711_sck=1。 hx711_sck=0。i++) { hx711_sck=1。 for(i=0。 count=0。 Delay__hx711_us()。 uchar i。 _nop_()。 write_(0x0c)。 write_(0x80+0x06)。 write_(0x80+0x05)。 write_(0x80+0x04)。.39。 write_(0x80+0x03)。 write_(0x80+0x02)。 weighttable[1]=aaa/100%10。 weighttable[3]=aaa%10。 write_date(table[13])。num++) write_date(table[num+7])。 for(num=0。 write_date(table[6])。 write_date(table[5])。 write_(0x80+0x0a)。 write_date(table[2])。 write_date(table[1])。 write_(0x80)。//顯示清0,數(shù)據(jù)指針清0}void displaywpm(void){ uchar num。//設(shè)置開顯示,不顯示光標 write_(0x06)。 write_(0x38)。}void init_1602(){ lcden=0。 delayms(5)。 delayms(5)。 }void write_date(uchar date)//寫數(shù)據(jù){ lcdrs=1。 delayms(5)。 delayms(5)。}void write_(uchar )//寫命令{ lcdrs=0。j0。i0。/////////////////////////////////////////////////////////////////////////////////////////////////LCD1602顯示程序//////////////////////////////////////////////////////////////void delayms(uint k){ uint i,j。sbit hx711_sck=P2^1。sbit lcden=P2^6。sbit lcdrs=P2^4。uint temp。參考文獻[1] Chen Guang,Wang Yong,Wu domain identification of flexible structure with the resistance strain gauge sensor[A].Intelligent Control and Automation, 2004. WCICA 2004. Fifth World Congress [C].2004.[2] D. Maamara,D. piezoresistive strain gauge characteristics for intelligent strain sensing applications[A].Microelectronics:Design,Technology,and Packaging II[C].2006.[3] Clarence W. de Conditioning and Modification: Bridge Circuits[A].Vibration and Shock Handbook[C].2005.[4] Sifuentes, E,Casas, interface circuit to linearise resistive sensor bridges[J].Sensors and Actuators. A, Physical,2008,147(1):5254.[5] . Patra,K. Manzoor,M. Applications for Chemical and Biological Sensors[J].Defence Science Journal,2008,58(5):636649.[6] 王建華,敬大德,[J].傳感技術(shù)學(xué)報,2005,18(3):58.[7] 陳杰,[M].北京:高等教育出版社,2002.[8] 陳杰,[M].北京:北京理工大學(xué)出版社,1987.[9] 王洪業(yè),傳感器技術(shù)[M].長沙:湖南科學(xué)出版社,1985.[10] [M].北京:高等教育出版社,2003.[11] [M].合肥:中國科學(xué)技術(shù)大學(xué)出版社,2008. [12] 周明德,(第2版)[M].北京:人民郵電出版社,2007.[13] (第五版)[M].北京:高等教育出版社,2005.[14] [M].北京:清華大學(xué)出版社,2005.[15] (第2版)[M].北京:電子工業(yè)出版社,2007.[16] [M].北京: 北京航空航天大學(xué)出版社,2007.[17] [M].北京:高等教育出版社,1977. 附錄2 系統(tǒng)程序清單///////////////////////////////////////////////////////////////////////////////////////////includeincludeincludeincludedefine uchar unsigned chardefine uint unsigned intdefine ulong unsigned longint weight。同時,我也要感謝周圍不斷鼓勵、支持、幫
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1