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

正文內容

畢業(yè)設計論文-基于單片機的簡易電子稱-資料下載頁

2024-11-14 19:51本頁面

【導讀】它與我們日常生活緊密結合息息相關。電子稱主要以單片機作為中心控制單元,通過稱重傳。感器進行模數(shù)轉換單元,在配以鍵盤、顯示電路及強大軟件來組成。電子稱不但計量準確、快速方便,更。重要的自動稱重、數(shù)字顯示,對人們生活的影響越來越大,廣受歡迎。本系統(tǒng)的設計主要從硬件電路設計,軟件編程調試,實物焊接調試三部分進行詳細闡述。顯示效果穩(wěn)定無閃爍。

  

【正文】 了豐富的理論知識,極大地提高了實踐能力,并對當前電了領域的研究狀況和發(fā)展方向有了一定的了解,這對我今后進一步學習傳感器方面的知識有極人的幫助。 在此,我衷心感謝吳老師的指導和支持。在未來的工作和學習中,我將以更好的成績來回報老師。我還要感謝在一起愉快的度過人學生生活的機電工程系全體老師和同學門,正 是由于你們的幫助和支持,我才能克服一個一個的困難和疑惑,直至本文的順利完成。在這里請接受我誠摯的謝意! Wireless temperature detecting system design Based on MCU Physics and information engineering institute Sience and Technology of Electronic Information 080303077 SHI Hongcheng Instructor WU ZhongLong Assistant [Abstract] With Intelligent electronic scale is the detection and conversion technology, puter technology, information processing, digital technology, an integrated modern technology of new weighing equipment. Ectronic scale takes SCM as its central controling unit,and achieves AD transform through weighting transducer,then adds keybord,display circuit and powerful softerwear. It is not only accurate,swift,and convenient, but also makes an important effect to people’s life by its automatic weightment and digital display, so it bees more and more design of this system gives its eleboration from 3 parts: Hardwear circuit design,softwear programme debugging and entity weld circuit reaches data processing by the controling unit which based on AT89S52, and gathers data by weighting transducer,then makes AD transform by HX711 to the data gathered, and the transformed data then transferred to AT89S52 for display prosessing, at last LCD1602 would show it out steadily without twinkling. [Keywords] MCU, AT89S52 SCMC; Electrnoic Scale; Load sensor。 HX711 附錄一 程序代碼 系統(tǒng)部分 代碼: void shizhong_hanshu() { init()。 Init_DS1302()。//初始化芯片 init_1602()。//初始化 lcd while(1) { if(du_k2==0) dianzhicheng_hanshu()。 //跳去運行電子稱 tmpchange()。 //溫度轉換 wendu_100bei=tmp()。 //獲得溫度 show_date()。 22 keyscan()。 if((shi==clock_shi)amp。amp。(fen==clock_fen)amp。amp。(status==2)amp。amp。(miao5)) { clock_flag=1。 TR1=1。 } if(status==1) //鬧鐘狀態(tài) A 解除鬧鐘 { clock_flag=0。 clock=1。 TR1=0。 } } } void get_pizhong() { uint j。 ulong hx711_dat。 for(j=0。j5。j++) Delay10ms()。 hx711_dat=ReadCount()。 temp=(uint)(hx711_dat/100)。 } void get_weight() { ulong hx711_data,a。 uint get,aa。 hx711_data=ReadCount()。 get=(uint)(hx711_data/100)。 if(get(temp+4)) { while(1) { if(du_k1==0) shizhong_hanshu()。//跳去運行時間 weight=0。 TR0=0。 //不允許運行 chaozhong_flag=0。 //無重物,超重標志為 0; clock=1。 if(leiji_flag==1) { weight_shuzhi(leiji_weight)。//顯示累計重量 P3=0xf0。 if(P3!=0xf0) { leiji_count。 break。 } //按鍵就提出 } else weight_shuzhi(weight)。//顯示重量 hx711_data=ReadCount()。 get=(uint)(hx711_data/100)。 if(get(temp+4))break。 } } a=ReadCount()。 aa=(uint)(a/100)temp。 weight=(uint)((float)aa/+)。 23 weight=weightqi_weight。 //去皮 if(weight=0) { if(weight5000) {chaozhong_flag=1。TR0=1。}//重量大于 5000g,超重報警 ? else {chaozhong_flag=0。TR0=0。clock=1。} weizhi_zifu(0x00,39。+39。)。 } else {weizhi_zifu(0x00,39。39。)。} } void press(uchar *s) { unsigned char dat。 nn: P3=0xf0。 //保存第一位 while(P3==0xf0) { get_weight()。//得到重量 if(weight0) {weight_shuzhi(weight)。}//顯示重量 else {weight_shuzhi(weight)。} } dat=key_scan()。 if(dat=0amp。amp。dat10) { if(leiji_flag==1) { leiji_weight=leiji_weight+weight。 leiji_count++。 if(leiji_count==10) leiji_count=0。 weizhi_zifu(0x04,0x30+leiji_count)。 weight_shuzhi(leiji_weight)。 } *s=dat。 price_shuzhi(1,dat+0x30)。//顯示 s++。 } if(dat==16) //去皮 {qi_weight=weight+qi_weight。goto nn。} if(dat==15) //置零 { qi_weight=0。 weight=0。 price=0。 money=0。 pricetable[2]=0。 pricetable[1]=0。 pricetable[0]=0。 leiji_flag=0。 leiji_weight=0。 leiji_count=0。 chaozhong_flag=0。 clock=1。 TR0=0。 write_(0x01)。//清屏 。 24 init_1602()。 system()。 goto nn。 }if(dat==14)//累計 { leiji_flag=1。 leiji_weight=leiji_weight+weight。 leiji_count++。 if(leiji_count==10) {leiji_count=0。} write_(0x01)。//清屏 。 init_1602()。 system()。 weizhi_zifu(0x04,0x30+leiji_count)。 goto nn。 } mm: P3=0xf0。 //保存第二位 while(P3==0xf0) { get_weight()。//得到重量 if(leiji_flag==1) {weight_shuzhi(leiji_weight)。}//如果累計標志為 1,顯示累計重量 else { if(weight0) {weight_shuzhi(weight)。}//顯示重量 else {weight_shuzhi(weight)。} } } dat=key_scan()。 if(dat=0amp。amp。dat10) { *s=dat。 price_shuzhi(2,dat+0x30)。//顯示 s++。 } if(dat==16) //去皮 {qi_weight=weight+qi_weight。goto mm。} if(dat==12) //清除 {s。*s=0。price_shuzhi(1,39。 39。)。goto nn。} if(dat==15) //置零 { s。 qi_weight=0。 weight=0。 price=0。 money=0。 pricetable[2]=0。 pricetable[1]=0。 pricetable[0]=0。 leiji_flag=0。 leiji_weight=0。 leiji_count=0。 chaozhong_flag=0。 clock=1。 TR0=0。 write_(0x01)。 //清屏 。 25 init_1602()。 system()。 goto nn
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1