You are previewing Intel Galileo Essentials.
O'Reilly logo
Intel Galileo Essentials

Book Description

Leverage the power of Intel Galileo to construct amazingly simple, yet impressive projects

In Detail

Intel Galileo Essentials provides step-by-step instructions on how to use the Galileo in Do-It-Yourself electronics projects. We begin by powering up the Galileo and loading the development system to get started. Post this, we look at GPIO capability in general along with the basics of programming the GPIO pins, also learning how to connect external HW to the GPIO pins. Moving on, we begin connecting a display to the Galileo, while learning the important points such as importing the support files, programming text and graphics, and getting input from a touchscreen. More significantly, we start controlling motors, adding sensors, and learning how to communicate wirelessly with your Galileo projects.

We conclude by building a wide variety of projects with the Galileo such as controlling servos for walking robots, hacking toy robots with the Galileo, and creating an ROV (Remotely Operated Vehicle) with the Galileo.

What You Will Learn

  • Access the Linux system that is the basis for Galileo to add even more complex hardware and software

  • Install and use the software development environment and connect to the Galileo and develop programs for it

  • Add a simple display to the Galileo

  • Connect external HW to the GPIO pins

  • Control DC motors with the Galileo

  • Add sensors to a Galileo-based project

  • Access your Galileo wirelessly

  • Understand the basics of sketches, include files, and HW support

  • 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 If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

    Table of Contents

    1. Intel Galileo Essentials
      1. Table of Contents
      2. Intel Galileo Essentials
      3. Credits
      4. About the Author
      5. About the Reviewers
        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. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the color images of this book
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with the Galileo
        1. Unpacking and connecting the Galileo
        2. Downloading the software and connecting the Galileo to a Windows machine
        3. Downloading the software and connecting the Galileo to a Mac
        4. Downloading the software and connecting the Galileo to a Linux machine
        5. Running the IDE for the Galileo
          1. Setting the IDE to connect to your board
          2. Selecting the proper COM port for Windows
          3. Selecting the proper COM port for the Mac
          4. Selecting the proper COM port for a Linux Machine
        6. Updating the firmware
          1. Opening and uploading a file to the Galileo
        7. Accessing the Galileo's Linux capabilities
        8. Summary
      9. 2. Accessing the GPIO Pins
        1. The GPIO capability of the Galileo
        2. Using the GPIO pins
        3. Connecting your first external hardware
          1. Plugging your wires into the breadboard
          2. Setting up the electronics
        4. The IDE and LED Code
        5. Getting signals from the outside world
          1. Interfacing digital input signals with Galileo
          2. Interfacing analog input signals with Galileo
        6. Summary
      10. 3. Adding Display Functionality
        1. The simple serial display
          1. Enabling the serial display in the IDE
        2. The TFT shield
          1. Accessing the display with the IDE
        3. Summary
      11. 4. Controlling DC Motors
        1. DC motor basics
        2. Connecting a DC motor directly to the Galileo
        3. Galileo code for DC motor speed control
        4. Connecting a DC motor using an H-bridge and the Galileo
        5. Galileo code for DC motor direction control
        6. Controlling DC motors using a shield
        7. Galileo code for the DC motor shield
        8. Summary
      12. 5. Adding Sensors
        1. Sensing distance
        2. The Infrared sensor
        3. Connecting an IR sensor to the Galileo
          1. Accessing the IR sensor from the Galileo IDE
        4. Connecting a digital compass to the Galileo
          1. Accessing the compass from the IDE
        5. Connecting an accelerometer or gyro to the Galileo
          1. Accessing the accelerometer from the IDE
        6. Connecting an altimeter/pressure sensor to the Galileo
          1. Accessing the altimeter/pressure Sensor from the Galileo IDE
        7. Summary
      13. 6. Remote Control
        1. Connecting an XBee interface to the Galileo
          1. Configuring the XBee devices
        2. Enabling an XBee Interface in the IDE
        3. Configuring a Wi-Fi connection on the Galileo
        4. Using Wi-Fi from the IDE
        5. Summary
      14. 7. Going Further with Galileo
        1. The Galileo and Linux
        2. Creating and booting the Debian Linux SD card image on the Galileo
        3. Building robots that can walk
        4. How servo motors work
        5. Building the quadruped platform
        6. Using a servo controller to control the servos
        7. Communicating with the servo controller via a PC
        8. Connecting the servo controller to the Galileo
        9. Creating a program in Linux so that you can control your quadruped
        10. Summary
      15. 8. Speech Output
        1. Hooking up the hardware to make an input sound
          1. Using an application
        2. Using Espeak to allow our projects to respond in a robot voice
        3. Summary
      16. Index