Building Wireless Sensor Networks Using Arduino

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 19. Oktober 2015
  • |
  • 192 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78439-715-9 (ISBN)
 
Leverage the powerful Arduino and XBee platforms to monitor and control your surroundingsAbout This BookBuild your own low-power, wireless network using ready-made Arduino and XBee hardwareCreate a complex project using the Arduino prototyping platformA guide that explains the concepts and builds upon them with the help of examples to form projectsWho This Book Is ForThis book is targeted at embedded system developers and hobbyists who have some working knowledge of Arduino and who wish to extend their projects using wireless connectivity.What You Will LearnInteract with XBee boards using the XCTU program on Windows, OS X, or LinuxMake your Arduino boards communicate wirelessly, using XBee modules in the advanced API modeCentrally collect and store measured sensor data, in the cloud or your own databaseConnect the coordinator Arduino to the Internet and send data to web servicesControl your environment automatically, based on sensor input from your networkInteract with off-the-shelf ZigBee Home Automation devicesMake your devices battery-powered and let them sleep to get months or even years of battery lifeIn DetailArduino has been established as the de facto standard microcontroller programming platform, being used for one-off do-it-yourself projects as well as prototypes for actual products. By providing a myriad of libraries, the Arduino community has made it very easy to interact with pretty much any piece of hardware out there. XBee offers a great range of low-power wireless solutions that are easy to work with, by taking all of the complexity of wireless (mesh) networking out of your hands and letting you focus on what to send without worrying about the how. Building wireless sensor networks is cost-effective as well as efficient as it will be done with Arduino support.The book starts with a brief introduction to various wireless protocols, concepts, and the XBee hardware that enables their use. Then the book expands to explain the Arduino boards to you, letting them read and send sensor data, collect that data centrally, and then even control your home from the Internet. Moving further more advanced topics such as interacting through the standard Zigbee Home Automation protocol, or making your application power-efficient are covered. By the end of the book, you will have all the tools needed to build complete, real-world solutions.Style and approachA hands-on guide, featuring a single home automation project that can be built as described or with endless variations. Every step is illustrated with complete examples and screenshots, allowing you to build the examples swiftly.
  • Englisch
  • Birmingham
978-1-78439-715-9 (9781784397159)
1784397156 (1784397156)
weitere Ausgaben werden ermittelt
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 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
  • Configuration
  • 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
  • Chapter 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 F() strings
  • Pointers
  • Serial port setup
  • The xbee-arduino library
  • Creating the sketch
  • Sending and receiving data
  • Sending data
  • The 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 working
  • Modules are not joining the network
  • Modules cannot talk to each other
  • Summary
  • Chapter 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
  • Visualizing your data
  • Accessing your data
  • Keeping your data locally
  • Sending data over the serial port
  • Receiving data over the serial port
  • Summary
  • Chapter 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 ZigBee devices
  • ZigBee profiles, endpoints, and clusters
  • ZigBee public profiles
  • Selecting a ZigBee device
  • Talking to a ZigBee 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 ZigBee features
  • Summary
  • Chapter 5: Standalone XBee Operation
  • Creating a window sensor
  • Connecting things
  • Powering the module
  • Connecting the window sensor
  • I/O 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 ZBRxIoSampleResponse objects
  • Receiving the I/O samples
  • Creating a standalone relay
  • Connecting things
  • Configuring the XBee module
  • Remotely toggling an output pin
  • Summary
  • Chapter 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
  • XBee 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
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

32,73 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung des WebShops erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok