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

正文內(nèi)容

基于zigbee的智能溫室數(shù)據(jù)采集系統(tǒng)畢業(yè)設(shè)計(參考版)

2025-07-17 21:03本頁面
  

【正文】 Zigbee_Check()。 //在第 3 頁,第 1 列,顯示一串 16x16 點陣漢字或 8x16 的 ASCII 字 // display_string_8x16(5,1,msg_xinshi)。 //在第 5 頁,第 1 列,顯示一串 16x16 點陣漢字或 8x16 的 ASCII 字 display_GB2312_string(5,1,雨水:99 窗:開)。 display_GB2312_string(1,24, 歡迎使用)。 clear_screen()。 uart1_init()。 P2=0xff。 P0=0xff。}/**/main(){ uint8_t i。 if(timeCount1Ms light_CtlV) lightout=1。 //設(shè)置定時初值 timeCount1Ms++。 //定時器0開始計時}/******************************************************************函數(shù)功能:定時器0中斷處理函數(shù)入口參數(shù):無返回參數(shù):無 *****************************************************************/void it_timer0(void) interrupt 1{ TL0 = 0xD7。 EA=1。 //清除TF0標(biāo)志 TR0 = 1。 //設(shè)置定時初值 TH0 = 0xFD。 //設(shè)置定時器模式 TMOD |= 0x01。 //定時器時鐘1T模式 TMOD amp。/******************************************************************函數(shù)功能:定時器0初始化 產(chǎn)生5MS的時基本 滿足設(shè)計0。 //光照度閥值uint8_t windowflg。 //模式輸入uint8_t light_LelV,light_CtlV。 //溫度值,精度為0。 //光照強(qiáng)度,相對100%,這里將光照強(qiáng)度分成100等份uint8_t water8V。 //雨水量uint8_t xdata str[8]。 //zigbee 發(fā)送緩沖區(qū)uint16_t lightV。uint8_t xdata str_close[]=關(guān)。 //加1sbit subkey=P2^0。 //繼電器2sbit menukey=P2^2。 //LED驅(qū)動口sbit solid1=P2^5。 } while (i)。 j = 146。 while(ms_value){ _nop_()。[14]王幸之,:北京航空航天大學(xué)出 版社,2000,115119.[15] Savvides A,Han C C,Srivastava M B. Dynamic finegrained localization in adhoc networks of sensors. In:Proc of Int Conf on Adhoc Networks. Rome. 2001,166179[16] Borbash S,McGlynn protocols for low energy deployment and flexible neighbor discovery in ad hoc wireless networks. In:Proc of Int Con f of ACM ,6572 [17] Ganeriwal S,Kansal A,Srivastava M B. Self aware actuation for fault repai r in sensor :Proc of Int Conf on IEEE Robotics and Automatio n,2004,5244 5249[18] Heinzelman W R. Applicationspecific protocol architecture for wireless sen sor networks:[dissertation] . Massachusetts Inst of ,5780 [19] Younis O,F(xiàn)ahmy S. Distributed clustering in adhoc sensor networks:A h ybrid:energyefficient approach. In:Proc 13th Joint Conf on IEEE Compute r and Communications ,3539 [20] Santi P. Maintaining a connected backbone in wireless sensor : Proc of 1st European Workshop on Wireless Sensor :2004, 5868 [21] Nezhad A A,Miri A,Makrakis D. Efficient Topology Discovery for Multi hop Wireless Sensor Networks. . In:Proc of Int Conf on Commnication Ne tworks and Services Research. Halifax:2008,358365 [22] Zou Y,Krishnendu C. Sensor deployment and target localization based on virtual :Proc of Int Conf on IEEE Computer and Commnications S ociety. Atlanta,2003,1293 1303 [23] Sohrabi K,Gao J,Ailawadhi V,Pottie G for SelfOrganization of a Wireless Sensor Network.Journal of IEEE Personal Communication,2 000,7(5):16–27附 錄附錄1include include //包含_nop()_函數(shù)/***************************************************************功能函數(shù):延時函數(shù)入口參數(shù):uint8 us返回參數(shù):無**************************************************************/void delay_us(unsigned char us_value) //12M時 每個單元代表5US{ while(us_value) { _nop_()。[13][11]景軍鋒,[J].微型機(jī)與應(yīng)用,2009,2 3:3335.基于Zigbee技術(shù)的無線傳感器網(wǎng)絡(luò)研究[J].化工自動化及儀表,2010,3 7(10):9194.[8]楊瑋,*而ILl開發(fā)[J].農(nóng)業(yè)工程 學(xué)報,2010,26(3):198202.[6]吳呈瑜,[J].儀表技術(shù)與傳 成器,2008,5:3851.[4]李銀華,[J].儀表技術(shù)與傳 感器,2009,5:111113.[2]包長春,[J].農(nóng)業(yè)工程學(xué)報,2009,25 (9):197201.[J].通過該設(shè)計,使得自己在學(xué)業(yè)上受益匪淺,它不僅要求我靈活應(yīng)用以前所學(xué)的知識,也要求自己在工作中不斷學(xué)習(xí)和接受新知識,極大的鍛煉了自己獨立研發(fā)的能力,為今后的工作開創(chuàng)了新的前景。選用了一款性能較好的STD.SMA模塊傳輸無線信號。經(jīng)過市場調(diào)研,發(fā)現(xiàn)ZigBee無線通信技術(shù)在在無線傳感網(wǎng)絡(luò)中占有廣泛的市場,具有低功耗、數(shù)據(jù)傳輸可靠、網(wǎng)絡(luò)容量大、兼容性強(qiáng)、安全性高、成本低等特點。系統(tǒng)整體實物圖如圖51所示。系統(tǒng)運行正常圖53 窗戶控制裝置關(guān)閉狀態(tài)圖54 窗戶控制裝置開啟狀態(tài) 系統(tǒng)的整體測試 進(jìn)行總體的實物調(diào)試。系統(tǒng)運行正常。 /*開顯示*/ cs1=1。 /*列掃描順序:從左到右*/ transfer_mand(0x40)。 /*1/9 偏壓比(bias)*/ transfer_mand(0xc8)。 /*微調(diào)對比度*/ transfer_mand(0x28)。 transfer_mand(0x23)。 transfer_mand(0x2f)。 transfer_mand(0x2e)。 transfer_mand(0x2c)。 transfer_mand(0xe2)。 reset=1。 reset=0。k++)。j++) for(k=0。 for(j=0。 data1=data1=1。 else sid=0。 if(data1amp。i8。 rs=1。 } } /***************************************************************功能函數(shù):寫數(shù)據(jù)到 LCD 模塊入口參數(shù):int data1 指令數(shù)據(jù)返回參數(shù):無**************************************************************/void transfer_data(int data1) { char i。 sclk=1。0x80) sid=1。i++) { sclk=0。 for(i=0。 cs1=0。 ulong fontaddr=0。i++) uart1_senddata(buf[i])。//固定格式包頭 for(i=0。 uart1_senddata(add/256)。 uart1_senddata(0xc3)。 uart1_senddata(0xa8)。}/******************************************************************函數(shù)功能:通過zigbee模塊發(fā)送數(shù)據(jù)入口函數(shù): uint8_t *buf 需發(fā)送的數(shù)據(jù)首地址 返回參數(shù):從模塊的短地址 /******************************************************************/void zigbee_SendData(uint16_t add, uint8_t* buf){ uint8_t i。 break。 uart1_clrbuf()。 zigbee_buf[0]= uart1_buf[i+1]。i++) { if(uart1_buf[i]==0x3b) { //找到第一路數(shù)據(jù)包一幀數(shù)據(jù) delay_ms(6)。 while(flg) { for(i=0。 uint16_t addr=0。 } } } return addr。 uart1_clrbuf()。 zigbee_buf[3]= uart1_buf[i+4]。 zigbee_buf[1]= uart1_buf[i+2]。 addr = 0x01。i63。 flg=1。函數(shù)功能:從zigbee模塊中獲取數(shù)據(jù)入口函數(shù): 返回參數(shù):從模塊的短地址 /******************************************************************/unsigned int Zigbee_GetData_chn1(void){ uint8_t i,flg。因此,協(xié)調(diào)器節(jié)點的軟件主要由以下幾個模塊組成: Zigbee數(shù)據(jù)收發(fā)模塊此模塊的協(xié)議棧代碼是TI公司提供的,下面分別是無線發(fā)收函數(shù)的程序。 協(xié)調(diào)器節(jié)點的軟件設(shè)計協(xié)調(diào)器節(jié)點主要實現(xiàn)ZigBee網(wǎng)絡(luò)的建立,指令的發(fā)送,數(shù)據(jù)的接收、轉(zhuǎn)發(fā),與PC通信。通過USB接口連接電腦,具有代碼高速下載,在線調(diào)試,斷點、單步、變量觀察,寄存器觀察等功能,實現(xiàn)對CC2430/CC2530系列無線單片機(jī)實時在線仿真、調(diào)試。TI開發(fā)套件由專業(yè)人士精心設(shè)計,具有基于2004/2006/2007/PRO協(xié)議棧的開發(fā)模板、完整的原理圖及例程源碼。以美國Ti公司CC2430/CC2530芯片為代表的 Zigbee SOC解決方案在國內(nèi)高校企業(yè)掀起了一股Zigbee技術(shù)應(yīng)用的熱潮。其特點是近距離、低復(fù)雜度、自組織、低功耗、低數(shù)據(jù)速率、低成本。STC12C5A60S2系列單片機(jī)幾乎包含了數(shù)據(jù)采集和控制中所需的所有單元模塊,可稱得上一個片上系統(tǒng)。 STC12C5A60S2系列單片機(jī)的內(nèi)部結(jié)構(gòu)STC12C5A60S2系列單片機(jī)是一款優(yōu)秀的單片機(jī)。圖36 供電模塊電路原理圖
點擊復(fù)制文檔內(nèi)容
黨政相關(guān)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1