实例介绍
About This Book Build your own low-power, wireless network using ready-made Arduino and XBee hardware Create a complex project using the Arduino prototyping platform A guide that explains the concepts and builds upon them with the help of examples to form projects Who This Book Is For This book is t
Table of contents Building Wireless Sensor Networks Using Arduino edits about the author about the reviewers www.Packtpub.com Support files, eBooks, discount offers, and more Why subscribe? Free access for packt account holders Preface What this book covers What you need for this book Who this book is for Conventions Reader feedback Customer support Downloading the example code Errata Piracy eBooks discount offers. and more Questions 1. A World without wires XBee radio hardware XBee product families Versions and variants Official xbee documentation Your first transmission Using the SparkFun XBee Explorer USB Getting and running XCTU Updating the firmware Failed firmware updates Configur ation Talking to the XBee module Receiving data Uploading the sketch Connecting the XBee Receiving data Switching to API mode First module in api mode Sending data Second module in api mode Starting and joining a network Module addressing Network scanning and remote configuration The Commissioning button and leds Making your network secure Distributing the network key Trust center link key Trust center terminology differences Selecting encryption keys Setting up your secure network Disabling network joining Other Xbee families Configuration values Summary 2. Collecting Sensor Data Hardware setup Serial on Xbee Handshaking signals Voltage levels Serial on a computer Serial on arduino XBee shields Other shields Software setup Example sketches Variable types PROGMEM and fo strings Pointers Serial port setul The xbee-arduino library Creating the sketch Sending and receiving data Sending data he ZBTxRequest objects Creating the sketch Blocking and polling Running the sketch Callbacks Callback types Callback limitations Receiving data The zBrxResponse objects Creating the sketch Collecting sensor data Reading a dht22 sensor Handling packets using binary h Building and sending a packet Constructing a packet using binary h Creating the sketch Receiving and parsing a packet Parsing a packet using binary h Creating the sketch Troubleshooting Communication with the xbee module is not wor king 1g Modules are not joining the network Modules cannot talk to each other Summary 3. Storing and visualizing Your Data Storing your data in the cloud Introducing Beebotte Channels and resources Security Access protocols Sending your data to Beebotte Preparing Beebotte Connecting your Arduino to the Internet Writing the sketch ⅵ isualizing your data Accessing your data Keeping your data locally Sending data over the serial port Receiving data over the serial port Summary 4. Controlling the World Controlling your heating and/or cooling system Replacing the thermostat Controlling mains power Hairdryer -an alternative Control systems Adding setpoint control Subscribing to events Reading events Remembering sensor readings Thermostat controller Controlling a relay Controlling off-the-Shelf Zig Bee devices Zig Bee profiles, endpoints, and clusters Zig Bee public profiles Selecting a Zig bee device Talking to a Zig Bee on/off device Joining the network Factory reset in case of problems Discovering services The ZBExplicitTxRequest objects Sending a message The zBExplicitRXResponse objects Receiving messages Receiving on/off command responses More Zig Bee features Summary 5. Standalone XBee Operation Creating a window sensor Connecting things Powering the module Connecting the window sensor yo pin naming Configuring the XBee module Remotely sampling the pins Querying the pin state Automatically sending the sample data The configuration values Receiving the samples on the coordinator The ZBRxlo SampleResponse objects Receiving the 1/0 samples Creating a standalone relay Connecting things Configuring the XBee module Remotely toggling an output pin Summary 6. Battery power and sleeping Battery power Lithium-ion and lithium polymer batteries Regulators Saving power Power saving techniques Knowing what to optimize and when to stop Ⅹ Bee power-saving The XBee sleep modes Configuring the network The sleeping window sensor Battery power Power usage Arduino power-saving The XBee configuration Hardware Powering the arduino Hardware connections Putting the arduino to sleep Sleep modes Waking up Creating the sketch Power usage Summary lndeⅹ Building Wireless Sensor Networks Using Arduino Building Wireless Sensor Networks Using Arduino Copyright C 2015 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information First published: October 2015 Production reference: 1121015 Published by packt Publishing Ltd Livery place 35 Livery street Birmingham b3 2PB, UK ISBN978-1-784395582 www.packtpub.com Credits Author Matthijs Kooijman Reviewers Anvirup Basu Roberto gallea Vincent gijsen Randy schur Fangzhou Xia Commissioning editor Nadeem Bagan Acquisition editor SonaliⅤ ernekar Content Development Editor Shali deera Technical editor Danish shaikh Copy editor Tasneem fatehi Project Coordinator Kinjal Bari Proofreader Satis editing 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论