Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Intel Galileo Networking Cookbook
Intel Galileo Networking Cookbook
Intel Galileo Networking Cookbook
Ebook437 pages1 hour

Intel Galileo Networking Cookbook

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Over 50 recipes that will help you use the Intel Galileo board to build exciting network-connected projects

About This Book
  • Create networking applications using the Intel Galileo board
  • Control your web-based projects in real time from anywhere in the world
  • Connect to the Temboo web service to interact with a huge range of APIs
Who This Book Is For

If you have already worked on ARM boards like Arduino, but now want to learn Intel Galileo, then this book is for you. Knowledge of C programming language is required.

What You Will Learn
  • Set up your Galileo board for the Internet of Things
  • Connect external sensors to the Intel Galileo
  • Create and run a web server on the Galileo board
  • Control hardware devices from the Galileo
  • Host web-based applications on the Intel Galileo
  • Monitor data from the cloud using the Galileo
  • Build a complete home automation hub using the Galileo board
In Detail

Arduino is an electronic prototyping platform used by millions of people around the world. Intel Galileo is fully Arduino compatible; hence it combines the high performance of Intel with the simplicity of Arduino Software Development Environment. This makes it the ideal platform to build exciting projects, especially in the field of web-based connected applications and the Internet of Things.

The book features several recipes all based on the Intel Galileo board, and that exploit the powerful features of the board. Each chapter explores a given field using the Galileo board.

The book is mainly divided in three parts. The first part is all about learning the basics of the Intel Galileo board, but it uses some of the powerful features of the board such as connecting external sensors and complex hardware devices, compared with more basic Arduino boards.

Then, the book dives into the topics related to networking and the Internet of Things. You will learn how to run a web server on the board and log data using a cloud-based service.

Finally, the book ends with a chapter that aims to build a complete home automation hub using the Galileo board. This chapter uses everything that was learned in the book to make a home automation system using the Galileo board and Arduino.

Style and approach

This book contains exciting recipes that will help you create projects using the Intel Galileo platform to build systems in various domains like local networking applications, the Internet of Things, and home automation. Each recipe is explained in a step-by-step fashion, always starting with the assembly of the hardware, followed by basics tests of all hardware components. At the end, an exciting project is built using the knowledge acquired in the rest of the book.

LanguageEnglish
Release dateAug 26, 2015
ISBN9781785281723
Intel Galileo Networking Cookbook

Read more from Schwartz Marco

Related to Intel Galileo Networking Cookbook

Related ebooks

Networking For You

View More

Related articles

Reviews for Intel Galileo Networking Cookbook

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Intel Galileo Networking Cookbook - Schwartz Marco

    Table of Contents

    Intel Galileo Networking Cookbook

    Credits

    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

    Sections

    Getting ready

    How to do it…

    How it works…

    There's more…

    See also

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Downloading the color images of this book

    Errata

    Piracy

    Questions

    1. Installing and Configuring Linux

    Introduction

    Configuring your Galileo for the first time

    Getting ready

    How to do it...

    How it works...

    See also

    Using a simple Linux image

    Getting ready

    How to do it...

    How it works...

    There's more...

    See also

    Using the IoT Linux image

    Getting ready

    How to do it...

    How it works...

    There's more...

    See also

    Accessing the Galileo board remotely

    Getting ready

    How to do it...

    How it works...

    There's more...

    See also

    Installing and updating modules

    Getting ready

    How to do it...

    How it works...

    There's more...

    See also

    Accessing Galileo via Wi-Fi

    Getting ready

    How to do it...

    How it works...

    There's more...

    Troubleshooting Linux installation issues

    How to do it...

    2. Connecting External Sensors

    Introduction

    Using the Arduino IDE with the Galileo board

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting an analog sensor

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting a digital sensor

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting an LCD screen

    Getting ready

    How to do it...

    How it works...

    See also

    Displaying the temperature on an LCD screen

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting the usual issues with sensors

    How to do it...

    3. Controlling Hardware Devices

    Introduction

    Connecting a relay

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting a DC motor

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting an XBee module

    Getting ready

    How to do it...

    How it works...

    See also

    Controlling a servomotor from a rotating knob

    Getting ready

    How to do it...

    How it works...

    See also

    Using the SD card reader to log data

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting the usual issues

    The relay doesn't change its state when the sketch is loaded to the board

    The DC motor doesn't turn when the sketch is loaded to the board

    I can't communicate with Galileo via XBee

    The servomotor doesn't turn when the knob is turned

    I can't write data to the SD file

    4. Creating a Web Server

    Introduction

    Using the Intel XDK software

    Getting ready

    How to do it...

    How it works...

    See also

    Running a simple Node.js server

    Getting ready

    How to do it...

    How it works...

    See also

    Using Express on Galileo

    Getting ready

    How to do it...

    How it works...

    See also

    Reading pins via a web server

    Getting ready

    How to do it...

    How it works...

    See also

    Controlling pins via a web server

    Getting ready

    How to do it...

    How it works...

    See also

    Creating an API to control Galileo

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting web server issues

    Intel XDK doesn't see the Galileo board

    The web server doesn't respond

    The Express module can't be found

    The Galileo API doesn't work properly

    5. Hosting Applications on the Galileo Board

    Introduction

    Creating a file-sharing server

    Getting ready

    How to do it...

    How it works...

    See also

    Accessing weather data remotely

    Getting ready

    How to do it...

    How it works...

    See also

    Tweeting from the Galileo board

    Getting ready

    How to do it...

    How it works...

    See also

    Accessing web APIs via Temboo

    Getting ready

    How to do it...

    How it works...

    See also

    Accessing more APIs via Temboo

    Getting ready

    How to do it...

    How it works...

    Troubleshooting application issues

    I can't download files from my file-sharing server

    I can't access weather data from Forecast.io

    My tweets from the Galileo don't show up

    I can't access Temboo from the Galileo board

    6. Local Network Monitoring

    Introduction

    Accessing measured data remotely

    Getting ready

    How to do it...

    How it works...

    See also

    Logging data in a local database

    Getting ready

    How to do it...

    How it works...

    See also

    Displaying measurements stored in a database

    Getting ready

    How to do it...

    How it works...

    See also

    Live data visualization

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting the usual issues with sensors

    I can't get measured data remotely

    Issues with MongoDB

    The graph doesn't appear on the page

    The graph is not refreshed in real-time

    7. Cloud Data Monitoring

    Introduction

    Building and testing hardware for cloud monitoring

    Getting ready

    How to do it...

    How it works...

    See also

    Sending data to a cloud device

    Getting ready

    How to do it...

    How it works...

    See also

    Monitoring data remotely from a dashboard

    Getting ready

    How to do it...

    How it works...

    See also

    Logging data in an online datasheet

    Getting ready

    How to do it...

    How it works...

    See also

    Controlling your board from anywhere in the world

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting cloud monitoring issues

    Dweet.io is not responding

    The dweet.io data does not appear in Freeboard.io

    Data is not being logged in my Google spreadsheet

    I cannot control my board from Lelylan

    8. Building a Home Automation System

    Introduction

    Choosing the right components

    Getting ready

    How to do it...

    How it works...

    See also

    Building a Wi-Fi Arduino sensor module

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting Arduino modules to the Galileo board

    Getting ready

    How to do it...

    How it works...

    See also

    Building an interface for your home automation system

    Getting ready

    How to do it...

    How it works...

    See also

    Connecting your home automation system to the Web

    Getting ready

    How to do it...

    How it works...

    See also

    Accessing your home automation system from anywhere

    Getting ready

    How to do it...

    How it works...

    See also

    Troubleshooting issues with your home automation system

    My Arduino Wi-Fi module can't connect to the Wi-Fi network

    The Galileo board can't communicate with the Arduino modules

    The graphical interface is not displayed

    The external weather data is not displayed

    Index

    Intel Galileo Networking Cookbook


    Intel Galileo Networking Cookbook

    Copyright © 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: August 2015

    Production reference: 1240815

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78528-119-8

    www.packtpub.com

    Credits

    Author

    Marco Schwartz

    Reviewers

    Tom Collins

    Agus Kurniawan

    Bharat Sesham

    Alex Tereschenko

    Commissioning Editor

    Edward Bowkett

    Acquisition Editor

    Harsha Bharwani

    Content Development Editor

    Shweta Pant

    Technical Editor

    Narsimha Pai

    Copy Editors

    Dipti Mankame

    Kevin McGowan

    Project Coordinator

    Sanjeet Rao

    Proofreader

    Safis Editing

    Indexer

    Hemangini Bari

    Graphics

    Sheetal Aute

    Production Coordinator

    Komal Ramchandani

    Cover Work

    Komal Ramchandani

    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 SUPELEC in France and a master's degree in micro engineering from the EPFL in Switzerland. He has more than 5 years of experience working in the domain of electrical engineering. His interests gravitate around electronics, home automation, the Arduino and the Raspberry Pi platforms, open source hardware projects, and 3D printing. He runs several websites related to Arduino, including the Open Home Automation website, which is dedicated to building home automation systems using open source hardware.

    He has written another book on home automation and Arduino, named Arduino Home Automation Projects, Packt Publishing. He has also published a book on how to build Internet of Things projects with Arduino, which is called Internet of Things with the Arduino Yun, Packt Publishing.

    About the Reviewers

    Tom Collins is an entrepreneur, start-up enthusiast, and cofounder of AllThingsTalk. He received a first-class degree with honors and awards for his graduate exhibition on The Convergence of Cloud Computing, Smart Devices and the Internet of Things. He has also developed SmartLiving.io project, assuming a jack-of-all-trades role spanning architecture, DevOps, full stack, and mobile development.

    Tom's latest mission is to support innovation within start-ups and organizations through the IoT methodology, share toolkits, design patterns, and provide lessons to build IoT solutions.

    Agus Kurniawan is an IT security and technology consultant, author, and lecturer. He has experience in various software development projects, producing material for training and workshops and producing technical writing for 14 years. He has been awarded the Microsoft Most Valuable Professional (MVP) award for 11 years in a row. He is involved in some research activities related to networking and security systems at the University of Indonesia. Currently, he's pursuing a PhD program in computer science in Germany. You can visit his blog at http://blog.aguskurniawan.net and his Twitter page at @agusk2010.

    Bharat Sesham is enthusiastic and passionate about learning the latest technologies and applying them to solving real-life problems. He has participated in many reputed competitions; some of these are the Intel Embedded Challenge 2014, NASA Space Settlement Challenge 2013/2014, CANSAT 2015, Shell Idea 360 2015, which gave him a practical insight. He has a good knowledge of embedded systems, IoT, and OpenCV. Apart from this, he is also working for two start-ups based on OpenCV.

    His blog site is https://bharatsesham.wordpress.com, and his Twitter page is @bharat_sesham.

    I would like to thank Packt Publishing for providing this opportunity and I would also like to thank my parents for supporting and encouraging me throughout my journey.

    Alex Tereschenko is an avid creator, who is sure that computers can do a lot of good for people when they are interfaced

    Enjoying the preview?
    Page 1 of 1