logo资料库

Building Arduino Projects for the Internet of Things(Apress,2016).pdf

第1页 / 共299页
第2页 / 共299页
第3页 / 共299页
第4页 / 共299页
第5页 / 共299页
第6页 / 共299页
第7页 / 共299页
第8页 / 共299页
资料共299页,剩余部分请下载后查看
Contents at a Glance
Contents
About the Author
About the Technical Reviewer
Preface
Part 1: Building Blocks
Chapter 1: Arduino Basics
Learning Objectives
Hardware Requirements
Software Requirements
Toolbar
Status Window
Serial Monitor Window
Arduino Programming Language Reference
Arduino Code Execution
Summary
Chapter 2: Internet Connectivity
Learning Objectives
Arduino Uno Wired Connectivity (Ethernet)
Hardware Required
Software Required
Circuit
Code (Arduino)
External Libraries
Internet Connectivity (Ethernet)
Standard Functions
Final Product
Arduino Uno Wireless Connectivity (WiFi)
Hardware Required
Software Required
Circuit
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Standard Functions
Final Product
Arduino Yún Wireless Connectivity (WiFi)
Hardware Required
Software Required
Wireless Setup
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Standard Functions
Final Product
Summary
Chapter 3: Communication Protocols
Learning Objectives
HTTP
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Data Publish
Standard Functions
Final Product
MQTT
Intrusion Detection System
Remote Lighting Control
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Data Publish/Subscribe MQTT
Standard Functions
Final Product
Summary
Part 2: Prototypes
Chapter 4: Complex Flows: Node-RED
Learning Objectives
Hardware Required
Software Required
Circuit
Node-RED Flow
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
Final Product
Summary
Chapter 5: IoT Patterns: Realtime Clients
Learning Objectives
Hardware Required
Software Required
Circuit
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
Code (Android)
Project Setup
Screen Layout
Screen Logic
MQTT Client
The Final Product
Summary
Chapter 6: IoT Patterns: Remote Control
Learning Objectives
Hardware Required
Software Required
Circuit
Code (Android)
Project Setup
Screen Layout
Screen Logic
MQTT Client
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Data Subscribe
Control Lights
Standard Functions
The Final Product
Summary
Chapter 7: IoT Patterns: On-Demand Clients
Learning Objectives
Hardware Required
Software Required
Circuit
Database Table (MySQL)
Code (PHP)
Database Connection
Receive and Store Sensor Data
Get the Parking Spot Count
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
Code (iOS)
Project Setup
Screen Layout
Screen Logic
The Final Product
Summary
Chapter 8: IoT Patterns: Web Apps
Learning Objectives
Hardware Required
Software Required
Circuit
Database Table (MySQL)
Code (PHP)
Database Connection
Receive and Store Sensor Data
Dashboard
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
The Final Product
Summary
Chapter 9: IoT Patterns: Location Aware
Learning Objectives
Hardware Required
Software Required
Circuit
Database Table (MySQL)
Code (PHP)
Database Connection
Receive and Store Sensor Data
Map
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Get GPS Coordinates
Data Publish
Standard Functions
The Final Product
Summary
Chapter 10: IoT Patterns: Machine to Human
Learning Objectives
Hardware Required
Software Required
Circuit
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
Effektif Workflow
Process Creation
Process Configurations
Node-RED Flow
The Final Product
Summary
Chapter 11: IoT Patterns: Machine to Machine
Learning Objectives
Light Sensor Device
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
Lighting Control Device
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Data Subscribe
Control Lights
Standard Functions
The Final Product
Summary
Chapter 12: IoT Platforms
Learning Objectives
Hardware Required
Software Required
Circuit
Xively Setup
Zapier Setup
Xively Trigger
Code (Arduino)
External Libraries
Internet Connectivity (Wireless)
Read Sensor Data
Data Publish
Standard Functions
The Final Product
Summary
Index
THE E XPER T ’S VOICE® IN ARDUINO Building Arduino Projects for the Internet of Things Experiments with Real-World Applications — A guidebook for the eager-to-learn Arduino enthusiast — Adeel Javed www.it-ebooks.info
www.it-ebooks.info Building Arduino Projects for the Internet of Things Experiments with Real-World Applications Adeel Javed
www.it-ebooks.info Building Arduino Projects for the Internet of Things: Experiments with Real-World ApplicationsAdeel Javed Lake Zurich, Illinois, USA ISBN-13 (pbk): 978-1-4842-1939-3 ISBN-13 (electronic): 978-1-4842-1940-9DOI 10.1007/978-1-4842-1940-9Library of Congress Control Number: 2016943433Copyright © 2016 by Adeel JavedThis work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.Managing Director: Welmoed SpahrLead Editor: Jonathan GennickDevelopment Editor: James MarkhamTechnical Reviewer: Jeff TangEditorial Board: Steve Anglin, Pramila Balen, Louise Corrigan, James DeWolf, Jonathan Gennick, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal, James Markham, Susan McDermott, Matthew Moodie, Douglas Pundick, Ben Renow-Clarke, Gwenan SpearingCoordinating Editor: Melissa MaldonadoCopy Editor: Kezia EndsleyCompositor: SPi GlobalIndexer: SPi GlobalArtist: SPi GlobalDistributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com , or visit www.springer.com . Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail rights@apress.com , or visit www.apress.com . Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales .Any source code or other supplementary materials referenced by the author in this text is available to readers at www.apress.com . For detailed information about how to locate your book’s source code, go to www.apress.com/source-code/ .Printed on acid-free paper
www.it-ebooks.info To my wife Naila, for supporting me throughout the process.
www.it-ebooks.info
www.it-ebooks.info vContents at a GlanceAbout the Author .............................................................................xvAbout the Technical Reviewer ........................................................xviPreface ...........................................................................................xix ■Part 1: Building Blocks ...................................................1 ■Chapter 1: Arduino Basics ..............................................................3 ■Chapter 2: Internet Connectivity ...................................................15 ■Chapter 3: Communication Protocols ...........................................35 ■Part 2: Prototypes .........................................................49 ■Chapter 4: Complex Flows: Node-RED ..........................................51 ■Chapter 5: IoT Patterns: Realtime Clients .....................................75 ■Chapter 6: IoT Patterns: Remote Control ....................................111 ■Chapter 7: IoT Patterns: On-Demand Clients ..............................139 ■Chapter 8: IoT Patterns: Web Apps .............................................177 ■Chapter 9: IoT Patterns: Location Aware ....................................195 ■Chapter 10: IoT Patterns: Machine to Human .............................213 ■Chapter 11: IoT Patterns: Machine to Machine ..........................241 ■Chapter 12: IoT Platforms ...........................................................253Index ..............................................................................................279
www.it-ebooks.info
www.it-ebooks.info viiContentsAbout the Author .............................................................................xvAbout the Technical Reviewer ........................................................xviPreface ...........................................................................................xix ■Part 1: Building Blocks ...................................................1 ■Chapter 1: Arduino Basics ..............................................................3Learning Objectives .................................................................................3Hardware Requirements .........................................................................3Software Requirements ...........................................................................5Toolbar ......................................................................................................................6Status Window ..........................................................................................................7Serial Monitor Window .............................................................................................7Arduino Programming Language Reference ...........................................8Arduino Code Execution ..........................................................................................11Summary ...............................................................................................13 ■Chapter 2: Internet Connectivity ...................................................15Learning Objectives ...............................................................................15Arduino Uno Wired Connectivity (Ethernet) ...........................................16Hardware Required .................................................................................................16Software Required ..................................................................................................16
分享到:
收藏