Internet of Things with the Arduino Yn
Projects to help you build a world of smarter things Marco Schwartz
BIRMINGHAM - MUMBAI
Internet of Things with the Arduino Yn
Copyright 2014 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: May 2014
Production reference: 1140514
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-800-7
www.packtpub.com
Cover Image by Shweta Suresh Karkera ( shwetaimages@gmail.com ) Credits
Author Copy Editors
Marco Schwartz Tanvi Gaitonde
Dipti Kapadia
Reviewers
Fiore Basile Project Coordinator
Charalampos Doukas Melita Lobo
Francis Perea
Proofreaders
Commissioning Editor Maria Gould
Anthony Albuquerque Ameesha Green
Acquisition Editor Indexer
Harsha Bharwani Hemangini Bari
Content Development Editor Production Coordinator
Poonam Jain Alwin Roy
Technical Editors Cover Work
Manan Badani Alwin Roy
Shashank Desai
Shali Sasidharan
About the Author
Marco Schwartz is an electrical engineer, entrepreneur, and blogger. He has a master's degree in Electrical Engineering and Computer Science from Suplec in France, and a master's degree in Micro Engineering from the EPFL in Switzerland. Marco has more than fve years of experience in the domain of electrical engineering. His interests gravitate around electronics, home automation, the Arduino and Raspberry Pi platforms, open source hardware projects, and 3D printing.
About the Reviewers
Fiore Basile is a programmer, system administrator, creative, entrepreneur, and maker. Since 1996, he has served as a project manager, consultant, and technology offcer in industrial and research projects of varied sizes across Italy and Europe. He has worked in the felds of cultural heritage, e-health, digital preservation, multimodal interfaces, and web and mobile publishing. During his career, he has also started two IT start-ups, held workshops at international conferences and events, and has been interviewed by national and international press. His work experience allowed him to build a broad expertise in systems, web and mobile software development, open source and open hardware, embedded programming, and electronics. He's currently conducting research on wearable technologies, affective computing, and smart connected devices. He also works as the coordinator of FabLab Cascina, a digital fabrication laboratory in the middle of Tuscany. Charalampos Doukas is a researcher and an IoT maker. He started playing with sensors and Arduinos in 2008 when trying to capture and transmit vital signs. He is passionate about combining different hardware systems with software and services using the Internet. He helps in spreading knowledge about open source software and hardware by organizing sessions in workshops and conferences.
He has built many projects around home monitoring and automation. He contributes hardware nodes for Node-RED and has also authored the book, Building Internet of Things with the Arduino , CreateSpace .
When Charalampos is not playing with sensors and actuators, he manages European research projects at CREATE-NET in Trento, Italy.
Francis Perea is a professional education professor at Consejera de Educacin Junta de Andaluca in Spain with more than 14 years of experience. He specializes in system administration, web development, and content management systems. In his spare time, he works as a freelancer and collaborates, among others, with multimedia, a small design studio in Crdoba, working as a system administrator and main web developer.
He also collaborated as a technical reviewer on the book, SketchUp 2014 for Architectural Visualization , Thomas Bleicher and Robin de Jongh , Packt Publishing . When he is not sitting in front of a computer or tinkering in his workshop, he can be found running or riding his bike through the tracks and hills in Axarqua County, where he lives.
I would like to thank my wife, Salom, and our three kids, Paula,
lvaro, and Javi, for all the support they gave me, even when we
were all busy. There are no words that would be enough to express my gratitude.
I would also like to thank my colleagues in multimedia and my
patient students. The need to be at the level you demand is what
keeps me going forward.
www.PacktPub.com
Support fles, eBooks, discount offers, and more You might want to visit www.PacktPub.com for support fles and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub fles available? You can upgrade to the eBook version at www.PacktPub. com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and bookmark content
On demand and accessible via web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com , you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Table of Contents
The required hardware and software components 10
Connecting the sensors to the Arduino Yn board 11
Creating a Temboo account 15
Sending data to Google Docs and displaying it 16
Creating automated e-mail alerts 21
Making your Arduino Yn board tweet sensor data 23
Summary 26 Chapter 2: Creating a Remote Energy Monitoring and
The required hardware and software components 28