You are previewing Intel Galileo Networking Cookbook.
O'Reilly logo
Intel Galileo Networking Cookbook

Book Description

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.

    Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Intel Galileo Networking Cookbook
      1. Table of Contents
      2. Intel Galileo Networking Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Sections
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Downloading the color images of this book
          3. Errata
          4. Piracy
          5. Questions
      8. 1. Installing and Configuring Linux
        1. Introduction
        2. Configuring your Galileo for the first time
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Using a simple Linux image
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        4. Using the IoT Linux image
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Accessing the Galileo board remotely
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        6. Installing and updating modules
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        7. Accessing Galileo via Wi-Fi
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        8. Troubleshooting Linux installation issues
          1. How to do it...
      9. 2. Connecting External Sensors
        1. Introduction
        2. Using the Arduino IDE with the Galileo board
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Connecting an analog sensor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Connecting a digital sensor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Connecting an LCD screen
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Displaying the temperature on an LCD screen
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Troubleshooting the usual issues with sensors
          1. How to do it...
      10. 3. Controlling Hardware Devices
        1. Introduction
        2. Connecting a relay
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Connecting a DC motor
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Connecting an XBee module
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Controlling a servomotor from a rotating knob
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Using the SD card reader to log data
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Troubleshooting the usual issues
          1. The relay doesn't change its state when the sketch is loaded to the board
          2. The DC motor doesn't turn when the sketch is loaded to the board
          3. I can't communicate with Galileo via XBee
          4. The servomotor doesn't turn when the knob is turned
          5. I can't write data to the SD file
      11. 4. Creating a Web Server
        1. Introduction
        2. Using the Intel XDK software
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Running a simple Node.js server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Using Express on Galileo
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Reading pins via a web server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Controlling pins via a web server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Creating an API to control Galileo
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Troubleshooting web server issues
          1. Intel XDK doesn't see the Galileo board
          2. The web server doesn't respond
          3. The Express module can't be found
          4. The Galileo API doesn't work properly
      12. 5. Hosting Applications on the Galileo Board
        1. Introduction
        2. Creating a file-sharing server
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Accessing weather data remotely
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Tweeting from the Galileo board
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Accessing web APIs via Temboo
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Accessing more APIs via Temboo
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Troubleshooting application issues
          1. I can't download files from my file-sharing server
          2. I can't access weather data from Forecast.io
          3. My tweets from the Galileo don't show up
          4. I can't access Temboo from the Galileo board
      13. 6. Local Network Monitoring
        1. Introduction
        2. Accessing measured data remotely
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Logging data in a local database
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Displaying measurements stored in a database
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Live data visualization
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Troubleshooting the usual issues with sensors
          1. I can't get measured data remotely
          2. Issues with MongoDB
          3. The graph doesn't appear on the page
          4. The graph is not refreshed in real-time
      14. 7. Cloud Data Monitoring
        1. Introduction
        2. Building and testing hardware for cloud monitoring
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Sending data to a cloud device
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Monitoring data remotely from a dashboard
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Logging data in an online datasheet
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Controlling your board from anywhere in the world
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Troubleshooting cloud monitoring issues
          1. Dweet.io is not responding
          2. The dweet.io data does not appear in Freeboard.io
          3. Data is not being logged in my Google spreadsheet
          4. I cannot control my board from Lelylan
      15. 8. Building a Home Automation System
        1. Introduction
        2. Choosing the right components
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Building a Wi-Fi Arduino sensor module
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        4. Connecting Arduino modules to the Galileo board
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        5. Building an interface for your home automation system
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        6. Connecting your home automation system to the Web
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        7. Accessing your home automation system from anywhere
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        8. Troubleshooting issues with your home automation system
          1. My Arduino Wi-Fi module can't connect to the Wi-Fi network
          2. The Galileo board can't communicate with the Arduino modules
          3. The graphical interface is not displayed
          4. The external weather data is not displayed
      16. Index