Intel Galileo Networking Cookbook
()
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
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
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 approachThis 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.
Read more from Schwartz Marco
ESP8266 Internet of Things Cookbook Rating: 5 out of 5 stars5/5Internet of Things with ESP8266 Rating: 5 out of 5 stars5/5Arduino for Secret Agents Rating: 4 out of 5 stars4/5Arduino Home Automation Projects Rating: 3 out of 5 stars3/5Programming Arduino with LabVIEW Rating: 3 out of 5 stars3/5Arduino Networking Rating: 4 out of 5 stars4/5Arduino: Building LED and Espionage Projects Rating: 0 out of 5 stars0 ratingsInternet of Things with Arduino Cookbook Rating: 1 out of 5 stars1/5Building Smart Homes with Raspberry Pi Zero Rating: 0 out of 5 stars0 ratingsArduino Android Blueprints Rating: 0 out of 5 stars0 ratingsIntel Galileo Blueprints Rating: 0 out of 5 stars0 ratings
Related to Intel Galileo Networking Cookbook
Related ebooks
Intel Galileo Essentials Rating: 0 out of 5 stars0 ratingsProgramming the BeagleBone Black: Getting Started with JavaScript and BoneScript Rating: 0 out of 5 stars0 ratingsRaspberry Pi Server Essentials Rating: 0 out of 5 stars0 ratingsBoost.Asio C++ Network Programming Cookbook Rating: 0 out of 5 stars0 ratingsARM® Cortex® M4 Cookbook Rating: 4 out of 5 stars4/5BeagleBone Home Automation Blueprints Rating: 0 out of 5 stars0 ratingsBeagleBone Black Cookbook Rating: 0 out of 5 stars0 ratingsOpenJDK Cookbook Rating: 0 out of 5 stars0 ratingsIntel Galileo Blueprints Rating: 0 out of 5 stars0 ratingsDesigner's Guide to the Cypress PSoC Rating: 0 out of 5 stars0 ratingsBeagleBone Robotic Projects Rating: 5 out of 5 stars5/5Object Oriented Programming Inheritance: Fundamentals and Applications Rating: 0 out of 5 stars0 ratingsPIC32 Microcontrollers and the Digilent Chipkit: Introductory to Advanced Projects Rating: 5 out of 5 stars5/5SD Card Projects Using the PIC Microcontroller Rating: 0 out of 5 stars0 ratingsReal World Multicore Embedded Systems Rating: 3 out of 5 stars3/5Internet of Things with Intel Galileo Rating: 0 out of 5 stars0 ratingsEmbedded Microcontroller Interfacing for M-COR ® Systems Rating: 0 out of 5 stars0 ratingsReSharper Essentials Rating: 4 out of 5 stars4/5The Art of Designing Embedded Systems Rating: 0 out of 5 stars0 ratingsMicrocontroller Projects in C for the 8051 Rating: 5 out of 5 stars5/5Lidar A Complete Guide - 2020 Edition Rating: 0 out of 5 stars0 ratingsImplementing 802.11 with Microcontrollers: Wireless Networking for Embedded Systems Designers Rating: 0 out of 5 stars0 ratingsEmbedded System Design on a Shoestring: Achieving High Performance with a Limited Budget Rating: 4 out of 5 stars4/5FPGA prototyping The Ultimate Step-By-Step Guide Rating: 0 out of 5 stars0 ratingsAVR RISC Microcontroller Handbook Rating: 0 out of 5 stars0 ratingsIoT Communication Protocols Second Edition Rating: 0 out of 5 stars0 ratingsARM-based Microcontroller Projects Using mbed Rating: 5 out of 5 stars5/5The Definitive Guide to the ARM Cortex-M3 Rating: 4 out of 5 stars4/5Android for the BeagleBone Black Rating: 0 out of 5 stars0 ratings
Networking For You
The Compete Ccna 200-301 Study Guide: Network Engineering Edition Rating: 5 out of 5 stars5/5Cybersecurity: The Beginner's Guide: A comprehensive guide to getting started in cybersecurity Rating: 5 out of 5 stars5/5CCNA Certification Study Guide, Volume 2: Exam 200-301 Rating: 0 out of 5 stars0 ratingsAWS Certified Cloud Practitioner Study Guide: CLF-C01 Exam Rating: 5 out of 5 stars5/5Network+ Study Guide & Practice Exams Rating: 4 out of 5 stars4/5Emergency Preparedness and Off-Grid Communication Rating: 0 out of 5 stars0 ratingsProgramming Arduino: Getting Started with Sketches Rating: 4 out of 5 stars4/5CompTIA Network+ Certification Guide (Exam N10-008): Unleash your full potential as a Network Administrator (English Edition) Rating: 0 out of 5 stars0 ratingsHome Networking Do-It-Yourself For Dummies Rating: 4 out of 5 stars4/5Linux Bible Rating: 0 out of 5 stars0 ratingsHacking Android Rating: 4 out of 5 stars4/5Networking All-in-One For Dummies Rating: 5 out of 5 stars5/5Networking For Dummies Rating: 5 out of 5 stars5/5Amazon Web Services (AWS) Interview Questions and Answers Rating: 5 out of 5 stars5/5A Beginner's Guide to Ham Radio Rating: 0 out of 5 stars0 ratingsConcise and Simple Guide to IP Subnets Rating: 5 out of 5 stars5/5CompTIA Network+ Certification Study Guide: Exam N10-004: Exam N10-004 2E Rating: 4 out of 5 stars4/5Mike Meyers' CompTIA Network+ Certification Passport, Sixth Edition (Exam N10-007) Rating: 1 out of 5 stars1/5The Windows Command Line Beginner's Guide: Second Edition Rating: 4 out of 5 stars4/5Artificial Intelligence for Fashion: How AI is Revolutionizing the Fashion Industry Rating: 0 out of 5 stars0 ratingsMicrosoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Practice Tests: Exam N10-008 Rating: 0 out of 5 stars0 ratingsUnlock Any Roku Device: Watch Shows, TV, & Download Apps Rating: 0 out of 5 stars0 ratingsPractical Ethical Hacking from Scratch Rating: 5 out of 5 stars5/5Cisco CCNA Command Guide: An Introductory Guide for CCNA & Computer Networking Beginners: Computer Networking, #3 Rating: 0 out of 5 stars0 ratingsCisco Packet Tracer for Beginners Rating: 5 out of 5 stars5/5Learning Linux Shell Scripting Rating: 4 out of 5 stars4/5
Reviews for Intel Galileo Networking Cookbook
0 ratings0 reviews
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