Zigbee无线中继控制和电源监控系统.doc
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Zigbee 无线 中继 控制 电源 监控 系统
- 资源描述:
-
Zigbee无线中继控制和电源监控系统 ———————————————————————————————— 作者: ———————————————————————————————— 日期: 37 个人收集整理 勿做商业用途 Zigbee无线中继控制和电源监控系统 Shrey Surana (ss632) Shrey Surana (ss632) Casey Worthington (cdw38) 凯西沃辛顿 (cdw38) Contents内容 Introduction 。 1 导言1。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Rationale and sources of your project idea 。 1 基本原理和思想来源的项目1。本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 Background Theory 。 1 背景理论1。文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Physical Layer . 2 物理层2。本文为互联网收集,请勿用作商业用途本文为互联网收集,请勿用作商业用途 Link Layer . 2 链路层2。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Network and Transport Layers 。 2 网络层和传输层2。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Session, Presentation, and Application Layers 。 2 会议,简报,以及应用层。2本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 Our Project . 2 我们的项目2。个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Logical Structure 。 2 逻辑结构2。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Hardware/Software Tradeoffs 。 2 硬件/软件权衡2.本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Standards . 3 标准3。个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Software Details 。 3 软件的详细信息。3文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Overview 。。 3 概述。。 3文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Evolution of Software Design 。 3 软件设计的演变3。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Software Design, Microcontroller Side 。 3 软件设计,单片机侧3.本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Software Design, PC Side . 3 软件设计,PC端3。个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Xbee Configuration: A Brief Primer 。 6 的XBee配置:简引物6。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Our Xbee Configuration . 6 我们的XBee配置6。文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 PC Side: The Coordinator 。 6 PC端:协调员6。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 MCU Side: The End Device . 6 单片机端:终端设备6。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Why use Xbee IO to monitor relays controlled by the MCU? . 7 为什么使用单片机的XBee印务局,监察继电器控制的?7。文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 Hardware Details 。 7 硬件详细信息7。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Arduino Board 。 7 阿尔杜伊诺委员会7。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Xbee Chip 。 7 的XBee芯片7.个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Relays 。 8 继电器8。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Things We Tried that Did Not Work (Hardware) . 8 事情我们试过了没有工作(硬件)8.文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Results of the design 。 9 设计结果的9.个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Speed of execution 。 9 执行速度9。个人收集整理,勿做商业用途文档为个人收集整理,来源于网络 Accuracy 。 9 精度9。本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 How you enforced safety in the design 。 9 你如何实施设计中的安全9。本文为互联网收集,请勿用作商业用途本文为互联网收集,请勿用作商业用途 Interference with other people’s designs 。 9 干扰与人的其他设计9。文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Usability by you and other people 。 9 可用性你和其他人9。个人收集整理,勿做商业用途文档为个人收集整理,来源于网络 Conclusions . 9 结论9.个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Overview .。 9 概述.。 9文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Things We Could Improve Upon . 9 事情是我们可以改善我们9。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 IP Considerations 。 10 IP注意事项10。本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 Ethical considerations. 道德方面的考虑。 10 10文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Societal Impact . 10 社会影响10。文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Legal considerations 。 10 法律方面的考虑10。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Hardware 。 10 硬件10。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Software . 10 软件10。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Appendix of Code . 11 附录代码11.本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Appendix of Schematics 。 12 附录示意图12。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Appendix of Cost . 12 附录成本12。文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Appendix: Member Tasks 。 13 附录:会员任务13。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Shrey Surana 。 13 Shrey Surana 13。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 Casey Worthington 。 13 凯西沃辛顿13。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 References 。 13 参考文献13。个人收集整理,勿做商业用途文档为个人收集整理,来源于网络 Data Sheets 。 13 数据表13。个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Vendor Sites 。 13 供应商的网站13。文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 Code and Designs Borrowed From Others 。 13 代码和设计借鉴了其他13.本文为互联网收集,请勿用作商业用途本文为互联网收集,请勿用作商业用途 Background Sources . 13 背景来源13.个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 Acknowledgements 。 13 致谢13.本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 Introduction 简介 We designed a system for wirelessly controlling relays and monitoring current.我们设计了一个无线控制继电器和监测当前的系统. This is used for a home load simulation。这是用于家庭负载模拟。 By wirelessly turning relays on and off by sending commands from a PC to a microcontroller we can change the total load (current) to our simulated home。通过无线方式打开和关闭继电器从PC发送命令到微控制器,我们可以改变我们的模拟家用总负载(电流). For wireless communication, we used XBee Series 2 Zigbee RF modules。对于无线通信中,我们使用的XBee系列2 ZigBee射频模块。 One of these modules was connected to a microcontroller and the home load simulation, while another was connected to the PC, which was used for collecting and displaying data as well as for relay monitoring and control.这些模块之一,是连接到微控制器和家庭模拟加载,而另一个是连接到PC,这是收集和展示为继电器监测和控制数据以及使用。本文为互联网收集,请勿用作商业用途个人收集整理,勿做商业用途 Rationale and sources of your project idea 思想的基本原理和你的项目来源 This project was proposed by a research/project team here at Cornell working on a so-called “Smart Home Energy Monitoring System。 Our points of reference within this group are Professor John Belina ( belina@ece.cornell.edu ) and Kamil Bojanczyk ( ksb37@cornell.edu ).该项目是由一个研究/智能家居系统能源监测“项目的团队在康奈尔大学工作的一个所谓的。我们在本组的参考点是教授约翰Belina( belina@ece.cornell。edu )和卡米尔Bojanczyk ( ksb37@cornell.edu ).文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 What this group is working on is an energy-monitoring system for a home using alternative energy sources。这个集团是什么工作,是一个使用替代能源的家庭能源监测系统. A very high-level block diagram of this system is shown below:非常高的级别该系统的框图如下: Figure 1。图1。 High-level diagram of the ”Smart Home Energy Monitoring System。”高级别图“智能家庭能源监测系统。” In the above diagram, the “Magic Box" essentially exists to route energy between the house, the various energy sources (for example, a solar cell or the electric grid), and an energy storage unit (such as a rechargeable battery).在上面的图中,“魔术盒”的存在是为了基本路线之间的众议院能源,各种能源(例如,太阳能电池或电网)和一个能量存储单元(如充电电池)。 In this project, we will “black box” this Magic-Box system, and instead focus on another portion of this energy monitoring system, which involves sending data regarding energy usage and various energy loads (by wirelessly controlled relays) to a PC in order to display and monitor energy usage within the home。在这个项目中,我们将“黑盒子”这个魔术盒系统,而是集中在另一本能源监测系统,它包括发送数据在能源使用和各种能源负载(由无线控制继电器)的一部分,以便到PC显示和监测在家庭能源消耗。个人收集整理,勿做商业用途个人收集整理,勿做商业用途 · · Our project focuses on the House to In—Home Display (IHD) part of this system。我们的项目集中到在众议院在家庭显示器(IHD的)这个系统的一部分。 What our project does is the following:我们做什么项目如下: · · Simulates a home by using resistors to model various appliances or groups of appliances模拟家庭使用电阻来模拟各种用具或设备组 · · Allows a user to wirelessly turn on and off various sets of appliances by controlling relays允许用户以无线方式打开和关闭各种成套设备通过控制继电器 · · Monitors total power consumption and current in this home显示器总功率消耗,在这个家里电流 · · Wirelessly transmits the above data to a PC, displaying the data on a graph that shows real-time power consumption in the home (or simulated home)上述数据无线传输到电脑,显示在图上显示实时的家用电源消耗(或模拟的家庭)中的数据 Our simulated “home” consists of 7 appliances, each modeled by a resistance (a load)。我们模拟的“家"由7用具,用电阻(负载)为蓝本每个. These 7 loads are all in parallel, and are fed voltage from a 5 V DC source (the microcontroller).这7个都在并行加载,并美联储从5 V直流源(微控制器)电压。 In a real house, the source voltage would be 120 V AC (in the United States at least)。在实际的房子,电源电压120伏交流会(在美国至少). We considered attempting to implement this, but considering the practical dangers of “playing around" with 120 V AC circuits as well as the fact that a relay control system shouldn’t depend on the voltages being fed through the relays led us to decide to stick with 5 V DC circuits for testing and simulation。 我们认为试图实现这一点,但考虑“玩弄"的120伏交流电电路,这样一个事实:继电器控制系统不应依赖于正在通过继电器的电压以及美联储的现实危险使我们决定坚持5 V直流测试和模拟电路。文档为个人收集整理,来源于网络个人收集整理,勿做商业用途 Background Theory 背景理论 What we have built is a simple transmission system based on the Zigbee routing and networking protocol. 我们已经建立是一个简单的传输系统协议基于ZigBee路由和网络。 This protocol and its details are discussed in greater detail in the Standards section (below); in this section, we focus on underlying network theory and the role this theory played in our project。 本议定书和它的细节更详细地讨论在标准节(下),在这节中,我们侧重于基础网络理论与我们的项目中的作用发挥这一理论. Data networks (and transmission systems) are typically divided into various layers based on functionality. 数据网(与传输系统)是典型的基于功能分成不同的层次。 This is sometimes called a “protocol stack” (in our case, we are using a “Zigbee stack”)。 这有时被称为一个“协议栈”(在我们的例子中,我们使用的是“ZigBee协议栈")。 Essentially, the lower the layer, the closer we are to worrying about actual physical electrons flying around. 从本质上讲,层越低,越接近我们要担心实际物理电子飞来飞去。 Conversely, the higher the layer, the less we are worrying about physical constraints and the more abstract the data structures are that we are dealing with and manipulating. 相反,较高的层,那么我们担心的物理限制和更抽象的数据结构是,我们正在处理和操作。本文为互联网收集,请勿用作商业用途本文为互联网收集,请勿用作商业用途 The most famous of these layering models is the Open System Interconnection (OSI) Reference Model, which is shown below: 其中最有名的这些分层模型是开放系统互联(OSI)参考模型,它是如下所示: Figure 2。图2。 The OSI Reference Model (Source: http://en。wikipedia.org/wiki/OSI_model) OSI参考模型(来源:http://en。wikipedia.org/wiki/OSI_model) The functionality of each layer (or group of layers) is described in a bit more detail below. 本)功能的每一层(或组层位中描述更详细说明。 Physical Layer 物理层 The physical layer's job is to move individual digital bits from one place to another。 物理层的工作是从一个地方到另一个个人数码位。 The protocols in this layer depend on the actual physical medium。 在这一层的协议依赖于实际的物理介质。 For example, in a wireless system, the actual physical medium is simply the atmosphere. 例如,在一个无线系统,实际的物理介质是简单的气氛。 Link Layer 链路层 A network's link layer routes a series of bits (sometimes called a datagram ) from one node in a network to another。 一个网络的链路层路线的一系列位从 一个网络节点 (有时 ) 称为 数据包 到另一个地方。 This can happen through a series of intermediate switches (or routers)。 这可能发生通过)系列交换机或路由器中间(。 Protocols at this layer provide more robust and full-featured services than protocols at the physical layer。 在这层协议提供服务而不是在物理层协议功能强大,更全面。 WiFi is one example of a link—layer protocol. WiFi是一种协议的一个例子链路层。 Network and Transport Layers 网络层和传输层 Again, since these layers are higher in the model, protocols at this layer typically are more full-featured than protocols at the link or physical layers。 同样,因为这些层较高的模型,在此协议层通常是更全面的功能比在链路层协议或身体。 Protocols at these layers use the link layer's routing capabilities to move the aforementioned datagrams between nodes in a network。 在这些层协议使用的链路层的路由功能,移动网络节点之间的上述 数据报 。 The Internet Protocol (IP) is probably the most famous network layer protocol, while the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) are two examples of well—known and widely—used transport—layer protocols。 因特网协议(IP)可能是最有名的网络层协议,而传输控制协议(TCP)和用户数据 报协议(UDP)协议的例子有两个知名的和广泛使用的传输层. Certain higher-level functionality is more prevalent in these two layers than in lower levels. 某些更高级别的功能是越层普遍比在这两个较低的水平. For example, flow control – controlling the transmission rate between nodes in order to lower congestion on the network (realizing that even just a two-node transmission system can be considered a “network") – and reliable transmission (ensuring that a packet is actually received) are two features commonly implemented in the network and transport layers。 例如,流量控制—为了控制节点之间的传输速率降低)的网络拥塞(意识到,甚至只是一个两节点的传输系统可以被认为是“网络" —可靠的传输(确保数据包实际上是收到)是传输层的功能一般两年实施的网络。文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 Session, Presentation, and Application Layers 会议,演示和应用层 These layers are essentially the end—result of a networking protocol stack。 这些层在本质上是最终结果栈网络协议。 For example, a web browser resides in the application layer. 例如,Web浏览器驻留在应用层。 These layers make use of all of the lower layers to send data between nodes on a network, and then use their own protocols for manipulating that data。 这些层使层使用较低的所有发送网络上的节点之间的数据,然后使用自己的协议来操纵数据。 A web browser renders HTML but uses lower—level protocols to send HTML between nodes in a network。 呈现HTML网页浏览器,但使用较低级别的协议来发送网络节点之间的HTML中。文档为个人收集整理,来源于网络本文为互联网收集,请勿用作商业用途 Our Project 我们的项目 The part of our project that we implemented basically deals with the network layer and above. 该项目的一部分,我们,我们基本上实现上述处理的网络层和. The XBee chips (which are discussed in much greater detail later in the report) and firmware allow us to “black box” the Data Link and Physical layers, and the open source Xbee—API and Xbee-Arduino software packages greatly simplified our work in the network layer. 该芯片的XBee(这是更详细讨论后,在报告)和固件让我们“黑盒子”中的数据链路和物理层,和开源的XBee — API的和XBee -阿尔杜伊诺软件极大地简化了我们的工作网络层。 Thus, it was not strictly necessary for us to have a deep understanding of the underlying physical, link, and network layer protocols used, but a brief discussion of this is warranted nonetheless. 因此,它不是完全有必要让我们能够有一个,链接的深刻理解的基础物理和网络层协议使用,但这个简短的讨论是必要的仍然。个人收集整理,勿做商业用途本文为互联网收集,请勿用作商业用途 The physical layer protocol/standard used in Zigbee systems is IEEE 802。15.4 ( http://www。ieee802。org/15/pub/TG4.html ). 物理层协议/标准系统使用在Zigbee是IEEE 802。15。4( http://www.ieee802。org/15/pub/TG4。html )。 This is a wireless standard that operates, in North America, in the range of 2400—2483.5 MHz or 902-928 MHz. 这是一个无线标准,经营美国,北,在兆赫范围2400-2483。5 MHz或902-928。 Zigbee, and most importantly our chips, operate in the higher 2。4 GHz range, so that is the range we will briefly discuss here。 ZigBee和最重要的是我们的芯片,工作在更高的2。4 GHz频率范围,所以这是我们将简要的范围在这里讨论. The data transmission rate is up to 250 kilobits per second. 数据传输速率达到每千位二百五十秒。文档为个人收集整理,来源于网络文档为个人收集整理,来源于网络 Logical Structure 逻辑结构 A block diagram of our system is shown below。我们的系统框图如下所示。 As you can see there are seven relays which are controlled by the MCU.正如你可以看到其中有七个是由单片机控制继电器。 The MCU gets its command from the Xbee Chip which is wirelessly transmitted from another Xbee chip that is connected to the PC。从得到的单片机芯片,无线的XBee另一个的XBee芯片连接到电脑发送的命令。 The user can specify from the PC which relays they want to turn on and off。用户可以从电脑中指定的继电器他们要打开和关闭。 Also all seven of the relays load goes through a .2 ohm power resistor which goes through an optoisolator to keep it safe from the MCU and finally to the Xbee chip.另外所有负载的继电器七经过一个0.2欧姆的电阻,电源通过一个光隔离器去保证它的安全从MCU,最后到的XBee芯片。 This gets transmitted back to the PC to be displayed on a graph in a GUI。这得到传回的电脑上,在一个GUI图形显示。本文为互联网收集,请勿用作商业用途文档为个人收集整理,来源于网络 Figure 3.图3. High—level design overview of our project.高级别我们的项目设计的概述。 Hardware/Software Tradeoffs 硬件/软件权衡 We didn’t really have much hardware/software tradeoffs because we didn't have a budget constraint since we were working for a project team。我们并没有真正有很多硬件/软件的权衡,因为我们没有一个预算约束,因为我们是一个项目团队工作。 However we did decide to use an Arduino board instead of the STK500 which we were used to。但是,我们也决定使用,而不是我们被用于STK500的一阿尔杜伊诺板. This required less software for us to write.这就要求我们少写软件。 It seemed much less tedious to write certain tasks in Arduino such as turning on an LED.这似乎更繁琐,如写一个LED的转折点Arduino的某些任务. We were interested in expanding our knowledge of other hardware/software that were similar but not exactly the same as what we had learned throughout the semester。我们有兴趣扩大我们的其他硬件/软件知识相似,但并不像我们在整个学期学到的完全一样。 Other than that we d展开阅读全文
咨信网温馨提示:1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。




Zigbee无线中继控制和电源监控系统.doc



实名认证













自信AI助手
















微信客服
客服QQ
发送邮件
意见反馈



链接地址:https://www.zixin.com.cn/doc/2376731.html